Browse files

exclude access.log

  • Loading branch information...
1 parent 5304942 commit 7acf9f97d5528afa01bfdfbf9c824abe509d7c38 @phunehehe committed Dec 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 localbackup/templates/default/make_backup.sh.erb
View
3 localbackup/templates/default/make_backup.sh.erb
@@ -23,7 +23,7 @@ tar_dir() {
# Replace / with _
out_base="${the_dir//\//_}"
out_file="$backup_dir/$out_base-$date_stamp.tar.gz"
- /bin/tar -Pczf "$out_file" "$the_dir"
+ /bin/tar --exclude access.log -Pczf "$out_file" "$the_dir"
rotate "$out_base"
}
@@ -45,6 +45,7 @@ rotate mysql
for thing in $(echo <%= node[:localbackup][:dirs].join(' ') %>)
do
+ thing="$(readlink -f $thing)"
echo "Backing up $thing..."
tar_dir "$thing"
done

0 comments on commit 7acf9f9

Please sign in to comment.