Navigation

    XCP-ng

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    XO Backup [NOBAK] for full backups

    Xen Orchestra
    5
    20
    341
    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.
    • N
      normanghenderson last edited by

      Hi, I have a 3.4 TB video repository (as 2 disks due to the 2 TB limit) on a NAS attached to the VM that runs Zoneminder. It isn't necessary nor possible to create backups of that data.

      Looking at XO Backup, I find mention that a disk whose name starts [NOBAK] will be ignored in Delta backups. Does that work? Github comments from a year ago make me think that it's still a work in progress.

      That's what I need except: it's also necessary to do Full backups periodically and I understand Xen doesn't have a mechanism to ignore a disk when taking a snapshot, therefore nor does XO. Fair enough but, what about in the case of Snapshot Mode Offline?

      It should be easy to script the XE CLI to (1) shut down the VM (2) detach the unwanted disks (3) take the snapshot (4) attach the disks (5) start the VM. Would that be a way for XO Backup to ignore disks flagged [NOBAK] on a full backup? Presumably XO Backup is already doing steps 1,3, and 5 for Snapshot Mode Offline. Adding 2 and 4 might not be much work and wouldn't even require UI changes.

      Alternatively if there were a way to supply scripts that would add a lot of flexibility to XO Backup: e.g. pre-backup, post-snapshot/pre-export, post-backup.

      Thoughts? I'm not much of a programmer but I'm happy to test...

      1 Reply Last reply Reply Quote 0
      • olivierlambert
        olivierlambert XCP-ng Team Admin Vates Team last edited by

        [NOBAK] works, at the transfer level. It means, the disk will be snapshot, but the data won't be export to the backup.

        It's due to the fact we use VM.snapshot method that doesn't allow to make a VM snapshot by excluding disks.

        We have an alternative in the pipes, working directly on disk level snapshot (VDI.snapshot) that will solve this.

        1 Reply Last reply Reply Quote 0
        • N
          normanghenderson last edited by

          Thanks @olivierlambert. Any thoughts on the pre / post backup scripts idea?

          1 Reply Last reply Reply Quote 0
          • olivierlambert
            olivierlambert XCP-ng Team Admin Vates Team last edited by olivierlambert

            Don't we have already some webhooks? Anyway, the VDI.snapshot method can be done in one or 2 releases, might worth to wait anyway 🙂

            edit: we have indeed webhooks but for jobs, I wonder it might be trivial to get them for backup 🙂

            1 Reply Last reply Reply Quote 0
            • B
              Biggen last edited by Biggen

              I'm waiting for the same feature. I have a surveillance camera VM with a 20TB array that I don't want to back up. I created an Ansible playbook to recreate just the OS in the event I needed to since I can't backup the VM but that is kinda a hack. I'd rather exclude the video footage array and backup the OS.

              1 Reply Last reply Reply Quote 0
              • olivierlambert
                olivierlambert XCP-ng Team Admin Vates Team last edited by

                Noted. Pinging @julien-f

                1 Reply Last reply Reply Quote 1
                • N
                  normanghenderson last edited by

                  Just coming back to this: @olivierlambert
                  (1) what is the approximate timeframe for VDI.snapshot ?
                  (2) You said "we have indeed webhooks but for jobs, I wonder it might be trivial to get them for backup" - is that likely to happen soon?
                  I can't do the code but I can test...

                  1 Reply Last reply Reply Quote 0
                  • N
                    normanghenderson last edited by

                    Here's another case in XCP-ng/Xen, which pre/post hooks for XO backups could be used to solve:

                    Any way to backup VM with USB attached?

                    There are many situations in which it would be desirable to shut down a VM before backup and start it up again afterwards, especially these cases in which a storage device or USB device needs to be detached or the backup won't run...

                    1 Reply Last reply Reply Quote 0
                    • olivierlambert
                      olivierlambert XCP-ng Team Admin Vates Team last edited by

                      Repinging @julien-f

                      1 Reply Last reply Reply Quote 0
                      • julien-f
                        julien-f XO Team Admin Vates Team last edited by

                        @normanghenderson I'm currently working on this feature, I had hoped to be able to release this for the September release but due to last minute issue it will likely be postponed for the end of October.

                        Note that this will ship in the proxy first before making its way to regular backups.

                        Best regards,

                        1 Reply Last reply Reply Quote 0
                        • N
                          normanghenderson last edited by

                          @julien-f Thanks very much. Let me know when there is something to test.

                          N 1 Reply Last reply Reply Quote 0
                          • N
                            normanghenderson @normanghenderson last edited by

                            @normanghenderson Hi Julien, Happy New Year. Just touching base on this? I just made an attempt with xo-server 5.73.0 xo-web 5.76.0 and got the usual SR_OPERATION_NOT_SUPPORTED due to the large disk.

                            julien-f 1 Reply Last reply Reply Quote 0
                            • olivierlambert
                              olivierlambert XCP-ng Team Admin Vates Team last edited by

                              I think it's coming this release, isn't it @julien-f ?

                              1 Reply Last reply Reply Quote 0
                              • julien-f
                                julien-f XO Team Admin Vates Team @normanghenderson last edited by

                                @normanghenderson Yep, it should be coming at the end of the month 🙂

                                N 1 Reply Last reply Reply Quote 1
                                • olivierlambert
                                  olivierlambert XCP-ng Team Admin Vates Team last edited by

                                  metal

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    normanghenderson @julien-f last edited by

                                    @julien-f Excellent, thank you!

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      MrBaz last edited by

                                      Has this been implemented yet?
                                      I've tried the [NOBAK] method, and the disk still gets cycled into the weekly VM backup.

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        MrBaz @MrBaz last edited by

                                        Running the latest xen orchestra. Just finished our latest weekly backup. It still backed up the 1TB disk I had labeled as [NOBAK].

                                        B 1 Reply Last reply Reply Quote 0
                                        • B
                                          Biggen @MrBaz last edited by

                                          @mrbaz I don't think its been implemented yet. Its coming from what I've read though.

                                          1 Reply Last reply Reply Quote 0
                                          • olivierlambert
                                            olivierlambert XCP-ng Team Admin Vates Team last edited by

                                            It should be for this release, this time 😉 @julien-f is working on it!

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            XCP-ng Pro Support

                                            XCP-ng Pro Support