aboutsummaryrefslogtreecommitdiffstats
path: root/modules/blog/templates/backup_blog-files.sh
diff options
context:
space:
mode:
authorDamien Lallement <dams@mageia.org>2011-04-04 11:31:25 +0000
committerDamien Lallement <dams@mageia.org>2011-04-04 11:31:25 +0000
commit52335bc3ae55b60bec46414b493b156d876d2cfe (patch)
tree3e3c602d8bf40cbaf24bab3bc99cba2881a2130f /modules/blog/templates/backup_blog-files.sh
parent22ddca6fdc9b7cf0427663471d55b89a3c74674a (diff)
downloadpuppet-52335bc3ae55b60bec46414b493b156d876d2cfe.tar
puppet-52335bc3ae55b60bec46414b493b156d876d2cfe.tar.gz
puppet-52335bc3ae55b60bec46414b493b156d876d2cfe.tar.bz2
puppet-52335bc3ae55b60bec46414b493b156d876d2cfe.tar.xz
puppet-52335bc3ae55b60bec46414b493b156d876d2cfe.zip
update backup files to do a tar.gz instead of 'rsync' not to spend a lot of space for backup
Diffstat (limited to 'modules/blog/templates/backup_blog-files.sh')
-rwxr-xr-xmodules/blog/templates/backup_blog-files.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blog/templates/backup_blog-files.sh b/modules/blog/templates/backup_blog-files.sh
index 705098d6..98a91b15 100755
--- a/modules/blog/templates/backup_blog-files.sh
+++ b/modules/blog/templates/backup_blog-files.sh
@@ -11,7 +11,7 @@ do
then
/bin/mkdir $PATH_TO_FILE/$locale
fi
- rsync -aHP --delete /var/www/html/blog.<%= domain %>/$locale $PATH_TO_FILE/$locale/$locale-$COUNT
+ tar zxvf /var/www/html/blog.<%= domain %>/$locale $PATH_TO_FILE/$locale/$locale-$COUNT.tar.gz
done
# Check count file to have a week of backup in the directory
if [ $COUNT -ne 6 ]