Remote Sync Tool
This script will facilitate a sync between two directories on two different remote services.
Prerequisites
- Both of the remote services need SSH access enabled
- Rsync needs to be installed on both remote services
Installation
- Connect to your remote source service via SSH.
- Execute the Ultra Sync Tool installation script with the following command:
bash <(wget -qO- https://scripts.ultra.cc/util-v2/Ultra-Sync/main.sh)- Type
1and pressENTER - Type your remote destination username and press
ENTER - Type your remote destination hostname and press
ENTER - Type your remote destination SSH password and press
ENTER - Type your remote destination SSH port (22) and press
ENTER - Done!
Usage
- The script will generate an RSA encryption key for the remote source machine and upload it to the destination machine to facilitate passwordless login via SSH.
- Once the RSA encryption key is added to your destination machine, the script will create two directories.
Ultra_syncdirectory on your source machine andUltra_transferon your destination machine. - Lastly, the script will set up a cron job on your source machine that will run a rsync command every 4 hours. This will sync your data between the two directories.
- The content of directory
Ultra_syncon your source machine will sync toUltra_transferon your destination machine every 4 hours. - If you delete or move data from
Ultra_transferdirectory on the destination machine it will be re-transferred at the next sync. To avoid this you need to delete the data from the source machine. - If you have one of our NVMe plans you can increase the transfer speed by editing the rsync command.
- To edit the rsync command, execute
crontab -eand set-bwlimit=100000. - Press
ctrl+x, you will see a prompt asking to save, pressyandENTER.
Uninstallation
- Execute the following command:
bash <(wget -qO- https://scripts.ultra.cc/util-v2/Ultra-Sync/main.sh)- Type
2and confirm withENTERto proceed with the uninstallation.
If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server
- Remote Sync Tool
- Prerequisites
- Installation
- Usage
- Uninstallation