first commit
[scripts.git] / backup
blob79ea4f3ee94b017a3f919d5abb6a113cba24e2de
1 #!/bin/bash
2 # this backs up all the important folders into a tar archive
4 if [ $# != 1 ]
5 then
6 echo "Usage: $progname save_path"
7 echo "This script backups up the home directory."
8 echo
9 exit 1
12 sudo tar -czpvf $1/`date +%y%m%d`.tar.gz \
13 --exclude=$HOME/Desktop \
14 --exclude=$HOME/Pictures \
15 --exclude=$HOME/Music \
16 --exclude=$HOME/Movies \
17 --exclude=$HOME/videos \
18 --exclude=$HOME/downloads \
19 --exclude=$HOME/.* \
20 $HOME \
21 $HOME/.vimrc \
22 $HOME/.vim \
23 $HOME/.fluxbox \
24 $HOME/.Xdefaults \
25 $HOME/.conky