- USAGE AND DOCUMENTATION
- LICENSE AND COPYRIGHT
IO::BlockSync - Syncronize changed blocks
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.
use IO::BlockSync; BlockSync( src => 'sfile', dst => 'dfile', chk => 'cfile' );
blocksync -s /source/file -d /destination/file
When installing this module you install the
IO::BlockSync Perl module and the
Install directly from CPAN mirror:
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:
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:
After installing, you can find documentation for the executable with one of these commands:
blocksync --help blocksync --man perldoc $(which blocksync)
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:
See http://dev.perl.org/licenses/ for more information.