01-09-2023, 12:49 PM
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.
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.