Web lists-archives.com

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




On 05/11/2018 09:46 AM, Pascal Hambourg wrote:
Le 11/05/2018 à 14:59, Richard Owlett a écrit :
On 05/06/2018 09:22 AM, Richard Owlett wrote:
I'm attempting to backup current partition  to a USB connected 1 TB drive.

I get:

root@debian-jan13:/home/richard# cp -ax / "/media/richard/MISC backups/dev_sda14/" cp: cannot stat '/media/richard/MISC backups/dev_sda14/home/richard/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13/grub2 problem-2018-02-13/grub2 problem-2018-02-13/grub2 problem-2018-02-13/grub2 problem-2....018-02-13/grub2 problem-2018-02-13': File name too long


The problem turned out to be that "....local/share/Trash/expunged/73080846/grub2..." appeared under *BOTH*
/home/richard and the root directory.

Do you mean that there was a

/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13

or

/root/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13

directory ? The former would be really odd. Also, I do not see how either would interfere with

/media/richard/MISC backups/dev_sda14/home/richard/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13

or

/home/richard/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13

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
		and
    /root/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13
or
/home/root/.local/share/Trash/expunged/73080846/grub2 problem-2018-02-13

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


I successfully ran:
root@debian-jan13:/home/richard# updatedb
root@debian-jan13:/home/richard# locate TRASH
root@debian-jan13:/home/richard# cp -ax / /media/richard/MISC-backups/dev_sda14/

None of these commands removes any file or directory.


Agreed ;/
There had been a mess of house keeping done.

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.

Now can you understand why *I* am fascinated with "corner cases" ;/