Web lists-archives.com

Re: Backup problem using "cp"

Richard Owlett wrote:
> On 05/07/2018 06:54 AM, Dan Purgert wrote:
>> Richard Owlett wrote:
>>> [...]
>>> I suspect long term I want "rsync" [ *MUCH* reading to do! ]
>> Perhaps; although depending on the source / target pathing, you may run
>> into the same length issues.
> 1st - I suspect that --exclude will eliminate multiple pit falls.

Yep, it should.
> 2nd - It appears that cp creates a tangle of sub-directories >100
>        levels deep - each sub-directory has same string as its name ;{

If you did something that resolved to stick 'cp' into a recursive loop,
yup that'd definitely happen. Same with rsync.

|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281