Backup, Restore, Upgrade
Backup and Restore¶
For the main application, the only data that needs to be backed up is karaoke.db in the /data folder and application will keep all configs when moved elsewhere.
Docker¶
Execute the backup command on the host machine.
This assume the database, karaoke media and cache is all located in
/datafolder. If your karaoke media is located elsewhere, backup these folders accordingly.
Copy the compose.yml, .env and backup.tar.gz to the new host machine and restore the backup with the following command.
Optional: re-scan the media library
Linux/Windows¶
Same procedure as Docker, backup the /data folder and restore it to the new host machine. If the folder path is different, be sure to change the MEDIA_PATH and CACHE_PATH in the .env file to point to the new location.
On Windows, you can use robocopy.
Demucs¶
No database/config files need to be backed up. The service can run by simply modifying the .env file.
The application download models, if you want to backup the models, if depends on your huggingface cache location
- SherpaONNX:
<demucs_svc_root>/model_data/sherpa_spleeter - Demucs and WhisperX:
$env:HF_HOMEor%USERPROFILE%\.cache\huggingfaceon Windows,~/.cache/huggingfaceon Linux
The models will be downloaded again if not found, so it might not be necessary to backup.
Upgrade¶
Docker¶
Pull the latest image and restart the service.
Linux/Windows/Demucs¶
Download the latest code.
Restart the service, usingsystemd or services.msc if needed.