Update scripts

This commit is contained in:
2025-06-22 11:35:04 +02:00
parent ccc7f82f0a
commit 2d268629b5
3 changed files with 16 additions and 2 deletions

13
tools/sync_data.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -euo pipefail
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <source> <destination>"
echo "Example: $0 admin@192.168.1.2:/mydata/backup /local/backup"
exit 1
fi
SOURCE="${1}"
DEST="${2}"
rsync -e 'ssh -p 2222' --progress --human-readable --archive --verbose --compress --acls --xattrs --bwlimit=30000 --stats --delete-during "${SOURCE}" "${DEST}"