view do-backup @ 34:fb4dd1974129

Ensure fixed ordering of values Also ensures we don't get ACPI readings
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Feb 2021 15:57:09 +0000
parents c7621908cb47
children 737061eac1d0
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=.local/share/Steam --include=.local/share/Steam/userdata/ --exclude=.SpiderOak \
--exclude=.wine --exclude=.wine32 --exclude=.local/share/*/game/ --exclude=.config/Code/ --exclude=.vscode/ --include=Projects/dev \
--include=Projects/master/ --include=Projects/SevenLanguagesInSevenWeeks/ --include=Projects/DoW/ --include=Projects/*.patch --exclude=Projects/* \
/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/PhotoTemp --exclude=Pictures/AlbumArtCollection/ --exclude=Pictures/WarhammerArt/ --include=Pictures/*.xcf \
--exclude=Pictures/*.* --exclude=VirtualBox/VBoxGuestAdditions* --exclude=SteamExtras/ --exclude=VirtualBox \
--exclude=Documents/ebooks/mobi --exclude=Documents/ebooks/pdf --exclude=Documents/ebooks/*/mobi --exclude=Documents/ebooks/*/pdf \
--exclude=Documents/ebooks/Software/videos --exclude=Documents/Games\ Workshop/LivingRuleBooks \
/mnt/media "$DISK"/
rsync -av $RSYNC_ARGS /usr/local/bin "$DISK"/