I am taking NFS backup using following way.
tar -b 1024 -cf - . | /bin/gzip -c | /bin/dd bs=10M oflag=direct,sync of=/nfs
But I read it somewhere that to throttle the rate of I/O reading the data to match NFS WRITE rate, to use
rsync --bwlimit=10M -az -P -H . /nfs
I want to know which one is efficient out of these 2 to write a big chunk of file into NFS mounted path.
tar
pipeline writes an archive to the file/nfs
, whilersync
writes several to beneath/nfs
. Also the first is using a specific block size at an unspecified speed, while the second is using an unspecified block size at a specified speed. What is it that you want to achieve?