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.