Is there any way to copy directory from one filesystem to another but remove the partial file in case we run out of disk space on target filesystem?
rsync manuals but did not find anything; I could do this in a shell script but wanted to avoid it if possible.
At present I do:
cp -r /source /dest
rsync -avr /source /dest