Thank you for your donation!


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


backup script
#1
does anyone have an example for a custom backup script?
i installed wireguard autoconnect and plexamp on the side i would like that stuff backed up but i dont see any explanation on how to do this with a backup script.

thanks
Reply
#2
(01-09-2023, 11:51 AM)Latumus Wrote: does anyone have an example for a custom backup script?
i installed wireguard autoconnect and plexamp on the side i would like that stuff backed up but i dont see any explanation on how to do this with a backup script.

thanks

Are you referring to the “add script” feature in Backup/Restore? That’s not going to do what you want. 

[off topic] “Plexamp on the side”? Isn’t that analogous to taking a Porsche and installing a Ferrari on the side?  Big Grin
[/off topic]

Regards,
Kent
Reply
#3
The script file specified in Backup is executed during the Restore process. It would perform whatever actions are necessary to restore something that is external to moOde. That assumes that the "something" has been previously backed up and its backup file is available to the script during the Restore.

For example wireguard is prolly installed via apt, has a conf file and also some data directories. The conf and data directories would need to be manually archived to a tar or zip and stored somewhere. The moOde script used during the Restore would need to do the apt install and then copy the conf and data directories from the wireguard backup tar or zip to their target locations. The same would need to be done for plexamp.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: