cp didn't copy all files few files were missing

0

How is it possible that cp didn't copy all files from a huge directory?

I did cp on a large directory with 5000 files. I checked contents with diff and it was not matching! How is this possible?

I ran cp -rv devholidayge/ holiday/

user98645

Posted 2012-10-16T10:10:59.167

Reputation:

Are you sure it completed with a 0 return code and no errors? What is the exact command you invoked? – dset0x – 2012-10-16T10:12:06.447

Does the directory have subdirectories under it? If yes, then cp by itself will not do a recursive copy unless you specify the -R flag. – M K – 2012-10-16T10:15:55.420

Did you run out of space on the target? – pjc50 – 2012-10-16T10:20:00.500

@MK yes I used -r – None – 2012-10-16T10:34:34.077

@pjc50 nope. I've many more gigs of space. – None – 2012-10-16T10:34:51.487

@zmode exact command is in the post. I edited it out. – None – 2012-10-16T10:35:11.080

Are there subdirectories or files within devholidayge/ for which you don't have read permission? – M K – 2012-10-16T10:36:07.470

1What do the files that didn't copy have in common (if anything)? Were they all over a certain size? Were they all a certain type? – ChrisF – 2012-10-16T10:36:26.133

@ChrisF they were part of the w3 total cache plugin. – None – 2012-10-16T10:40:31.093

@SandroDzneladze - edit this information into your question. – ChrisF – 2012-10-16T10:41:23.010

@SandroDzneladze Could it be that they were cache files? If so, it is possible that they vanished or were created after the copy started. – dset0x – 2012-10-16T10:41:50.920

@zmode not possible, they were part of w3-total-cache-config files not cache files. – None – 2012-10-16T10:50:30.040

No answers