rsync-retry - Rsync wrapper to retry on transfer errors
This document describes version 0.007 of rsync-retry (from Perl distribution App-rsync-retry), released on 2020-07-10.
Use like you would use rsync:
% rsync-retry -Pavz [other options...] <source> <target>
This wrapper runs rsync then checks its exit code. If exit code indicates transfer errors (e.g. I/O error, socket error, partial transfers, timeout) it will re-run the rsync. The number of retries to perform is set by the "--retry-times" option, while the number of seconds to wait before each retry is set by the "--retry-delay" option.
Shortcuts: -h, -?.
Default: -1 (unlimited).
In seconds. Default: 30.
Specify comma-separated list of exit codes to trigger retry. Default: 10,11,12,22,23,24,30,35.
Specify that rsync-retry should retry on all non-zero exit codes.
String. Rsync command to use. Defaults to rsynccolor (if available) or rsync otherwise. Can be used to chain several wrappers together.
rsynccolor
rsync
String. Used to set default for --retry-on.
Bool. Used to set default for --retry-on-all.
Please visit the project's homepage at https://metacpan.org/release/App-rsync-retry.
Source repository is at https://github.com/perlancar/perl-App-rsync-retry.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-rsync-retry
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
rsync-retry-on-all.
rsync.
Some other wrappers for rsync: rsync-new2old, rsynccolor.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020, 2019 by perlancar@cpan.org.
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 App::rsync::retry, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::rsync::retry
CPAN shell
perl -MCPAN -e shell install App::rsync::retry
For more information on module installation, please visit the detailed CPAN module installation guide.