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?
I searched cp
and 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
or
rsync -avr /source /dest
m.