IO::BlockSync - Syncronize changed blocks
Version 0.002
BlockSync can some of the same stuff that bigsync (by Egor Egorov) can - it's just written in perl.
BlockSync copies data from source file to destination file (can be a block device) and calculates checksum on each block it copies. On all runs after the first only the changed blocks will be copied.
Perl module:
use IO::BlockSync; BlockSync( src => 'sfile', dst => 'dfile', chk => 'cfile' );
Executable:
blocksync -s /source/file -d /destination/file
When installing this module you install the IO::BlockSync Perl module and the blocksync command.
IO::BlockSync
blocksync
Install directly from CPAN mirror:
cpan IO::BlockSync
Or see How to install CPAN modules.
You can get a copy of this module from GitHub:
git clone https://github.com/thordreier/perl-IO-BlockSync.git
Then you can just use CPAN to install the module and take care of dependencies:
cpan .
Or manual install (you need to fix dependencies manually):
perl Makefile.PL make make test make install
If you want to use as many packages from your distro as possible instead of getting them from CPAN you can run this command before any of the ones above:
apt-get install \ libnamespace-clean-perl \ liblog-log4perl-perl \ libmoo-perl \ libmoosex-log-log4perl-perl \ libmoox-options-perl \ libtry-tiny-perl
After installing, you can find documentation for this module with the perldoc command:
perldoc IO::BlockSync
This documentation can also be found on GitHub or meta::cpan
After installing, you can find documentation for the executable with one of these commands:
blocksync --help blocksync --man perldoc $(which blocksync)
Documentation can also be found on GitHub or meta::cpan
This software is copyright (c) 2019 by Thor Dreier-Hansen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Terms of the Perl programming language system itself:
the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
the "Artistic License"
See http://dev.perl.org/licenses/ for more information.
To install IO::BlockSync, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::BlockSync
CPAN shell
perl -MCPAN -e shell install IO::BlockSync
For more information on module installation, please visit the detailed CPAN module installation guide.