Web lists-archives.com

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




On Fri 11 May 2018 at 07:59:30 (-0500), Richard Owlett wrote:
> 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.

Evidence of that?

> I successfully ran:
> >root@debian-jan13:/home/richard# updatedb
> >root@debian-jan13:/home/richard# locate TRASH

But   locate TRASH   only searches for TRASH, not Trash. You need to
either   locate -i   or give the appropriate case.

> >root@debian-jan13:/home/richard# cp -ax /  /media/richard/MISC-backups/dev_sda14/
> >root@debian-jan13:/home/richard#

Cheers,
David.