diff options
Diffstat (limited to 'documents-backup.sh')
-rwxr-xr-x | documents-backup.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/documents-backup.sh b/documents-backup.sh new file mode 100755 index 0000000..f317d84 --- /dev/null +++ b/documents-backup.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# Define the source and destination directories +SRC_DIR=/home/$USER/Documents +DST_HOST=bach:/mnt/encrypted/matt_backups/ + +# Run rsync command using ssh for encryption +rsync -avz --delete "$SRC_DIR" "$DST_HOST" |