NAME
Backup::Duplicity::YADW - Yet Another Duplicity Wrapper
VERSION
version 0.12
SYNOPSIS
$yadw = Backup::Duplicity::YADW->new;
$yadw = Backup::Duplicity::YADW->new(
conf_dir => '/etc/mydir',
conf_file => 'other.conf',
dry_run => 0,
use_syslog => 1,
verbose => 0
);
$yadw->backup();
$yadw->verify();
$yadw->expire();
$yadw->restore("/my/file/location");
DESCRIPTION
This is a wrapper for Duplicity. I found my command lines for invoking Duplicity getting quite lengthy and wanted a way to persist my configurations in an intuitive manner. I looked at several other Duplicity wrappers, but none of them quite fit what I wanted. So Backup::Duplicity::YADW was born.
NAME
Backup::Duplicity::YADW - Yet Another Duplicity Wrapper
VERSION
version 0.11
ATTRIBUTES
conf_dir
Config file path. Default is /etc/yadw.
conf_file
Config file name. Default is default.conf.
dry_run
Do a dry run.
use_syslog
Tells the module to write log data using the syslog facility
verbose
Print extra messages about whats going on.
METHODS
new( [ %attributes ] )
Constructor - 'nuff said
backup( $type )
Tell duplicity to do a backup. Requires either 'full' or 'inc' for a type. Returns true on success.
expire( )
Tell duplicity to "remove-older-than <days in conf file>".
status( )
Equivalent to "collection-status" in duplicity. Returns true on success.
verify( )
Tell duplicity to verify backups. Returns true on success.
restore( %args )
Tell duplicity to do a restore.
Required args:
location => $path
Optional args:
time => $time (see duplicity manpage)
Returns true on success.
SEE ALSO
yadw (ready to use backup script)
AUTHOR
John Gravatt <john@gravatt.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by John Gravatt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
AUTHOR
John Gravatt <john@gravatt.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by John Gravatt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.