forked from zyphermonkey/docker-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBackups
11 lines (9 loc) · 1.13 KB
/
Backups
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
#description=Backup Media to External HDD
#arrayStarted=true
#name=Media Backup
rsync --archive -Phv /mnt/user/Media/Music /mnt/disks/WD_My_Book_25EE/backups/tower/Media/ --stats -i --log-file="/mnt/disks/WD_My_Book_25EE/backups/tower/$(date +%F)-music.log"
rsync --archive -Phv /mnt/user/Media/Cameras /mnt/disks/WD_My_Book_25EE/backups/tower/Media/ --stats -i --log-file="/mnt/disks/WD_My_Book_25EE/backups/tower/$(date +%F)-cameras.log"
rsync --archive -Phv /mnt/user/Media/Nextcloud /mnt/disks/WD_My_Book_25EE/backups/tower/Media/ --stats -i --log-file="/mnt/disks/WD_My_Book_25EE/backups/tower/$(date +%F)-nextcloud.log"
rsync --archive --delete -Phv /mnt/user/Backup/CommunityApplicationsAppdataBackup /mnt/user/Backup/CommunityApplicationsAppdataBackup_USB /mnt/user/Backup/CommunityApplicationsAppdataBackup_VM_XML /mnt/disks/WD_My_Book_25EE/backups/tower/CommunityApplicationsAppdataBackup/ --stats -i --log-file="/mnt/disks/WD_My_Book_25EE/backups/tower/$(date +%F)-CommunityApplicationsAppdataBackup.log"
/usr/local/emhttp/webGui/scripts/notify -i normal -e "Backup" -s "External Backup" -d "Backup to External Drive is Complete"