Copying Files from Region to Region Using RSYNC or FPSYNC is Slow

Using rsync or fpsync to copy data from a file system in one region to a file system in another region results in slow progress.

Cause: NFS traffic from region to region is generally expensive. File copies between two NFS servers, each in a different region, can take time.

Solution: Instead of using rsync or fpsync to copy data between mounted file systems in different regions, use fpsync and instance-to-instance streaming.

The fpsync tool is a parallel wrapper of rsync. To install fpsync, enable the Oracle Linux developer repository, which includes the fpsync utility, on an OCI instance using a command such as the following:

yum --enablerepo ol7_developer_EPEL install -y fpart
yum --enablerepo ol8_developer_EPEL install -y fpart
Note

The command differs based on the version of Oracle Linux in use.

A standard command such as this copies data:

fpsync /<fss_src_region>/test /<fss_dest_region>/

After installing the tool, use instance-to-instance streaming and a command such as this:

fpsync -o "-e ssh --progress" /<fss_src_region>/test <ssh_user>@<remote_ip>:/<fss_dest_region>/

For more information and options, see the fpsync man page.