Files
lokale-scripte/rsynclocal.sh
T
2018-11-23 18:06:51 +01:00

17 lines
479 B
Bash
Executable File

#!/bin/zsh
sourceDir="/home/rob/"
destinationDir="/mnt/3TB/Backup/lappi_rsync/rob"
excludefile='--exclude-from=rsync_exclude_list'
#includefile='--include-from=rsync_include_list'
#scriptdir=$(dirname $0)/
#cd $scriptdir
cd /home/rob/code/lokale-scripte/
if [ -d "$sourceDir" ]; then
rsync -arlh --stats --progress $excludefile $includefile $sourceDir sshuser@kodi:$destinationDir
#rsync -arlh "$excludes" "$includes" --stats $sourceDir root@kodi:$destinationDir -vvv
fi