Advice on cp for copying missing files
Hi, I have a 40gb backup folder 'samples' with multiple nested folders.
I have a copy of this folder on another partition for general use.
backup :- /mnt/hda3/samples
user :- /mnt/hdb7/samples
Many folders/files from the everyday folder are now missing.
I wish to copy the missing folders/files back to /mnt/hdb7/samples folder.
I have tried cp -u /mnt/hda3/samples /mnt/hdb7 but the response is
"cp: omitting directory `/mnt/hda3/samples'"
so I tried cp -u /mnt/hda3/samples/* /mnt/hdb7 but the the next
layer of folders are omitted.
ie
cp: omitting directory `/mnt/hda3/samples/folder1'
cp: omitting directory `/mnt/hda3/samples/folder2'
cp: omitting directory `/mnt/hda3/samples/folder3'
cp: omitting directory `/mnt/hda3/samples/folder4' ... etc
Any advice on the correct usage?
I didn't want to make a whole new copy as it takes hours.
Thanks
|