Project

General

Profile

Feature #6203

Rotation of tar archives

Added by pjwr over 4 years ago. Updated over 3 years ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
tar handler
Target version:
-
Start date:
07/28/2013
Due date:
% Done:

0%

QA Check:
Ready for QA

Description

The current implementation of the tar handler creates an unlimited number of tar archives; one per execution of the handler.
Keeping an unlimited number of copies is not always required and in some situation, it may force the sysadmin to write a custom script to take care of the rotation of the oldest copies.

The enclosed patch modifies the tar handler so that it is capable of rotating the archives itself.
The patch does not change the default behavior so that backward compability is assured.

The rotation is configured via a new keyword: "rotate" (named after logrotate's parameter)
The patch also updates ninjahelper's tar helper to add support for this new parameter.

The implementation is very basic but has been successfully doing the job on my server for a month now, without causing any issues.

0001-Added-support-for-rotation-of-tar-archives.patch View (1.92 KB) pjwr, 07/28/2013 08:35 AM

History

#1 Updated by intrigeri over 3 years ago

  • QA Check set to Ready for QA

#2 Updated by intrigeri over 3 years ago

  • Status changed from New to Confirmed

Just to be clear: I'm not using the tar handler, and don't feel knowledgeable in it to review this code. I suggest asking for tests and reviews on the mailing-list.

Also available in: Atom PDF