|
@@ -6,6 +6,7 @@ mysqlpw="AAAAAAAAAA"
|
6
|
6
|
|
7
|
7
|
mkdir -p $backup/$date/www
|
8
|
8
|
rsync -ax --delete --exclude='.git*' --exclude='misc/*' --link-dest=$backup/current/www/ /var/www/ $backup/$date/www/
|
|
9
|
+rsync -ax --delete --link-dest=$backup/current/torrents/ /var/torrents/ $backup/$date/torrents/
|
9
|
10
|
mysqldump --single-transaction --password="${mysqlpw}" gazelle | gzip -c > $backup/$date/gazelle.sql.gz
|
10
|
11
|
|
11
|
12
|
rm $backup/current
|