Having had a wee issue with Jellyfin Media Server’s database this week after an upgrade, I decided to avoid the requirement for a 24 hour database rebuild, to start backing things up with Borgmatic. Borgmatic is a handy wrapper script to automate BorgBackup.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
location: # List of source directories to backup. source_directories: - /etc/jellyfin - /var/lib/jellyfin # Path to BorgBackup repository repositories: - /export/ServerData/jellyfin_database retention: # Retention policy for how many backups to keep. keep_daily: 7 consistency: # List of checks to run to validate your backups. checks: - repository - archives hooks: # Custom preparation scripts to run. before_backup: - systemctl stop jellyfin after_backup: - systemctl start jellyfin |
This is a very simple configuration,
Continue readingLinux Snippet – Backing Up Jellyfin With Borgmatic