From 9978914b4d4d30947cfe647c1cd2f58d0978f792 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Wed, 22 Nov 2017 09:35:13 +0100 Subject: [PATCH] Backup: do not store unnecessary files * "build" is a Gradle output directory * node_modules, bower_components should be untouched * .gradle has cached dependencies --- bin/backup-home | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/backup-home b/bin/backup-home index 4e7efe0..4ec82f4 100755 --- a/bin/backup-home +++ b/bin/backup-home @@ -11,13 +11,16 @@ ROUND="$(($(date +%_j) % 10))" --exclude="$HOME/tmp" \ --exclude="$HOME/Android/Sdk" \ --exclude="$HOME/Downloads" \ - --exclude="$HOME/.gradle" \ --exclude="$HOME/.android/avd" \ --exclude="$HOME/.cache" \ --exclude="$HOME/.wine" \ --exclude="$HOME/.gvfs" \ --exclude="$HOME/.npm" \ --exclude="$HOME/.local/share/Trash" \ + --exclude=build \ + --exclude=.gradle \ + --exclude=node_modules \ + --exclude=bower_components \ "$HOME" | gsutil cp - \ "gs://backup-dasfoo-org/$(hostname)/$(whoami)/backup-$ROUND.tar"