I have a server for which I want to start doing some daily backups of certain files. Since server is in production, it is better to limit network bandwidth, I thought trickle would do the job, but it does not seem to have any effect at all and I don't understand why.
Server A has the files I want to archive. I created an NFS share on it and gave access to Server B where I mounted the files. On Server B I run this command:
trickle -s -u 20000 -d 20000 find /mnt/ServerA/log/ -newermt 20181001 -not -newermt 20181002 -type f -print0 | xargs -0 tar -cvzf /tmp/archive.tar.gz
When I observe Server B network traffic using iptraf-ng tool, I see both servers fully utilizing their 1 Gigabit bandwidth (they are located in same lan). trickle does not limit it to 20Mbps as I specified in the command above.
Here is what I see in iptraf-ng: 846.68 Mbps (Both Server A and B) while the command is running.
Why isn't trickle command working and what could I use instead that is relatively simple.