You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
335 B

#! /bin/bash
targetfolder=/backup/Backup-Repo/
if [ "$1" ]; then
echo "setting targetfolder to ${1}"
targetfolder=${1}
fi
echo "targetfolder=${targetfolder}"
syncdirs -d -f /tank/Backup-Repo/ -t ${targetfolder}
#rsync -a -v -z --progress --delete --update --human-readable --stats --progress /tank/Backup-Repo/ ${targetfolder}