View Single Post
Posts: 197 | Thanked: 4 times | Joined on Jan 2007
#149
Originally Posted by brendan View Post
seems you missed a space to specify which path is source and which is destination.

cp -r /home/user/ /media/mmc1/backups/

this will recursively (-r option) copy the contents of users home dir to the mmc card, in a folder called backups that must exist prior to running the command. note the space between user/ and /media. i am not sure why your are specifying a file name for the backup, though.
Sorry for the confusion, but I did actually write :

cp -r /home/user /media/mmc1/user.bak

note the space between the word "user" and the "/media/etc, etc".
Do I need to have the second '/ ' sign that you inserted above after "user" ?

Also, I only specified a file name for the backup because that is how Gnuite had it in his earlier post.

Thanks,
Neil