BackupRotator is a small Java utility to rotate files of any kind (including backup files, log files, etc.) and to be able to keep the newest n files.
It is a program that allows files to be "rotated" with an upper limit on the number of files that exist.
Basically, it is given a filename(s) and a number n in a configuration file and it renames the filename(s) such that there it forms an increasing list filename1, filename2, up to the smaller of n or as many as are available. If there are more than n files when the program is run, the oldest files get deleted.
Eg: If there are files called log1, log2, log3 and maxNo=3, running the program will delete log3, rename log2 to log3 and rename log1 to log2.
Eg: If there are files called log1, log2, log3 and maxNo=0, running the program will rename log2 to log3 and rename log1 to log2.
Eg: If there is a file called log1 and maxNo=3, running the program will delete log3, rename log1 to log2.
Eg: If there are files called log1, log2 and maxNo=3, running the program will rename log2 to log3 and rename log1 to log2.
BackupRotator is Free Software (Open Source) and is available under the terms of the GNU GPLv3+.
For developers, the code can easily be cloned using Git. It is also easy to fork on GitHub. Contributions can then be made by sending patches or pull requests (preferred) either via the the mailing list, the ticketing system, the forum or GitHub.Developers can use the following command to clone the git tree:
git clone git://github.com/rosslagerwall/backuprotator.git
Any comments, queries, discussion, patches, pull requests, etc., can be done via the mailing lists.
- Subscribe to the low traffic backuprotator-announce mailing list for announcements (such as notification of new versions).
- General discussion (such as asking for help, proposing new ideas, etc.) takes place on the backuprotator-general mailing list. Subscribe or send a mail to firstname.lastname@example.org.
- Development discussion (such as pull requests, patches, bug reports, etc.) takes place on the backuprotator-devel mailing list. Subscribe or send a mail to email@example.com.
The forum can be used instead of the mailing lists if desired.
Bugs can be reported via the ticketing system. Please follow good bug reporting guidelines ensuring that the full details of the platform are described as well as easily performed steps to reproduce the bug. Feature requests can also be sent via the ticketing system.
Move to GitHub
Written on 6 February 2012
The project's canonical repository is now hosted on GitHub. The move was done simply because of the better code-hosting facilities. The remainder of the project (downloads, issues, etc.) is still hosted on SourceForge.Version 1.0.0
Released on 10 July 2011