On Mit, 22 Sep 2004, Jan L�hr wrote:
> Ich beziehe mich einfach mal auf ein Beispiel in der Doku:
> 
> drsync --verbose --rsh=ssh --exclude=BACKUP --recursive \
>     --state-file=.mail.desktop.drsync.bz2 desktop:mail ~
>   drsync --verbose --rsh=ssh --recursive \
>     --state-file=.mail.notebook.drsync.bz2 mail desktop:
> 
> Ich denke, dass l�sst sich ohne gro�e Sinnververschiebung zusammenschrumpfen 
> als
> 
> dsync --state-file=status.dat desktop:mail ~
> und
> dsync --state-file=status.dat mail desktop:
> 
> Ok... soweit so gut, dass k�nnte sinn machen. Mit der Erkl�rung:

Ich glaube nicht.

> "HOW IT WORKS
>  
> rsync made the majority of the work, so rsync is required in both sides of the 
> synchronization. drsync is required only in the caller side. 
> 
>  First, it loads the file-list from the file, which is specified by the 
> "--state-file" command-line argument. 
> 
>  Then it generates the current filelist (by calling rsync -n), and compares 
> the two state. 
> 
>  Then it deletes the deleted files and creates the newly created files in the 
> destination place, using rsync-rsh if necessary. The new files are created 
> with 1970-01-01 timestamp (unix epoch), and they are 0 bytes long. 

Das wichtige hier ist, dass folgendes passiert (ich vermute dass es so
ist, ich habe es nie ausprobiert!):

- zuerst wird die Liste der files erstellt, die in der filelist noch
  drinnen stehen, aber nicht mehr im lokalen system. Diese werden dann
  am remoten system gel�scht.
- dann wird die Liste der files erstellt, die in der filelist nicht
  vorhanden sind, aber am lokalen system vorhanden sind. Diese werden
  dann am remoten system leer mit timestamp 1970 erstellt.
- zuletzt werden die files syncronisiert, aber ohne --delete. Dann wird
  das ganze in die andere Richtung gemacht 

Und
        This is my theory, and it belongs to me ;-)

Wenn es wirklich so w�re, wie du es beschreibst, dann w�re es sehr bl�d
und es w�re schon einigen Leuten aufgefallen.

> Hat hier jemand Erfahrung mit diesem Programm?

Nein ;-) Nur mit unison.

Herzliche Gr��e

Norbert

-------------------------------------------------------------------------------
Norbert Preining <preining AT logic DOT at>         Technische Universit�t Wien
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
BEREPPER
The irrevocable and sturdy fart released in the presence of royalty,
which sounds quite like a small motorbike passing by (but not enough
to be confused with one).
                        --- Douglas Adams, The Meaning of Liff


-- 
Haeufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)

Antwort per Email an