I'm trying to replace my cp function by an rsync function My cp function is the following
find /home/odroid/USBHD/Movies/ -iname "*.mkv" -mtime '-1' -exec cp -n {} /home/odroid/NASVD/Movies \;
do you guys have any idea how to do this(note the mtime can also be replaced by --ignore-existing
rsync
withfind
. – Ramesh Sep 27 '14 at 18:24cp -n
byrsync
with the right options, or do you want to replace the whole command line? When you say “the mtime can also be replaced by --ignore-existing”, do you mean that copying all files but ignoring already-existing files would be ok, in which case, why isn'trsync -a --ignore-existing /home/odroid/USBHD/Movies/ /home/odroid/NASVD/Movies/
ok? – Gilles 'SO- stop being evil' Sep 27 '14 at 23:36