Linux 15.009 Themen, 106.826 Beiträge

rsync...

ghartl1 / 2 Antworten / Flachansicht Nickles

hllo,


gibts bei rsync eine option, wo man den fortschritt sieht(so etwas wie ein fortschrittsbalken oder restliche zeit bis zur fertigstellung)
ich machs immer so


rsync -avr /quelle/ /ziel/

man sieht zwar dass er alle durchgeht...aber nix näheres


gruss günter

bei Antwort benachrichtigen
KarstenW ghartl1 „rsync...“
Optionen

Ja, klar:

man rsync

....
--progress
This option tells rsync to print information showing the progress of the transfer. This gives a
bored user something to watch. Implies --verbose if it wasn't already specified.

While rsync is transferring a regular file, it updates a progress line that looks like this:

782448 63% 110.64kB/s 0:00:04

In this example, the receiver has reconstructed 782448 bytes or 63% of the sender's file, which
is being reconstructed at a rate of 110.64 kilobytes per second, and the transfer will finish in
4 seconds if the current rate is maintained until the end.

These statistics can be misleading if the incremental transfer algorithm is in use. For exam-
ple, if the sender's file consists of the basis file followed by additional data, the reported
rate will probably drop dramatically when the receiver gets to the literal data, and the trans-
fer will probably take much longer to finish than the receiver estimated as it was finishing the
matched part of the file.

When the file transfer finishes, rsync replaces the progress line with a summary line that looks
like this:

1238099 100% 146.38kB/s 0:00:08 (xfer#5, to-check=169/396)

In this example, the file was 1238099 bytes long in total, the average rate of transfer for the
whole file was 146.38 kilobytes per second over the 8 seconds that it took to complete, it was
the 5th transfer of a regular file during the current rsync session, and there are 169 more
files for the receiver to check (to see if they are up-to-date or not) remaining out of the 396
total files in the file-list.
.....

Es gibt auch rsync für Windows. Damit könnte man auch Backups unter Windows machen:

http://wiki.njh.eu/mediawiki/index.php?title=Rsync_unter_Windows&printable=yes

http://www.itefix.no/phpws/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=6&MMN_position=23:23



Debian GNU/Linux https://www.debian.org/index.de.html
bei Antwort benachrichtigen
ich idiot danke ghartl1