Backup::Duplicity::YADW - Yet Another Duplicity Wrapper
$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.
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.
location => $path
time => $time (see duplicity manpage)
Returns true on success.
yadw (ready to use backup script)
John Gravatt <firstname.lastname@example.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.