How to backup a huge remote db, the tcp may disconnect

I need to backup TBs data from a remote influxdb.
I use this command
sudo influxd backup -portable -host IP:8088 folder_name
It works, but this backup need days, it disconnect after some hours and the backup stop.
If I rerun the command (with or without -start -end), it will generate some other files and stop again.
It seems the backup can never finish.
How can I backup piece by piece?

Any help will be highly appreciated.