view do-backup @ 19:e245a271fc44

Add scripts for recording/displaying CPU and GPU activity Graphing is based on sensors-graph, but recording is a Python script because more processing is required than logging temperatures. CPU/GPU recording will hopefully be useful to work out what causes occasional lags in games - is it just I/O Wait (despite the SSD)?
author IBBoard <dev@ibboard.co.uk>
date Mon, 01 Oct 2018 20:52:26 +0100
parents 92874671d6e1
children 489ba6ea3c35
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 Documents/Games\ Workshop/LivingRuleBooks --exclude=.wine --exclude=.wine32 --exclude=.local/share/*/game/ /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 /mnt/media "$DISK"/
rsync -av $RSYNC_ARGS /usr/local/bin "$DISK"/