Do you know How do i get this:
rsync --delete --max-size=20M /source /target
this, only works once.. when i update max-size, delete option doesnt purge target files bigger or smaller than "max-size"...
Its very strange, it obligates me to delete all target files before i want to sync filtering by size file in order to work properly ..
Right now, I have it this way working like I would like it..(I had to use hardlinks to prevent all files being copying each time, cos I need a first delete.)
Code: Select all
rm -R "$pathvideoshort/"*
rsync -av --delete --max-size=12M --link-dest="$pathvideos/" "$pathvideos/" "$pathvideoshort/"
Thanks a lot.