When I use cp to back up files, I couldn't use a wildcard until now. I just figured out I was making a syntax error. I had entered:
Quote:
cp -urv '/mnt/sda3/folder/folder/*.*' '/mnt/sdb2'
|
It worked only once I thought to remove the quotation marks--evidently, quotation marks prevent Linux from recognizing a wildcard. The correct syntax is:
Quote:
cp -urv /mnt/sda3/folder/*.* '/mnt/sdb2'
|
Is this an unnecessary thread? I don't know: any advanced user undoubtedly knows the above and will think "duh," but I supposed it might help a novice user.