Modify

Ticket #1439 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Incorrect use of "Days to keep" parameter in backup

Reported by: jgonzalez@… Owned by: jsalamero@…
Milestone: Component: ebackup
Severity: normal Keywords:
Cc:

Description

The "Days to keep" backup parameter is incorrectly used as an rdiff-backup parameter. This parameter is obtained in /etc/cron.daily/ebox-ebackup-cron in the following line:

my $keep = $model->backupKeepValue();

This is passed to /usr/share/ebox-ebackup/ebox-ebackup-local and then used as follows:

...
MAXAGE=$2
...
rdiff-backup --remove-older-than $MAXAGE --force $BACKUP/ > $LOG 2> $LOG
...

I think this causes rdiff-backup to take this value as an absolute date instead of a relative amount of days. The correct syntax to specify a number of days to keep is to add a capital D after the amount of days:

rdiff-backup --remove-older-than ${MAXAGE}D --force $BACKUP/ > $LOG 2> $LOG

Attachments

Change History

comment:1 Changed 4 years ago by jacalvo@…

  • Owner changed from javier.amor.garcia@… to jsalamero@…
  • Component changed from backup to ebackup

comment:2 Changed 4 years ago by jacalvo@…

  • Status changed from new to closed
  • Resolution set to fixed

Already fixed in ebox-ebackup 1.2.2

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.