Holger Leskien <holger@leskien.com> (Di 01 Mai 2007 18:49:37 CEST): > Hallo, > > hat jemand einen Tip, warum > > rsync -a -e ssh --delete user@host:/data/backup/* /data/backup/. Mein Bauchgefühl sagt mir, daß ich mal den "*" weglassen würde. Um nicht nur nach dem Bauch zu agieren, habe ich mal für Dich in rsync(1) nachgeschaut und nach "--delete" gesucht: --delete This tells rsync to delete extraneous files from the receiving ... rsync to send the whole directory (e.g. "dir" or "dir/") without using a wildcard for the directory’s contents (e.g. "dir/*") since the wildcard is expanded by the shell and rsync thus gets a request to transfer individual files, not the files’ parent Mein Bauch war also gar nicht so schlecht. Viele Grüße Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann HS12-RIPE ----------------------------------------- gnupg encrypted messages are welcome - key ID: 48D0359B --------------- gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B -
Attachment:
signature.asc
Description: Digital signature