Sync/replicate influxdb in gateway to cloud

Hi all, I use influxdb at the gateway and connect to influxdb in the cloud as the setup in the blog

I want to send the batch data to cloud and still store data in local gateway for a month in case it loses the connection. After it reconnects to the cloud, it can sync the data to the cloud. Does influxdb have any solution for this setup? Thanks.