[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Rsync und die Uhrzeit.



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



Reply to: