Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Automatic Backup on /boot
#3
An example full backup command is below. 

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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Automatic Backup on /boot - by UpsiUps - 08-12-2022, 07:50 AM
RE: Automatic Backup on /boot - by the_bertrum - 08-12-2022, 10:26 AM
RE: Automatic Backup on /boot - by Tim Curtis - 08-12-2022, 01:54 PM
RE: Automatic Backup on /boot - by UpsiUps - 08-12-2022, 03:10 PM
RE: Automatic Backup on /boot - by Tim Curtis - 08-12-2022, 05:09 PM
RE: Automatic Backup on /boot - by greg_m - 01-29-2024, 01:47 PM
RE: Automatic Backup on /boot - by Tim Curtis - 01-29-2024, 08:07 PM
RE: Automatic Backup on /boot - by Tim Curtis - 01-29-2024, 09:20 PM
RE: Automatic Backup on /boot - by greg_m - 01-31-2024, 12:40 PM

Forum Jump: