[script][wiki_backup] modify name of backuped file

This commit is contained in:
Mathieu Maret 2013-01-04 10:59:38 +01:00
parent 18bec51d9c
commit c369e5f8bb

View File

@ -6,7 +6,7 @@ if [ ! -d $BACKUP_DIR ];
then then
mkdir $BACKUP_DIR mkdir $BACKUP_DIR
fi 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 /usr/bin/mysqldump -u $USER --password=$PASSWORD $DATABASE -c | /usr/bin/gzip > $file
#rsync $BACKUP_DIR #rsync $BACKUP_DIR
scp $file pi@tutabaga.hd.free.fr:~/Backups/wiki/ scp $file pi@tutabaga.hd.free.fr:~/Backups/wiki/