Skip to content

This script can be ran to backup TVHeadend server configuration or restore it from backup.

License

Notifications You must be signed in to change notification settings

slrslr/linux-bash-script-to-backup-restore-tvheadend-server-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

linux-bash-script-to-backup-restore-tvheadend-server-configuration

This script can be run to backup TVHeadend server configuration (/home/hts/.hts/tvheadend) or restore it from backup (/home/hts/.hts/tvheadend_backup.tar).

I think that it needs super user privilege. So i setup it under root:

sudo su; cd;wget https://raw.githubusercontent.com/slrslr/linux-bash-script-to-backup-restore-tvheadend-server-configuration/master/linux_tvheadend_server_backup_and_restore;chmod 750 linux_tvheadend_server_backup_and_restore;

test backup:

./linux_tvheadend_server_backup_and_restore backup

test restore:

./linux_tvheadend_server_backup_and_restore restore

setup cronjob to backup let's say every 6 months:

crontab -e

type "a" key

paste/append new line to the crontab opened:

0 0 0 */6 * /bin/bash /root/linux_tvheadend_server_backup_and_restore backup 2&1>/dev/null

Ctrl+C, q, enter

About

This script can be ran to backup TVHeadend server configuration or restore it from backup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages