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

    XOA: backup Active Directory vm

    Scheduled Pinned Locked Moved Backup
    backupserver2022windowsxoa
    18 Posts 6 Posters 922 Views 5 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.
    • F Offline
      fatek
      last edited by

      Re: Backup AD servers

      Can XOA backup and restore AD vm's?
      What is the official word on this?

      1 Reply Last reply Reply Quote 0
      • GheppyG Offline
        Gheppy
        last edited by Gheppy

        I have something like this and I have no problems so far.
        The only thing is to do them all on the same day.
        I have a task that backs up all three VMs at once.
        And the restoration is done the same way, all from the same day.

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          fatek @Gheppy
          last edited by

          @Gheppy Why must you do it on the same day?

          GheppyG 1 Reply Last reply Reply Quote 0
          • GheppyG Offline
            Gheppy @fatek
            last edited by

            @fatek
            AD has a maximum period of difference between Domain Controller's and as far as I know it is 24h.
            If you don't do this, the oldest one will be out of sync and useless.

            1 Reply Last reply Reply Quote 1
            • K Offline
              karlisi
              last edited by

              If you need to restore one DC from VM backup, this can help
              https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/virtual-dc/restore-virtualized-domain-controller#restore-the-virtual-dc-with-a-vhd-file

              1 Reply Last reply Reply Quote 0
              • nikadeN Offline
                nikade Top contributor
                last edited by

                You need to use an backup agent or the build in windows backup to be 100% sure you can restore it.

                1 Reply Last reply Reply Quote 0
                • GheppyG Offline
                  Gheppy
                  last edited by

                  It's not really necessary.
                  As I said, I have 3 x DC and I restored them in the test lab and they were ok.
                  All three were backed up at the same time with a single normal backup task.
                  Below is the task I was talking about.
                  e03d9889-dede-4e7c-ba5a-4d10a5b05937-image.png

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fatek
                    last edited by

                    @olivierlambert Can you comment on this?

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      fatek
                      last edited by

                      btw, Vinchin does not support AD backup.

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

                        We had 0 feedback of issues with restoring MS AD or MS SQL VMs, since we started to create backup with XO (almost 10 years).

                        F 1 Reply Last reply Reply Quote 0
                        • F Offline
                          fatek @olivierlambert
                          last edited by

                          @olivierlambert
                          Since there is 0 feedback of issues, is backup/restore of MS AD officially supported?

                          nick.lloydN 1 Reply Last reply Reply Quote 0
                          • olivierlambertO Offline
                            olivierlambert Vates 🪐 Co-Founder CEO
                            last edited by olivierlambert

                            We are not Microsoft experts, we do not manage what's inside your VM, and if you have a problem inside the VM, it's likely unrelated to XO. We can't guarantee the behavior of thousand of thousands of different app, we do VM backup. If official support for AD means we should have the skills to debug AD, then the answer is no. We do guarantee that the VM should be restored as when it was running.

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              fatek
                              last edited by

                              I would not expect you to debug AD.
                              My main focus is can the MS AD vm be restored to it''s previous running state?

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

                                It's a VM snapshot, so the VM will be at the same state than when we did the snapshot, no more, no less 🙂

                                1 Reply Last reply Reply Quote 1
                                • nick.lloydN Offline
                                  nick.lloyd @fatek
                                  last edited by

                                  @fatek You can backup and restore AD VMs just fine. Like @Gheppy said, ideally within the same day/same time. However, you really should have one primary AD controller and the other ones set to read-only. That way you have one source of truth, but other duplicates can respond to requests, but you need to decide if that's "correct" for your situation obviously.

                                  F 1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    fatek @nick.lloyd
                                    last edited by

                                    @Nick-085 Are you doing daily full backups of your AD?

                                    nick.lloydN 1 Reply Last reply Reply Quote 0
                                    • nick.lloydN Offline
                                      nick.lloyd @fatek
                                      last edited by nick.lloyd

                                      @fatek One primary domain controller is replicated to an off-site location using the "Continuous Replication" feature every hour using snapshot mode "with memory". The "Full Backup" interval is set to 6. This guide is followed for most of the infrastructure.

                                      However, other LDAP servers are used for authentication and source(s) of truth, so it's a bit more complicated.

                                      1 Reply Last reply Reply Quote 1
                                      • nikadeN Offline
                                        nikade Top contributor
                                        last edited by

                                        According to Microsoft you need to use their built in backup feature or a software that supports AD and VSS which will tell the VM OS that it is going to be backed up.
                                        Unless you do this there might be corruption of the AD Databases according to Microsoft.

                                        ALL THO we've been backing up our AD servers with XOA snapshots (Both normal backup and incremental) and had only 1 issue since we started using XOA in 2016.
                                        Since that issue we also use a guest agent (From Ahsay CBS) that makes a Windows System State backup and Windows System Backup.

                                        More info about that can be found here:

                                        https://wiki.ahsay.com/doku.php?id=public:version_9:client:9447_system_state_backup_vs_system_backup

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