minisync/README.md

40 lines
938 B
Markdown
Raw Permalink Normal View History

2010-09-28 20:34:38 +02:00
MiniSync
========
2010-10-01 00:26:37 +02:00
This small sync-tool has only 2 small files.
2010-09-28 20:34:38 +02:00
s.pl
----
On the remote machine, it reads a dir and asks *r.pl*, how many Bytes already synced.
It seeks to this Position and sends till *EOF*.
The complete sourcecode will be transfered via ssh and calls it via **perl -e**, you may not copy it.
2010-10-01 00:26:37 +02:00
2010-09-28 20:34:38 +02:00
r.pl
----
2010-10-01 00:26:37 +02:00
This programm is the main-part. It will connect via ssh to the remote machine and
starts *s.pl* remote via **perl -e**.
2010-09-28 20:34:38 +02:00
On the local machine, it will wait, till *s.pl* will request, how many Bytes the local file has.
*r.pl* opens and stats this file and responses. Every content it will append to this file,
till *s.pl* will announce an other file.
2010-09-29 13:23:12 +02:00
2010-10-01 00:26:37 +02:00
2010-09-29 13:23:12 +02:00
Install
=======
Perl - i think - is already installed on all your machines.
2010-10-01 00:26:37 +02:00
Usally, there is nothing to do.
2010-09-29 13:23:12 +02:00
Usage
=====
2010-10-01 00:26:37 +02:00
./r.pl <MACHINE> DIR/REGEXP DEST
2010-09-29 13:23:12 +02:00
This will copy files, which match expression REGEXP in DIR on MACHINE to local-dir DEST.