Web lists-archives.com

Re: SUCCESS!!!! - was {Re: Backup problem using "cp"}

Le 11/05/2018 à 19:54, Richard Owlett a écrit :

I posted after having purged my system of the offending ???? and was writing from memory.

I believe there were two source directories
   /home/richard/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13
     /root/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13
    /home/root/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13

Probably /root/... /home/root usually does not exist.

The crud filled result was a "THING/glob/???" at:
     /media/richard/MISC  backups/dev_sda14/home/richard/.local/share
       /Trash/expunged/73080846/grub2 problem-2018-02-13

That is the result of the copy from /home/richard/. What makes you think that the directory tree in /root was involved ?

What I was trying to document was that
     cp -ax /  /media/richard/MISC-backups/dev_sda14/root
should be have been expected to run to _intended result_.

In reality, there was a *PERVERSE* permutation of initial conditions.

I do not understand what you mean.

IIUC, the error was caused by a very long pathname in the source path which exceeded the maximum length in the target path. After you removed the overlong directory chain, cp proceeded without error as expected.
Or did I miss something ?