lucacerone
January 21st, 2012, 11:12 AM
Hi all,
I'd like to ask you some help, because apparently I'm doing something wrong
using the -u option of cp.
I have a directory where I save my work Data.
They take a lot of space, so from time to time I want to copy them to
an external device and remove the from my computer.
To do so I use the command
cp --preserve=all -R -L -v -u -t /media/externalhdd DataPath
I use the -u option so that only new and files that have been modified
are copied while skipping the one that I already had copied before.
Unfortunately seems that the -u option doesn't work.
If I run the same command twice in a row,
all the files are copied again.
Am I using a wrong syntax? Is there any way I can make it work
in the intended way?
Thanks a lot in advance for your help,
have a nice day!
Luca
I'd like to ask you some help, because apparently I'm doing something wrong
using the -u option of cp.
I have a directory where I save my work Data.
They take a lot of space, so from time to time I want to copy them to
an external device and remove the from my computer.
To do so I use the command
cp --preserve=all -R -L -v -u -t /media/externalhdd DataPath
I use the -u option so that only new and files that have been modified
are copied while skipping the one that I already had copied before.
Unfortunately seems that the -u option doesn't work.
If I run the same command twice in a row,
all the files are copied again.
Am I using a wrong syntax? Is there any way I can make it work
in the intended way?
Thanks a lot in advance for your help,
have a nice day!
Luca