NAME
Chroniton::Restore - implements restoration from backups
FUNCTIONS
In both of these functions, log
is the standard Chronition::Messages object.
restore(log, filename, from, [force])
Restores filename
(the original filename) from from
. from
is the path to the backup set containing filename
. Fails if filename
already exists on the filesystem, unless force
is set. (DANGEROUS!)
Returns the number of files that were successfully restored.
restorable(log, filename, from, [fuzzy])
Lists all files under directory from
that are versions of filename
. Examines the contents.yml
under each subdirectory of from
, looking for filename
. If fuzzy is true, looks for similarly named files. (TODO: implement this.)
Returns a list of references, where each reference is:
[location_of_backupset, modification_date, permissions, size, user, group]
0 1 2 3 4 5
C<location_of_backup> is where the backup is located, and
C<modification_date> is the date when the file was last modified.