mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2026-06-10 18:06:43 +02:00
Update scripts
This commit is contained in:
Executable
+13
@@ -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}"
|
||||
Reference in New Issue
Block a user