NAME
Chroniton::BackupContents - stores the contents of a backup set (file list and file metadata)
SYNOPSIS
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");
METHODS
new($location)
Creates a new BackupContents object, that assumes added files will be stored in $location
.
add($path)
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.
add_object
Adds a File
object to the backup contents.
ls
Lists all files in the backup.
get_file(filename)
Gets the Chroniton::File
objects corresponding to filename
.
location
Returns the location of this backup