From 02906e81c9ced7eb61f37e91fcb73b6f32bf02df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 9 Dec 2013 22:26:22 +0100 Subject: add backup_home --- backup_home | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 backup_home 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/ -- cgit v1.1-2-g2b99