comparison do-backup @ 0:e85e3470a41e

Initial commit of useful scripts
author IBBoard <dev@ibboard.co.uk>
date Sat, 02 Aug 2014 19:31:02 +0100
parents
children 29dc6ad8d8ac
comparison
equal deleted inserted replaced
-1:000000000000 0:e85e3470a41e
1 #! /bin/sh
2
3 if [ $# -ne 1 ]; then
4 echo "Usage: $0 <dest>" >&2
5 exit 1
6 elif [ ! -d "$1" ]; then
7 echo "Destination $1 did not exist/was not a directory" >&2
8 exit 1
9 fi
10
11 DISK="$1"
12 RSYNC_ARGS=${RSYNC_ARGS:-}
13 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"/
14 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"/
15 rsync -av $RSYNC_ARGS /usr/local/bin "$DISK"/
16