This is a simple application that collects playing content from local Apple TV and stores it in a database
ATV_NAME- Name of the Apple TVATV_ID- ID of the Apple TVATV_AIR_PLAY_CREDENTIALS- AirPlay credentials of the Apple TVATV_COMPANION_CREDENTIALS- Companion credentials of the Apple TVATV_RAOP_CREDENTIALS- RAOP credentials of the Apple TVDATABASE_PATH- Path to the database fileSLEEP_TIMEOUT- Time to sleep between each collect in seconds
make backup- Make a backup of the databasemake redeploy- Redeploy the application
This application data could be backup by restic. To do so, you need to setup repository:
restic init -r /path/to/repoSet environment variables for repository:
export RESTIC_PASSWORD=your_password
export RESTIC_REPOSITORY=/path/to/repoMake a backup file executable:
chmod +x backup.shSchedule a backup with cron if needed:
crontab -e
0 0 * * * /path/to/backup.sh