Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

how copy from NAS to RPI including subdirectories?

Fri Jun 09, 2017 8:33 pm

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?

User avatar
thagrol
Posts: 3078
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: how copy from NAS to RPI including subdirectories?

Fri Jun 09, 2017 9:22 pm

Probably because their names don't match "*.*"

Try

Code: Select all

sudo cp -r /mnt/NAS/bkupweb/api /var/www/api
instead.
Arguing with strangers on the internet since 1993.

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: how copy from NAS to RPI including subdirectories?

Sat Jun 10, 2017 7:28 am

Thanks
I tried that allready before, without succes

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: how copy from NAS to RPI including subdirectories?

Sat Jun 10, 2017 8:29 am

Canedje wrote:Thanks
I tried that allready before, without succes
Did you get any error msgs?

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: how copy from NAS to RPI including subdirectories?

Sat Jun 10, 2017 8:31 am

no.

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

Return to “Troubleshooting”