mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 03:20:12 -08:00
updated rsync flags to allow it to run as root
This commit is contained in:
@@ -1,11 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function move-backups() {
|
function move-backups() {
|
||||||
# -q quiet
|
rsync --recursive --quiet -e 'ssh -p 58022' --include '*.gz' --remove-source-files acedanger@vperanda:/home/acedanger/backup/docker-data /mnt/m/backups/
|
||||||
# -r recursive
|
|
||||||
# -z compress
|
|
||||||
rsync -qrz --include '*.gz' --remove-source-files vperanda:/home/acedanger/backup/docker-data
|
|
||||||
/mnt/m/backups/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
|
if [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user