Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-15408

Backup Cron deletes exact time period, not greater than

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
      None

      Description

      Noticed after upgrade to 5.5.2. Routine check of server showed high disk utilization. Checked backups, and there were far too many for the cron expression. It appears when a time period is set shorter than an off period, Artifactory fails to clean up. In my case, it's weekends (which is the default back-up schedule). As a script, the backup deletion should be older than or equal to the provided time period, not just the specific time.

      Cron failing to delete:

      0 0 2 ? * MON-FRI

      Advanced: Retention Period: 48 hours

      Example df of backup directory

      drwxrwxr-x  6 artifactory artifactory 4096 Dec  4 02:00 20171204.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Dec  1 02:00 20171201.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 30 02:00 20171130.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 29 02:00 20171129.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 28 02:00 20171128.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 27 02:00 20171127.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 24 02:00 20171124.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 23 02:00 20171123.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 22 02:00 20171122.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 21 02:00 20171121.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 20 02:00 20171120.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 17 02:00 20171117.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 16 02:00 20171116.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 15 02:00 20171115.020000
      drwxrwxr-x  9 artifactory artifactory 4096 Nov 14 16:32 ..
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 14 16:06 20171114.160635
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 14 02:00 20171114.020000
      drwxrwxr-x  6 artifactory artifactory 4096 Nov 13 02:00 20171113.020000
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jchittum John Chittum
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: