rsync Protokoll mit kopierten Dateien?

F

Fux

Jungspund
Hallo zusammen,

kann mir jemand verraten, wie ich rsync dazu bewege, ein Log zu erstellen in dem nur(!) die als neu/verändert erkannten und somit kopierten Dateien enthalten sind?

Ich wüßte nämlich ganz gerne, welche Dateien rsync da so kopiert.

In der Man-Page habe ich dazu leider nichts gefunden.


Vielen Dank im Voraus!

Fux
 
Geht, soweit ich weiß mit:
rsync --verbose --progress >> /Pfad zum Log/Logfile.
 
Das gibt irgendwie alle Dateien aus; auch die, die nicht aktualisiert wurden.
 
Bei mir klappt das wunderbar...
Code:
rsync -vaup --stats --delete $SRC $DEST >> $LOGFILE
Das ergibt bei mir ein schönes Logfile mit allen kopierten und gelöschten Dateien.

Ansonsten empfehle ich die lektüre von 'man rsync':
Code:
-v, --verbose
       This option increases the amount of information  you  are  given
       during the transfer.  By default, rsync works silently. A single
       -v will give you information about what files are  being  trans‐
       ferred  and  a  brief summary at the end. Two -v flags will give
       you information on what files are  being  skipped  and  slightly
       more  information at the end. More than two -v flags should only
       be used if you are debugging rsync.

       Note that the names of the transferred files that are output are
       done  using  a  default  --log-format of "%n%L", which tells you
       just the name of the file and, if the item is a link,  where  it
       points.  At the single -v level of verbosity, this does not men‐
       tion when a file gets its attributes changed.  If you ask for an
       itemized list of changed attributes (either --itemize-changes or
       adding “%i” to the --log-format setting),  the  output  (on  the
       client)  increases  to mention all items that are changed in any
       way.  See the --log-format option for more details.

Grüsse
d22
 

Ähnliche Themen

Keine grafische Oberfläche (Debian Installation)

Samba 4.5.12-Debian Rechtevergabe

Probleme mit rsync

Batch-Datei Alternative unter Linux

CentOS VM boot verändern und Netzwerksettings von Share laden

Zurück
Oben