App::Rsnapshot::Rotate - rotate snapshots
# rotate the 'alpha' interval App::Rsnapshot::Rotate::go(config => $config, interval => 'alpha');
Rotates the named interval in your backups
Takes two named parameters,
interval, being the name of the interval you want to rotate.
If the named interval is the first interval, then every foo.$number directory is renamed to foo.$number+1 except the highest numbered, which is renamde to _delete.$$ where $$ is the process ID, and foo.0 which is left alone.
If the named interval is *not* the first interval then it only rotates if previous.last exists. In that case, every foo.$number directory is renamed to foo.$number+1 except the highest numbered, which is renamde to _delete.$$, and previous.last is moved to foo.0.
Copyright 2009 David Cantrell <email@example.com>
This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
This module is also free-as-in-mason software.