Computer Hope

Software => BSD, Linux, and Unix => Topic started by: NP on September 03, 2004, 06:05:37 PM

Title: cp command and file changed
Post by: NP on September 03, 2004, 06:05:37 PM
hi, I'd want to archive the whole directory. I'm thinking of usging cp -a, and not sure what it does if while in the process of copying, some files got changed or deleted. Will it
  case 1: stop?
  case 2:
         a: if file changed: ignore the changed and copy the old file and keep copying the rest?
          b: if file deleted: skip the file and keep copying the rest?
    or esle?