summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-12-09 22:26:22 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-12-09 22:26:29 +0100
commit02906e81c9ced7eb61f37e91fcb73b6f32bf02df (patch)
treeee57de8060e11b979df2976d31e3eb25f280daec
parent1b7c34ade0d073f04cc209d783df5d819c2283bf (diff)
downloadbin-02906e81c9ced7eb61f37e91fcb73b6f32bf02df.zip
bin-02906e81c9ced7eb61f37e91fcb73b6f32bf02df.tar.gz
add backup_home
-rwxr-xr-xbackup_home14
1 files changed, 14 insertions, 0 deletions
diff --git a/backup_home b/backup_home
new file mode 100755
index 0000000..28a3bad
--- /dev/null
+++ b/backup_home
@@ -0,0 +1,14 @@
+#! /bin/bash
+
+[ $# -lt 1 ] && echo "missing dstination" && exit 1
+DST=$1
+
+tar \
+ --exclude "$HOME/local" \
+ --exclude "$HOME/usr/git" \
+ --exclude "$HOME/usr/media" \
+ --exclude "$HOME/.ccache" \
+ --exclude "$HOME/.gems" \
+ --exclude "$HOME/.local/share/Trash" \
+ --exclude "$HOME/.local/share/Steam" \
+ -cvzf $DST $HOME/