BackupRotator – Utility to rotate backup and log files

Sponsored Link
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.

Install backuprotator on ubuntu

First you need to make sure you have installed JRE 6 on your system now you need to download the file from here
Once you have the files you can run this application using the following command from your terminal (Make sure you are in correct folder location)

java -jar BackupRotator.jar


Sponsored Link

Incoming search terms:

Related posts

Leave a comment

Your email address will not be published. Required fields are marked *