5

Ubuntu Tar Backup Script, Not Excuding a Folder

view full story
linux-howto

http://ubuntuforums.org – I am trying to create a tar backup script. I used the following article as my baseline: https://help.ubuntu.com/community/BackupYourSystem/TAR And this is what I ended up creating: Code: #!/bin/bash # init DATE=$(date +20%y%m%d) sudo tar -cvpzf /tmp/`hostname`_$DATE.tar.gz \ --exclude=/proc \ --exclude=/lost+found \ --exclude=/sys \ --exclude=/mnt \ --exclude=/media \ --exclude=/dev \ --exclude=/tmp \ --exclude=/home/jlacroix/Desktop \ --exclude=/home/jlacroix/Documents \ --exclude=/home/jlacroix/Music \ --exclude=/home/jlacroix/Pictures \ --exclude=/home/jlacroix/Projects \ --exclude= (Hardware)