Browse Source

Update backup script to backup new torrent storage location

spaghetti 8 years ago
parent
commit
26e6681e8e
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      Backup/backup.sh

+ 1
- 0
Backup/backup.sh View File

@@ -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

Loading…
Cancel
Save