About the `-u' option of `cp' command

2011-09-03 Thread Rodolfo Medina
Hallo, Debian users. In `cp' man it is said: -u, --update copy only when the SOURCE file is newer than the destination file or when the destination file is missing Now, it happens sometimes to me that, even with `-u', `cp' will copy the file also when it isn't

Re: About the `-u' option of `cp' command

2011-09-03 Thread Sven Joachim
On 2011-09-03 09:58 +0200, Rodolfo Medina wrote: In `cp' man it is said: -u, --update copy only when the SOURCE file is newer than the destination file or when the destination file is missing Now, it happens sometimes to me that, even with `-u', `cp' will

Re: About the `-u' option of `cp' command

2011-09-03 Thread Ivan Shmakov
Sven Joachim svenj...@gmx.de writes: On 2011-09-03 09:58 +0200, Rodolfo Medina wrote: […] Now, it happens sometimes to me that, even with `-u', `cp' will copy the file also when it isn't newer at all than the destination file, as here: $ ls -lh ing.tex /mnt/pendrive2/ing.tex

Re: About the `-u' option of `cp' command

2011-09-03 Thread Andrew McGlashan
Hello, Rodolfo Medina wrote: Hallo, Debian users. In `cp' man it is said: -u, --update copy only when the SOURCE file is newer than the destination file or when the destination file is missing Why not use rsync for this? Cheers -- Kind Regards AndrewM