From c369e5f8bb8ba29677041c1e4811f43efaa91340 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 4 Jan 2013 10:59:38 +0100 Subject: [PATCH] [script][wiki_backup] modify name of backuped file --- scripts/wiki_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wiki_backup.sh b/scripts/wiki_backup.sh index 99f41f7..084b1e5 100755 --- a/scripts/wiki_backup.sh +++ b/scripts/wiki_backup.sh @@ -6,7 +6,7 @@ if [ ! -d $BACKUP_DIR ]; then mkdir $BACKUP_DIR fi -file=$BACKUP_DIR/wiki-$DATABASE-$(date '+\%Y\%m\%d').sql.gz +file=$BACKUP_DIR/wiki-$DATABASE-$(date '+%Y-%m-%d').sql.gz /usr/bin/mysqldump -u $USER --password=$PASSWORD $DATABASE -c | /usr/bin/gzip > $file #rsync $BACKUP_DIR scp $file pi@tutabaga.hd.free.fr:~/Backups/wiki/