Skip to content

Instantly share code, notes, and snippets.

@7wells
Last active October 1, 2022 06:26
Show Gist options
  • Save 7wells/b669bbcc06ec458eee18a528655cba31 to your computer and use it in GitHub Desktop.
Save 7wells/b669bbcc06ec458eee18a528655cba31 to your computer and use it in GitHub Desktop.
Tvheadend backup and restore
# How to backup and restore Tvheadend settings located in /home/hts/.hts (used on Raspberry Pi OS)
#
# Backup .hts folder incl. all sub-folders and files
#
sudo su hts
cd /home/hts
tar cvjf backup_hts.tar.bz2 .hts
# Consider /home/hts/icons in case they should be saved, too
#
tar cvjf backup_icons.tar.bz2 icons
# Restore .hts folder incl. all sub-folders and files
#
sudo su hts
cd /home/hts
tar xvjf backup_hts.tar.bz2
# Restore /home/hts/icons in case they were saved, too
#
tar xvjf backup_icons.tar.bz2
# Restart tvheadend service
#
sudo systemctl restart tvheadend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment