diff options
Diffstat (limited to 'shield-backup')
| -rwxr-xr-x | shield-backup | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/shield-backup b/shield-backup index 05c8945..ccaff5b 100755 --- a/shield-backup +++ b/shield-backup @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -euo pipefail +export PATH="/usr/sbin:/sbin:/usr/bin:/bin:$PATH" +RCLONE_CONFIG="$HOME/.config/rclone/rclone.conf" #################### CONFIG – EDIT THESE #################### # LUKS2 block device @@ -26,6 +28,7 @@ MACHINE_DIR="T480" RSYNC_EXCLUDES_FILE="/tmp/rsync_excludes_$$.txt" cat > "${RSYNC_EXCLUDES_FILE}" <<'EOF' +downloads/ # Caches & regenerable state .cache/ .fasd @@ -122,9 +125,9 @@ sudo mkdir -p \ "${LUKS_MOUNTPOINT}/SP_Skyscale" echo ">>> Starting rclone syncs (SharePoint -> ${LUKS_MOUNTPOINT}/SP_*)..." -rclone sync 'SP_Administration:' "${LUKS_MOUNTPOINT}/SP_Administration" --create-empty-src-dirs --fast-list --progress -rclone sync 'SP_Operations:' "${LUKS_MOUNTPOINT}/SP_Operations" --create-empty-src-dirs --fast-list --progress -rclone sync 'SP_SkyscaleCommerce:' "${LUKS_MOUNTPOINT}/SP_Skyscale" --create-empty-src-dirs --fast-list --progress +rclone --config "$RCLONE_CONFIG" sync 'SP_Administration:' "${LUKS_MOUNTPOINT}/SP_Administration" --create-empty-src-dirs --fast-list --progress +rclone --config "$RCLONE_CONFIG" sync 'SP_Operations:' "${LUKS_MOUNTPOINT}/SP_Operations" --create-empty-src-dirs --fast-list --progress +rclone --config "$RCLONE_CONFIG" sync 'SP_SkyscaleCommerce:' "${LUKS_MOUNTPOINT}/SP_Skyscale" --create-empty-src-dirs --fast-list --progress echo ">>> All rclone syncs finished." echo ">>> Starting rsync backups of local folders -> ${LUKS_MOUNTPOINT}/${MACHINE_DIR}/..." |
