rotation counter seems to keep too many versions

Bug #364079 reported by Caspar Clemens Mierau
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bashup
Confirmed
Undecided
Bashup Developers

Bug Description

On several systems I encountered the following problem: While using

FILES_TO_KEEP=3
ROTATE_ACCESS=debug
ROTATE_ACCESS_METHOD=local
ROTATE_KEEP=keep_numbered
ROTATE_MOVE=move_numbered

I observed, bashup rotates files like

xyz.bz2
xyz.bz2.001
xyz.bz2.002
xyz.bz2.003
xyz.bz2.004

This equals to four if not five files to me and is at least one file more than configured.

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

Hi,

did you provide a "ROTATE_LOCATION"?

Try adding the following:

ROTATE_LOCATION="xyz,bz2.*"

Best,

ccm.

Changed in bashup:
status: New → Incomplete
Revision history for this message
Lucas Pires Gomes (lpg-br) wrote :

On several systems I encountered the following problem: While using

BACKUP_DEST_BASE=/root
USE_REPORTERS="console log"
COMBINED_LOG=combined.log
ERROR_LOG=error.log
FILTER=gzip
DESTINATION=file
FILES_TO_KEEP=1
ROTATE_ACCESS=debug
ROTATE_ACCESS_METHOD=local
ROTATE_KEEP=keep_numbered
ROTATE_MOVE=move_numbered
SOURCE=tree
TREE_DIRECTORIES="/var/www"
FILE=${BACKUP_DEST_BASE}/tree/www.tar.gz
ROTATE_LOCATION="${FILE}.*"

I observed, bashup rotates files like

www.tar.gz
www.tar.gz.001
www.tar.gz.002

This equals to two if not three files to me and is at least one file more than configured.

Changed in bashup:
status: Incomplete → Confirmed
assignee: nobody → Caspar Clemens Mierau (damokles)
assignee: Caspar Clemens Mierau (damokles) → Lucas (lpg-br)
assignee: Lucas (lpg-br) → Bashup Developers (bashupdev)
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.