2024-10-27 17:24:58 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
STAGING_DIR="/home/jas/protonshare"
|
|
|
|
SHARE_DIRS=(
|
|
|
|
/home/jas/calibre-library
|
|
|
|
/home/jas/documents
|
|
|
|
/home/jas/ebooks
|
|
|
|
/home/jas/org
|
|
|
|
/home/jas/org-roam
|
|
|
|
/home/jas/pictures
|
|
|
|
)
|
|
|
|
|
|
|
|
rm -rf "${STAGING_DIR}"
|
|
|
|
mkdir -p "${STAGING_DIR}"
|
|
|
|
|
|
|
|
for dir in "${SHARE_DIRS[@]}"; do
|
|
|
|
cp -rfv "$dir" "${STAGING_DIR}/"
|
|
|
|
done
|
|
|
|
|
2024-11-12 19:40:31 -06:00
|
|
|
rclone sync --transfers 8 -P -u -c --ignore-existing "${STAGING_DIR:?}/" protondrive:/
|
2024-10-27 17:24:58 -05:00
|
|
|
|
|
|
|
exit 0
|