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

    Full backup - new long-retention options

    Scheduled Pinned Locked Moved Backup
    21 Posts 5 Posters 204 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.
    • Bastien NolletB Offline
      Bastien Nollet Vates 🪐 XO Team @Bastien Nollet
      last edited by Bastien Nollet

      @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.

      P ForzaF 2 Replies Last reply Reply Quote 0
      • P Offline
        Pilow @Bastien Nollet
        last edited by

        @Bastien-Nollet where did u see his backup executing once a week ?
        I see everyday, full on sunday ?

        i'm discovering a new way of LTR.

        we should keep retention to 1, and manage the LT points in the form below ? days included ?
        as of now, I gave retention 7 days, and then only put numbers in weeks/months but the results were inexpected... 😕

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

          @Pilow I was replying to Forza, who has only one schedule with cron pattern 5 18 * * 0. I edited my message to make it clearer that I wasn't talking of ph7's backups.

          What you did seems totally fine to me.
          Could you detail a bit more what was unexpected in the results, and share a screenshot of your backup job retention/LTR configuration, so there is no misunderstanding?

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

            @Bastien-Nollet here is the config of the BACKUP job :
            95912a70-912d-49fb-8d68-1277beaa9407-image.png

            to the remote DC1-REMOTE01

            you would expect 10 points after 1month+ of forver incremental backups ?
            7 daily, 2 weekly, and 1 monthly

            but I only get 7 points in this remote (the last 7 days)

            I have a mirror copy job, 14 points retention, no LTR, to a remote called DC2-REMOTE01-COPYDC1, i get my exact 14 points.

            b944fdef-693a-4de6-bfaa-9c758cf8a0e2-image.png 680c5ed9-df13-4a32-9703-8fd36464bc2c-image.png

            so i guess, i do not profit from LTR ?
            is that because i didnt put something in DAYS ? or because my retention is >1 ?
            backups are executed daily by SEQUENCE.

            Bastien NolletB 1 Reply Last reply Reply Quote 0
            • 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 Offline
                    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
                          • First post
                            Last post