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

Re: rsync --delete funktioniert nicht?



Hallo,

On Fri, May 04, 2007 at 10:15:23PM +0200, Heiko Schlittermann wrote:

> > 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.

Dein Bauchgefühl trügt nicht. Danke! Wieder mal ein Grund, warum man
man-pages nicht nur überfliegen, sondern auch *lesen* sollte.

Danke und Grüße,

Holger

-- 
Fachbegriffe der Informatik - Einfach erklärt:
10: strukturiert
dieses Programm besteht aus mehreren Funktionen (Kristian Köhntopp)

Attachment: signature.asc
Description: Digital signature


Reply to: