Bug #19446
closedIncremental backup script in effect is performing full backup.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1445989
Description of problem: Incremental backup script in effect is performing full backup.
One error similar to the following:
cp: cannot stat ‘*.snar’: No such file or directory
It seems that the below files are used to provide a diff. As they weren't being read, customer was getting a full backup instead of an incremental backup.
.config.snar
.mongo.snar
.postgres.snar
.pulp.snar
Adding the '.' to the command on line 131 fixed the problem:
`cp #{@options[:incremental]}/.*.snar .` if @options[:incremental]
Below is the difference between two files.
=================================================================- diff
u katello-backup katello-backup.newkatello-backup 2017-02-03 10:01:31.000000000 -0500
--
+++ katello-backup.new 2017-04-25 09:56:54.162505948 -0400@ -128,7 +128,7
@
`tar --selinux --create --gzip --file=config_files.tar.gz --listed-incremental=.config.snar #{CONFIGS.join(' ')}`
puts "Done."
- `cp #{@options[:incremental]}/*.snar .` if @options[:incremental]
+ `cp #{@options[:incremental]}/.*.snar .` if @options[:incremental]
=================================================================
if @options[:online]
backup_db_online
Version-Release number of selected component (if applicable):
How reproducible: Reproducible at customer's environment.
Steps to Reproduce: Take incremental backup using the below command.
- katello-backup /path/to/dir --incremental [PREVIOUS_BACKUP_DIR]
Actual results: Incremental backup script is performing full backup.
Expected results: It should perform incremental backup.
Additional info: Customer had provided the above solution which they expect to be included in future release or to fix the issue.
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello-packaging/pull/436 added
Updated by Justin Sherrill over 7 years ago
- Subject changed from Incremental backup script in effect is performing full backup. to Incremental backup script in effect is performing full backup.
- Translation missing: en.field_release set to 211
Updated by Justin Sherrill over 7 years ago
- Translation missing: en.field_release changed from 211 to 228
Updated by Christine Fouant over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-packaging|744ea66261cac609acaa5c47b9f2319a1040f678.
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 228 to 211