changeset 27:c7621908cb47

Try to manage disk usage for backup
author IBBoard <dev@ibboard.co.uk>
date Sat, 07 Mar 2020 16:37:38 +0000
parents 86ca8ee7b597
children 278968272584
files backup-to-disk do-backup
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/backup-to-disk	Sat Mar 07 16:36:24 2020 +0000
+++ b/backup-to-disk	Sat Mar 07 16:37:38 2020 +0000
@@ -19,6 +19,8 @@
 # We should be fine, but it everything fails between now
 # and backup completion then they're big but least important
 rm -rf $DISK/backup-prev/media/Downloads/games/Windows
+# Ditto the Games Workshop documents
+rm -rf $DISK/backup-prev/media/Documents/Games\ Workshop/
 
 /usr/local/bin/do-backup "$DISK"/backup/
 
--- a/do-backup	Sat Mar 07 16:36:24 2020 +0000
+++ b/do-backup	Sat Mar 07 16:37:38 2020 +0000
@@ -11,10 +11,15 @@
 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=.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 /mnt/media "$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"/