Backup & restore - OneCDOnly/sherpa GitHub Wiki

Static Badge

Supports application configuration-only backup and restore via the 'backup' and 'restore' arguments. This can be scripted via cron to create a regular backup of each app.

QPKG (configuration-only) backups will be stored in a new hidden directory located under your default userdata volume called [.qpkg_config_backup/]. Hopefully, QNAP won't mess with this location (I'm looking at you Malware Remover).

To jump to this path:

cd $(getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info)/.qpkg_config_backup

Each QPKG has a single [config.tar.gz] file to backup into. Each new backup replaces the old one (so, no versioning available).

Example: to backup the SABnzbd application configuration files, you can use sherpa:

sherpa backup sab

... or use the SABnzbd service script:

/etc/init.d/sabnzbd.sh backup

Example: to restore the SABnzbd application configuration:

/etc/init.d/sabnzbd.sh restore