Mercurial > repos > other > usr-local-bin
view do-backup @ 1:182cce081e61
Make Mercirual only track explicitly added files (because /usr/local/bin also has game scripts, which don't need versioning)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 02 Aug 2014 20:02:06 +0100 |
parents | e85e3470a41e |
children | 29dc6ad8d8ac |
line wrap: on
line source
#! /bin/sh if [ $# -ne 1 ]; then echo "Usage: $0 <dest>" >&2 exit 1 elif [ ! -d "$1" ]; then echo "Destination $1 did not exist/was not a directory" >&2 exit 1 fi DISK="$1" RSYNC_ARGS=${RSYNC_ARGS:-} rsync -av $RSYNC_ARGS --exclude=.thumbnails --exclude=temp --exclude=banshee.db --exclude=.cache --exclude=.local/share/Trash --exclude=.SpiderOak --exclude Documents/Games\ Workshop/LivingRuleBooks /home/ibboard "$DISK"/ rsync -av $RSYNC_ARGS --exclude=Videos/Other --include=Downloads/games --include=Downloads/M4Ps --exclude=Downloads/* --exclude=.Trash-1000 --exclude=.Trash-1001 --exclude=Pictures/Photos/Temp --exclude=VirtualBox/VBoxGuestAdditions* /mnt/media "$DISK"/ rsync -av $RSYNC_ARGS /usr/local/bin "$DISK"/