TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MARTIN GREGORIE
from: CHRIS ELVIDGE
date: 2018-08-13 14:24:00
subject: Re: Create NDIF disk imag

On 12/08/2018 15:34, Martin Gregorie wrote:
> On Sun, 12 Aug 2018 15:00:57 +0200, A. Dumas wrote:
>
>> On 12-08-18 14:08, Martin Gregorie wrote:
>>> I think so. When rsync gets to the file, it realises what it last
>>> backed up as a file is now a directory, so it replaces the file with
>>> the directory and its contents.
>>
>> No, what I'm saying is that normally it doesn't, at least not how I use
>> it, with -au options. For me, that results in an error message "Unable
>> to copy [etc]" or similar and that subtree being skipped. So either you
>> use other (--delete-etc?) options, or maybe with only -a (without -u)
>> rsync will replace instead of skip. Idk, haven't tested the exact
>> implications of rsync options recently.
>>
> I use a different set of options, because we have slightly different
> requirements: I don't want rsync to stop except for serious errors.
> I'm running with these options:
>
> -avzE --delete --delete-excluded --ignore-errors --log-file=$log
>
> plus several excludes so it doesn't back up stuff pseudo-filestore
> structures like /run and /proc
>
>

-x will stop it crossing filesystem boundaries, thus excluding /run
/proc /dev /sys (and others) automatically.


--

Chris Elvidge, England

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.