Backup::Duplicity::YADW - Yet Another Duplicity Wrapper
version 0.12
$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");
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.
version 0.11
Config file path. Default is /etc/yadw.
Config file name. Default is default.conf.
Do a dry run.
Tells the module to write log data using the syslog facility
Print extra messages about whats going on.
Constructor - 'nuff said
Tell duplicity to do a backup. Requires either 'full' or 'inc' for a type. Returns true on success.
Tell duplicity to "remove-older-than <days in conf file>".
Equivalent to "collection-status" in duplicity. Returns true on success.
Tell duplicity to verify backups. Returns true on success.
Tell duplicity to do a restore.
Required args:
location => $path
Optional args:
time => $time (see duplicity manpage)
Returns true on success.
yadw (ready to use backup script)
John Gravatt <john@gravatt.org>
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.
To install Backup::Duplicity::YADW, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Backup::Duplicity::YADW
CPAN shell
perl -MCPAN -e shell install Backup::Duplicity::YADW
For more information on module installation, please visit the detailed CPAN module installation guide.