Files
lokale-scripte/rsync-T520-2-bfds/rsync_t520_d3v_on_bfds.sh
T
2020-04-13 15:09:16 +02:00

17 lines
529 B
Bash
Executable File

#!/bin/zsh
exclude='--exclude-from=rsync_exclude_list'
#includefile='--include-from=rsync_include_list'
sourceDir="/home/rob"
destinationDir="/mnt/bfds/rob/backup/thinkpad-T520/home/rob"
if [ -d "$sourceDir" ]; then
rsync -az --stats --progress $exclude $includefile $sourceDir/$scope bfds:$destinationDir/$scope
fi
sourceDir="/var/www"
destinationDir="/mnt/bfds/rob/backup/thinkpad-T520/www"
if [ -d "$sourceDir" ]; then
rsync -az --stats --progress $exclude $includefile $sourceDir/$scope bfds:$destinationDir/$scope
fi