Page 1 of 1

how copy from NAS to RPI including subdirectories?

Posted: Fri Jun 09, 2017 8:33 pm
by Canedje
I'm starting from beginning building up my RPI again
On the forehand I backupped all files to my NAS by a mount.
Now I do want to copy all my files back from my NAS to the RPI including subdirectories.
I use:

Code: Select all

sudo cp -r /mnt/NAS/bkupweb/api/*.* /var/www/api
Why are the subdirectories under API not copied to the NAS?

Re: how copy from NAS to RPI including subdirectories?

Posted: Fri Jun 09, 2017 9:22 pm
by thagrol
Probably because their names don't match "*.*"

Try

Code: Select all

sudo cp -r /mnt/NAS/bkupweb/api /var/www/api
instead.

Re: how copy from NAS to RPI including subdirectories?

Posted: Sat Jun 10, 2017 7:28 am
by Canedje
Thanks
I tried that allready before, without succes

Re: how copy from NAS to RPI including subdirectories?

Posted: Sat Jun 10, 2017 8:29 am
by DirkS
Canedje wrote:Thanks
I tried that allready before, without succes
Did you get any error msgs?

Re: how copy from NAS to RPI including subdirectories?

Posted: Sat Jun 10, 2017 8:31 am
by Canedje
no.

I fixed it by copiing every directory by hand (some hours!)