show configuration doesn't mention about ROTATE variables

Bug #684346 reported by Bartosz Fenski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bashup
Incomplete
Undecided
Unassigned

Bug Description

Launching `bashup -s` doesn't show anything about ROTATE* variables.
It's mentioned only in few examples and it's really hard to create working configuration basing on that.

Here goes my config:

SOURCE=mysqldump
MYSQL_USER=root
MYSQL_PASS=xxxx
FILTER="bzip2 gpg_symmetric"
DESTINATION=ftp_file
FTP_HOST=xx.xx.xx.xx
CURL_OPTIONS="-u centrumdruku:Ohk9Ohng8I"
GPG_PROGRAM=/usr/bin/gpg
GPG_PASSPHRASE=xxxx
FILE=piwik-%Y-%m-%d_%H:%M.tar.bz2.gpg
FILES_TO_KEEP=5
ROTATE_ACCESS=ftp
ROTATE_LOCATION=${FILE}
USE_REPORTERS="console log"
COMBINED_LOG=combined.log
ERROR_LOG=error.log

Is there any way to keep only last 5 backups in such case?

regards
fEnIo

Revision history for this message
Bartosz Fenski (fenio) wrote :

Great... another password to change ;)

Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

Hi,

you want to keep the five last numbered backups - like .1 .2 .3 .4 .5 - right?

Best.

Changed in bashup:
status: New → Incomplete
Revision history for this message
Bartosz Fenski (fenio) wrote :

Not exacly. I would like to keep simply 5 last backups. I don't care wether they're going to be numbered.

Preferably would be nice to keep them like that:

piwik-2010-12-10_04:10.tar.bz2.gpg
piwik-2010-12-11_04:10.tar.bz2.gpg
piwik-2010-12-12_04:10.tar.bz2.gpg
piwik-2010-12-13_04:10.tar.bz2.gpg
piwik-2010-12-14_04:10.tar.bz2.gpg

regards
fEnIo

Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

Hey,

your ROTATE_LOCATION has to match all Files, that are included in the rotation. You are currently only referring to the current file. So you need to use make of a "*" somewhere in the descriptor.

This is an example for a normal numbered ROTATE_LOCATION:

ROTATE_LOCATION="${FILE}.*"

Best,

ccm.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.