Permalink
Browse files

/tmp should not be backuped :)

  • Loading branch information...
1 parent 73baf48 commit 5ea3c206cf420955cc89ef313923193d0503975c @mxdpeep mxdpeep committed Jan 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup-root.sh
View
@@ -18,7 +18,7 @@ P='/media/backup'
if [ -d "$P" ]
then
cd /
- sudo tar cvpzf "$P/root-backup-`date +%d.%m.%Y`.tar.gz" --one-file-system --exclude=/proc --exclude=/media --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev /
+ sudo tar cvpzf "$P/root-backup-`date +%d.%m.%Y`.tar.gz" --one-file-system --exclude=/proc --exclude=/media --exclude=/lost+found --exclude=/sys --exclude=/tmp --exclude=/mnt --exclude=/media --exclude=/dev /
else
echo "Invalid folder: $P\n"
fi

0 comments on commit 5ea3c20

Please sign in to comment.