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

    Full backup - new long-retention options

    Scheduled Pinned Locked Moved Backup
    24 Posts 5 Posters 333 Views 6 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.
    • ForzaF Offline
      Forza @Bastien Nollet
      last edited by Forza

      @Bastien-Nollet said in Full backup - new long-retention options:

      @Forza As your backup tasks executes only once a week, the schedule retention is redundant with using "Number of weekly backups kept" of LTR.

      If keeping the last 52 weekly backups of this job is what you want, I recommend you to set the schedule retention to 1, and the number of weekly backups kept to 52. This way, if you happen to execute this backup job manually (in addition to its schedule), it will not delete the oldest backups.

      Thanks for the feedback. I included that difference (52 in the schedule and 12 in the LTR) on purpose in the screenshot because I wanted to know what takes presendece here, the 12 weeks, or 52 weeks.

      I have not yet enabled LTR, but am considering it for this backup job so that I can keep 52 weeks, 24 months and 5 yearly.

      Now I wonder if each dailym weekly, monthly and yearly option are sequential to the previous, or if all counts from 0?

      Will it mean that I have:

      • year 1: 52 weekly
      • year 2: 12 monthly
      • year 3: 12 monthly
      • year 4: 1 yearly
      • year 5: 1 yearly
      • year 6: 1 yearly
      • year 7: 1 yearly
      • year 8: 1 yearly

      Or will I get:

      • year 1: 52 weekly + 12 monthly + 1 yearly (at the end of year 1)
      • year 2: 12 monthly + 1 yearly
      • year 3: 1 yearly
      • year 4: 1 yearly
      • year 5: 1 yearly
      Bastien NolletB 1 Reply Last reply Reply Quote 0
      • Bastien NolletB Offline
        Bastien Nollet Vates 🪐 XO Team @Pilow
        last edited by

        Hi @Pilow,

        You're indeed supposed to have more backups kept. (probably 9, as the backup of the current week is already kept by the schedule's retention).

        We'll try to reproduce the problem on our side to see what's going on and fix it, but it will be a bit long as testing it requires a lot of waiting.

        Thanks for the feedback, it will help us improve the feature.

        P 1 Reply Last reply Reply Quote 0
        • Bastien NolletB Offline
          Bastien Nollet Vates 🪐 XO Team @Forza
          last edited by

          Hi @Forza,

          The first list is the correct one.
          For instance, a single backup can satisfy both the monthly and yearly criteria.

          1 Reply Last reply Reply Quote 1
          • P Online
            Pilow @Bastien Nollet
            last edited by

            @Bastien-Nollet by default what day of day/week/month/year is selected for the LTR point ?

            You said we cannot choose for now, but you could give us the actual recipe ?

            Bastien NolletB 1 Reply Last reply Reply Quote 0
            • Bastien NolletB Offline
              Bastien Nollet Vates 🪐 XO Team @Pilow
              last edited by

              @Pilow

              This is supposed to be the first day of the year, of the month, etc... But we just noticed a bug that makes LTR keep backups from the end of month, end of week, etc.

              A fix is on the way.

              ForzaF 1 Reply Last reply Reply Quote 0
              • ForzaF Offline
                Forza @Bastien Nollet
                last edited by

                @Bastien-Nollet Some countries use different days for first of the week, This should perhaps be configurable for such users? I prefer Monday as first of the week 🙂

                Bastien NolletB 1 Reply Last reply Reply Quote 0
                • Bastien NolletB Offline
                  Bastien Nollet Vates 🪐 XO Team @Forza
                  last edited by

                  @Forza

                  We plan to make it configurable during the upcoming months.

                  1 Reply Last reply Reply Quote 2
                  • Bastien NolletB Offline
                    Bastien Nollet Vates 🪐 XO Team
                    last edited by

                    A fix has been merged on master, now the LTR should properly pick the first backup of each day, week, month and year instead of the last one: https://github.com/vatesfr/xen-orchestra/pull/9180

                    fbeauchamp opened this pull request in vatesfr/xen-orchestra

                    closed fix(backups): long term retention taking the most recent values #9180

                    P 1 Reply Last reply Reply Quote 2
                    • P Online
                      ph7 @Bastien Nollet
                      last edited by ph7

                      @Bastien-Nollet
                      I have tested it since the 05c6f release and it seems to work fine

                      9005c018-b6ac-4cc0-a1f2-7aeaaa7ac58b-image.png

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

                        \o/ 🍾

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