Bug 1446683 - [regression] katello-backup produces full backups even when --incremental is used, needs fixing for Satellite 6.2
Summary: [regression] katello-backup produces full backups even when --incremental is ...
Keywords:
Status: CLOSED DUPLICATE of bug 1445989
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Backup & Restore
Version: 6.2.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Bruno Rocha
QA Contact: Sanket Jagtap
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-28 15:17 UTC by Pablo Hess
Modified: 2021-08-30 12:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-03 13:39:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3015091 0 None None None 2017-04-28 15:21:39 UTC

Description Pablo Hess 2017-04-28 15:17:46 UTC
Description of problem:
/usr/bin/katello-backup will produce full backups instead of incremental backups, even when the --incremental option is used.

The fix exists upstream, but we need it now for Satellite 6.2 as multiple customers are probably hitting the issue.


The consequence of this issue is that supposedly incremental backups (i) are not incremental but full and (ii) consume at least as much storage space as the full backup they point to.

The root cause is the underlying shell's globbing behavior and is fixed by the upstream commit at https://github.com/Katello/katello-packaging/commit/77bc87f20f74c3bb705ba2f118fb174aa2580b79

katello-backup attempts to copy the .something.snar files from the previous backup with a `cp /src/*.snar /dest/` which fails because the shell does not by default match *.snar to .something.snar.

The fix modifies shell globbing behavior with `shopt -s dotglobbing ; cp /src/*.snar /dest/` but it can also be solved by adding a dot to the command: `cp /src/.*.snar /dest/`.



Version-Release number of selected component (if applicable):
Satellite 6.2.8, possibly earlier versions as well.
katello-common-3.0.0-17.el7sat.noarch


How reproducible:
Always

Steps to Reproduce:
1. On Satellite 6.2.8 run katello-backup /full/backup/dir --skip-pulp-content

2. After full backup completes, run katello-backup /first/incremental/backup --skip-pulp-content --incremental /full/backup/dir

3. Check backup sizes by running du -sh /full/backup/dir /first/incremental/backup



Actual results:
Backup sizes will roughly be the same.

Expected results:
An incremental backup taken mere minutes after the latest full backup should be significantly smaller than the full backup.


Additional info:

On a test Satellite 6.2.8 with ~5 repos synced, these are the results after multiple runs of katello-backup within a 2 hour period:

# du -sh /satbackup/*

14G     /satbackup/katello-backup-2017-04-25T10:40:32-03:00
14G     /satbackup/katello-backup-2017-04-25T11:05:22-03:00
1.8G    /satbackup/katello-backup-2017-04-25T12:24:03-03:00

First line is the full backup.
Second line is the incremental backup pointed at the first one.
Third line is a new incremental backup pointed at the full backup *after applying the fix*.


Can we have a fix for Satellite 6.2?

Comment 3 Christine Fouant 2017-05-03 13:39:43 UTC

*** This bug has been marked as a duplicate of bug 1445989 ***


Note You need to log in before you can comment on or make changes to this bug.