01-29-2024, 01:47 PM
Hi,
Renewing the old thread.
I'm trying to automate the backup and add it to cron. Testing the backup command as explained above and by using the below code:
I get a zip file, but comparing to the backup created from the web interface seems like moodecfg.ini file is not there.
Is the moodecfg.ini file importanct for the backup? If so how can I add it to the backup zip file?
Also a "www" folder with a single json file is missing too, but seems like that json in my case is empty anyway, so I don't worry much about that.
Also seems like adding or removing db part below doesn't do much. Is it needed?
Many thanks.
Greg
Renewing the old thread.
I'm trying to automate the backup and add it to cron. Testing the backup command as explained above and by using the below code:
Code:
/var/www/util/backup_manager.py --what config cdsp playlists r_moode r_other --backup --db /var/local/www/db/moode-sqlite3.db /mnt/NAS/backup/backup_moode_$(date +%y%m%d_%H%M).zip
I get a zip file, but comparing to the backup created from the web interface seems like moodecfg.ini file is not there.
Is the moodecfg.ini file importanct for the backup? If so how can I add it to the backup zip file?
Also a "www" folder with a single json file is missing too, but seems like that json in my case is empty anyway, so I don't worry much about that.
Also seems like adding or removing db part below doesn't do much. Is it needed?
Code:
--db /var/local/www/db/moode-sqlite3.db
Many thanks.
Greg