Add services backup scripts
This commit is contained in:
18
services/backup-music.sh
Executable file
18
services/backup-music.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "running backup music script at $(date)"
|
||||
|
||||
backup-scripts/start-backup.sh
|
||||
|
||||
echo "backing up music!"
|
||||
# backup music to backups vm
|
||||
rsync --stats --progress -arv --ignore-existing /home/sem/Music/* sem@10.10.100.52:/home/sem/music-backup/songs
|
||||
|
||||
echo "backing up db!"
|
||||
rsync --stats --progress -arv /var/lib/navidrome/* --exclude /var/lib/navidrome/cache sem@10.10.100.52:/home/sem/music-backup/navidrome
|
||||
echo "backing up config!"
|
||||
rsync --stats --progress -arv /etc/navidrome/* sem@10.10.100.52:/home/sem/music-backup/navidrome
|
||||
|
||||
backup-scripts/stop-backup.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user