diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-05-10 22:57:02 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-05-10 22:57:02 +0200 |
| commit | 3cd9138c9d8fb9be248c75330cca9da47f4d2e8a (patch) | |
| tree | b3b677a9c1a474589f45d20953028a987fa73b80 /shield-backup | |
| parent | 83f7fe4b8402bab171d110703a1b1115efbc9b28 (diff) | |
| download | bin-3cd9138c9d8fb9be248c75330cca9da47f4d2e8a.tar.gz bin-3cd9138c9d8fb9be248c75330cca9da47f4d2e8a.zip | |
added a whole bunch of scripts
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}/..." |
