The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Rsnapshot::Rotate - rotate snapshots

SYNOPSIS

    # rotate the 'alpha' interval
    App::Rsnapshot::Rotate::go(config => $config, interval => 'alpha');

DESCRIPTION

Rotates the named interval in your backups

SUBROUTINES

go

Takes two named parameters, config and 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.

BUGS/WARNINGS/LIMITATIONS

None known.

SOURCE CODE REPOSITORY

http://www.cantrell.org.uk/cgit/cgit.cgi/rsnapshot-ng/

AUTHOR, COPYRIGHT and LICENCE

Copyright 2009 David Cantrell <david@cantrell.org.uk>

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.

CONSPIRACY

This module is also free-as-in-mason software.