mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-01 08:03:05 +01:00
25 lines
427 B
Bash
Executable File
25 lines
427 B
Bash
Executable File
#!/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
|
|
|
|
rclone sync --transfers 8 "${STAGING_DIR:?}/" protondrive:/
|
|
|
|
exit 0
|