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

Re: rsync syncronisiert .<files> nicht



Peter Funk wrote:

> Hallo Matthias,
> 
> Matthias Meyer schrieb am Mittwoch, den 03.10.2012 um 22:10:
>> Hi,
>> 
>> Ich verwendet rsync um eine Datenplatte zu sichern:
>> 
>> rsync -azH --del --numeric-ids --include='*/' --include='.*'\
>> --exclude-from=/tmp/hosts.excludes -u\
>> -e "ssh -i /obs-mirror.tmpDir/.ssh/id_rsa -l backuppc -p 24"\
>> fileserver:/obs-Snapshot/* /obs-mirror.tmpDir/var/lib/backuppc
>> 
>> Dabei exkludiere ich eine Reihe von Verzeichnissen.
>> /tmp/hosts.excludes enthält diese in der Form:
>> pc/vhost/976/
>> pc/vhost/992/
>> pc/vhost/new/
>> 
>> Leider werden ".my.cnf", ".Xauthority" und ".ssh" aus
>> /obs-Snapshot nicht mit syncronisiert.
>> 
>> Woran kann das liegen?
> 
> Der Stern ('*') erfasst keine "versteckten" Dateien (also
> Dateien, deren Name mit '.' beginnt).
> 
> Gibt es einen bestimmten Grund, warum hier nicht einfach
> 
>  rsync -azH --del --numeric-ids --include='*/' --include='.*'\
>   --exclude-from=/tmp/hosts.excludes -u\
>   -e "ssh -i /obs-mirror.tmpDir/.ssh/id_rsa -l backuppc -p 24"\
>   fileserver:/obs-Snapshot/ /obs-mirror.tmpDir/var/lib/backuppc
> 
> benutzt wird?
>  
> Viele Grüße, Peter Funk

Danke, das war der Grund. mit "fileserver:/obs-Snapshot/" anstatt 
"fileserver:/obs-Snapshot/*" funktioniert es.
-- 
Don't Panic


Reply to: