Posts: 6
Threads: 3
Joined: Jan 2023
Reputation:
0
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
Posts: 13,424
Threads: 304
Joined: Mar 2018
Reputation:
545
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.