Mercurial > repos > other > usr-local-bin
annotate do-backup @ 8:97325fd582d8
Add more exclusions of less important stuff to keep size down
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 08 Aug 2015 21:05:30 +0100 |
parents | 29dc6ad8d8ac |
children | 92874671d6e1 |
rev | line source |
---|---|
0 | 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:-} | |
8
97325fd582d8
Add more exclusions of less important stuff to keep size down
IBBoard <dev@ibboard.co.uk>
parents:
3
diff
changeset
|
13 rsync -av $RSYNC_ARGS --exclude=.thumbnails --exclude=temp --exclude=banshee.db --exclude=.cache --exclude=.local/share/Trash --exclude=.local/share/Steam --include=.local/share/Steam/userdata/ --exclude=.SpiderOak --exclude Documents/Games\ Workshop/LivingRuleBooks --exclude=.wine --exclude=.wine32 /home/ibboard "$DISK"/ |
97325fd582d8
Add more exclusions of less important stuff to keep size down
IBBoard <dev@ibboard.co.uk>
parents:
3
diff
changeset
|
14 rsync -av $RSYNC_ARGS --exclude=Videos/Other --include=Downloads/games --include=Downloads/M4Ps --exclude=Downloads/* --exclude=.Trash-1000 --exclude=.Trash-1001 --exclude=Pictures/PhotoTemp --exclude=VirtualBox/VBoxGuestAdditions* --exclude=SteamExtras/ --exclude=VirtualBox /mnt/media "$DISK"/ |
0 | 15 rsync -av $RSYNC_ARGS /usr/local/bin "$DISK"/ |
16 |