updating osx backup script
This commit is contained in:
parent
a8e9a83064
commit
c9b8ecc8dc
1
bin/backup.command
Symbolic link
1
bin/backup.command
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../osxbackup/rsyncbackup.command
|
@ -9,7 +9,7 @@ NOW="`date +%Y%m%d.%H%M%S`"
|
|||||||
|
|
||||||
BACKUPDEST=${BACKUPDEST:-"/Volumes/ExternalBackup/sneak.backup"}
|
BACKUPDEST=${BACKUPDEST:-"/Volumes/ExternalBackup/sneak.backup"}
|
||||||
|
|
||||||
RSYNC="rsync.3.0.9"
|
RSYNC="$HOME/Library/Homebrew/bin/rsync"
|
||||||
OPTS="-rlptDPSyzh --no-owner --no-group --delete-excluded --delete"
|
OPTS="-rlptDPSyzh --no-owner --no-group --delete-excluded --delete"
|
||||||
|
|
||||||
RE=""
|
RE=""
|
||||||
@ -50,6 +50,7 @@ RE+=" --exclude=/Library/Preferences/SDMHelpData/"
|
|||||||
RE+=" --exclude=/Receivd/"
|
RE+=" --exclude=/Receivd/"
|
||||||
RE+=" --exclude=/Library/Application?Support/Steam/SteamApps/"
|
RE+=" --exclude=/Library/Application?Support/Steam/SteamApps/"
|
||||||
RE+=" --exclude=/VirtualBox?VMs/"
|
RE+=" --exclude=/VirtualBox?VMs/"
|
||||||
|
|
||||||
MINRE=""
|
MINRE=""
|
||||||
MINRE+=" --exclude=/.fseventsd/"
|
MINRE+=" --exclude=/.fseventsd/"
|
||||||
MINRE+=" --exclude=/.Spotlight-V100/"
|
MINRE+=" --exclude=/.Spotlight-V100/"
|
||||||
@ -62,11 +63,6 @@ MINRE+=" --exclude=.DS_Store"
|
|||||||
|
|
||||||
RE+=" ${MINRE}"
|
RE+=" ${MINRE}"
|
||||||
|
|
||||||
if [ ! -e "${BACKUPDEST}" ]; then
|
|
||||||
echo "backup destination $BACKUPDEST not available!" > /dev/stderr
|
|
||||||
exit 127
|
|
||||||
fi
|
|
||||||
|
|
||||||
RETVAL=255
|
RETVAL=255
|
||||||
while [ $RETVAL -ne 0 ]; do
|
while [ $RETVAL -ne 0 ]; do
|
||||||
$RSYNC $OPTS $RE ${HOME}/ ${BACKUPDEST}/Home/
|
$RSYNC $OPTS $RE ${HOME}/ ${BACKUPDEST}/Home/
|
||||||
|
Loading…
Reference in New Issue
Block a user