music-settings/root/rclone-sync-radio.sh

11 lines
465 B
Bash
Raw Normal View History

2024-05-17 09:38:59 +00:00
#!/bin/bash
/usr/bin/curl -X POST -H "Content-Type: application/json" --data "{ \"server\": \"Musicserver\", \"error\": \"{error:'Radio Backup Started'}\" }" https://error.caliban.io/error
/usr/bin/rclone sync --delete-during /data/media/station_store/ /mnt/backup-music/radio
/usr/bin/curl -X POST -H "Content-Type: application/json" --data "{ \"server\": \"Musicserver\", \"error\": \"{error:'Radio Backup Stopped $?'}\" }" https://error.caliban.io/error