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
 
7
 mkdir -p $backup/$date/www
7
 mkdir -p $backup/$date/www
8
 rsync -ax --delete --exclude='.git*' --exclude='misc/*' --link-dest=$backup/current/www/ /var/www/ $backup/$date/www/
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
 mysqldump --single-transaction --password="${mysqlpw}" gazelle | gzip -c > $backup/$date/gazelle.sql.gz
10
 mysqldump --single-transaction --password="${mysqlpw}" gazelle | gzip -c > $backup/$date/gazelle.sql.gz
10
 
11
 
11
 rm $backup/current
12
 rm $backup/current

Loading…
Cancel
Save