Chroniton::BackupContents - stores the contents of a backup set (file list and file metadata)
my $contents = Chroniton::BackupContents->new("/location/of/backup/set"); $contents->add("/path/to/a/file") $contents->add("/path/to/another/file"); my @files = $contents->ls; my @revisions = $contents->get_file("/path/to/a/file");
Creates a new BackupContents object, that assumes added files will be stored in $location.
$location
Adds path to the backup set. path is the location of a real file on the filesystem, the metadata object is created by inspecting this file.
path
Adds a File object to the backup contents.
File
Lists all files in the backup.
Gets the Chroniton::File objects corresponding to filename.
Chroniton::File
filename
Returns the location of this backup
To install Chroniton, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chroniton
CPAN shell
perl -MCPAN -e shell install Chroniton
For more information on module installation, please visit the detailed CPAN module installation guide.