NAME
Backup::Duplicity::YADW - Yet Another Duplicity Wrapper
VERSION
version 0.01
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.
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.
return: undef
expire( )
Tell duplicity to "remove-older-than <days in conf file>".
verify( )
Tell duplicity to verify backups.
restore( %args )
# required
loc => <directory or file location>
# optional
[ time => <time according to duplicity manpage> ]
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.