Scheduled enabling/disabling remote backup file systems?
-
I want to enable/disable remote NFS shares (Settings -> Remotes -> NFS "enable / disable") via schedule in order to mount and unmount removable media with this.
What is the XO-way of scheduling this?
As far as i can tell it's at least not possible via XO job?Of course at the backend NFS server the volume will be removed from NFS share and unmounted too before changing the media.
Currently this is done manually and works quite well. But i would like to automate the mount/unmount sequence.... Hence i ask for the XO part. -
Hi,
Can you explain a bit more about the use case? This way we can think about the best solution
-
Yes, the question is about automating mounting / unmounting remote file systems (NFS) within XO.
The idea behind this is to create XO backups directly on removable media attached to an NFS remote server. Of course changing removable media involves cleanly unmounting and mounting these media on the NFS Server side and on the XO side, too.
So the question is how this can be best automated from an XO perspective? -
There's multiple approaches possible and it's hard to answer without getting a more detailed workflow on how you'd like to do it. But here is few possibilities:
- Use XO API to remotely disable the remote when you want
- You can also use
xo-cli
to do so - If you want 2 ways communication between your NAS and XO, you can also rely on webhooks in XO side (to send a message when the backup is done)
-
Thanks for your help. It seems to me that xo-cli works quite well for my purposes.