If your database gets corrupt, you are often left needing to rebuild... No big deal for the manage list, but the wanted list can be lost
What I have done is create a simple python script that will backup your wanted list to a simple text document.
You can run this whenever you want (your could even make it a recurring cron job).
Now hosted on GitHub https://github.com/clinton-hall/CP-BackupTool
OLDER VERSIONS ARE BELOW.
After downloading and extracting the attached zip, you need to edit the couch.cfg to add your correct host, path and apikey (from CouchPotato, settings, general)
Make sure the script is executable, and then run it, passing in the options "backup" and the full path/name of the backup file you want to create
Code: Select all
chmod +x wanted.py
./wanted.py backup /volume1/Public/backup.txt
Now, should your database need to be deleted, or is otherwise lost, set up the quality profiles, do a full manage scan (to make sure we don't add and snatch movies that were already downloaded since your last backup) and then run this script with the option "restore" followed by the path to the backup file.
(NOTE: If you did a complete re-install, you will need to enter the NEW api key in the couch.cfg)
Code: Select all
./wanted.py restore /volume1/Public/backup.txt
This doesn't assign a specific quality or category... you will need to manually edit these in the wanted list.
In case you are worries about auto-snatch with the wrong quality etc (not default) I suggest setting your downloader to "manual" to prevent auto-snatching, before running the restore. Take the downloader out of "manual" mode once you are comfortable all has been restored correctly.