08-12-2022, 01:54 PM
An example full backup command is below.
Options help
Code:
/var/www/util/backup_manager.py --what config cdsp r_moode r_other playlists --backup /home/backup.zip
Options help
Code:
pi@moode:~ $ /var/www/util/backup_manager.py --help
usage: backup_manager.py [-h] [--version] [--what {config,cdsp,playlists,r_moode,r_other} [{config,cdsp,playlists,r_moode,r_other} ...]]
(--backup | --restore | --info) [--db DB] [--script SCRIPT] [--wlanpwd WLANPWD]
backupfile
Manages backup and restore of moOde system
positional arguments:
backupfile Filename of the backup
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--what {config,cdsp,playlists,r_moode,r_other} [{config,cdsp,playlists,r_moode,r_other} ...]
Indicate what to backup/restore (default for backup: config cdsp playlists, r_other, default on restore: auto detect content)
--backup Create backup
--restore Restore backup
--info Show which were used to create the backup
--db DB File name of the SQL database. (default: /var/local/www/db/moode-sqlite3.db
--script SCRIPT Add script file to the backup (executed when restoring the backup)
--wlanpwd WLANPWD When creating a backup, supply a password for wifi access (applied when restoring the backup)
Root privileges required for restore