XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Scheduled enabling/disabling remote backup file systems?

    Scheduled Pinned Locked Moved Xen Orchestra
    5 Posts 2 Posters 233 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mhoffmann
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        Can you explain a bit more about the use case? This way we can think about the best solution 🙂

        1 Reply Last reply Reply Quote 0
        • M Offline
          mhoffmann
          last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Online
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            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)
            1 Reply Last reply Reply Quote 0
            • M Offline
              mhoffmann
              last edited by

              Thanks for your help. It seems to me that xo-cli works quite well for my purposes.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post