Files
shell/move-backups.sh
2023-10-05 08:16:50 -04:00

17 lines
482 B
Bash
Executable File

#!/bin/bash
function move-backups() {
rsync --recursive --quiet -e 'ssh -p 58022' --include '*.gz' --remove-source-files acedanger@vperanda:/home/acedanger/backup/docker-data /mnt/m/backups/
}
if [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then
move-backups
fi
# send a notification to https://notify.peterwood.rocks/lab
curl \
-H priority:default \
-H tags:backups,${HOSTNAME} \
-d "The backups have been moved to the NAS." \
https://notify.peterwood.rocks/lab