Walt Mankowski via plug on 24 Jul 2019 07:45:29 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] backup help needed


On Wed, Jul 24, 2019 at 10:24:28AM -0400, Alan McConnell via plug wrote:
> Assembled Wisdom!
> 
> I've bought an external hard disk, with 2 terabyte capacity, for
> backing up.  It works OK, but it seems I don't know the correct
> syntax for the 'cp' command.  I thought that
>      cp -a 'source' 'destination' would get everything, but
>      it doesn't get e.g. my .config/  directory.  I want _everything_
>      from my home directory /home/alan/  copied.  What do I have to
>      add to 'cp -a' to achieve this?

That should work. For 'source', are you using "/home/alan/" or
"/home/alan/*"? The latter won't work because * doesn't match anything
beginning with a ".".

Walt

Attachment: signature.asc
Description: PGP signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug