FTP/SFTP Transfer Script
This script will transfer your data from your Ultra.cc slot to another location. Simply add data to the Ultra_Sync
directory and it will automatically be transferred to your destination of choice.
As this script is utilizing the FTP or SFTP protocol, no data transferred will be counted towards your monthly upload quota.
The script is unofficial and not supported by Ultra.cc staff.
Requirements
- Both of the remote services need SSH access enabled
- Python 3.6+ needs to be installed on source machine
Installation
Before you can proceed with installing the FTP/SFTP transfer script, Python needs to be version 3.6 or above.
Upgrade Python
- Connect to your Ultra.cc slot via SSH, see guide here.
- Once connected, execute the following command:
bash <(wget -qO- https://scripts.usbx.me/util/Python-Installer/main.sh)
- Type
confirm
to proceed with the installation. - Next, pick a Python version above 3.6 or type
4
for latest version - Press ENTER to confirm.
- When the installation has finished, execute the following command:
source ~/.profile
With Python updated to version 3.6 or above, you can proceed the installation.
Script Installation
- Connect to your Ultra.cc slot via SSH
- Execute the following command:
bash <(wget -qO- https://scripts.usbx.me/util/Ultra_Sync/ultra_transfer_installer.sh)
- Type
confirm
to proceed with the installation - Type
1
and press ENTER
At this point in the installationinstallation, you will be asked to enter access details for the destination of the transfer. Below you will find explanations for each access detail.
- Username: Username of your destination machine
- Hostname: Hostname (eg. servername.usbx.me or 11.22.33.44) of your destination machine
- Password: SSH/FTP password of your destination machine
- Port: Default port is 22, but if you use another one on your destination machine, enter that one.
- Protocol: FTP or SFTP
When you have your access details ready, proceed with the installation.
- Type your remote destination username and press ENTER
- Type your remote destination hostname and press ENTER
- Type your remote destination password and press ENTER
- Type your remote destination port and press ENTER
TypeSelect your remote destinationprotocolprotocol, press1
for FTP andpress2
for SFTP. Press ENTER to confirm.
If you have entered all the access details successfully, the script installation is finished and the script has been started.
Uninstallation
- Execute the following command:
bash <(wget -qO- https://scripts.usbx.me/util/Ultra_Sync/ultra_transfer_installer.sh)
- Type
confirm
to proceed with the installation. - Next, you will be presented with three options:
- Press
2
to uninstall script. PressENTER
to confirm.
The script will ask you to confirm the uninstallation with YES or NO.
- Press
1
for uninstall. PressENTER
to confirm.
Usage Information
-
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, thescript will create two directories. Ultra_sync directory on your source machine and Ultra_transfer on your destination machine.Lastly, the script will set up a cron job on your source machineFiles thatwillyouruncopyaorrsyncmovecommand every 4 hours. This will sync your data betweento thetwo directories.
Do NOT increase the rsync transfer speed if you are using a plan with HDD as this will violate the Fair Usage Policy.
The content of directoryUltra_sync directory on your source machine willsyncbe automatically transferred toUltra_transferon your destination machine every 4 hours.If you delete or move data fromthe Ultra_transfer directory ontheyour destinationmachinemachine.it-
The transfer script will be
re-transferredrunningatin a screen session. To check thenextprogresssync.of the transfer, simply executescreen -r UltraSynctool
. Toavoid this you need to delete the datadetach from thesourcescreenmachine.session Ifandyou have one of our NVMe plans you can increaseleave the transferspeedrunning,by editing the rsync command.To edit the rsync command, executepress
andcrontab -eCTRL+bsetthen press
.--bwlimit=100000dPressCTRL+X,If the script stops moving data, or you
willbyseemistakeakilledprompttheaskingscreentosession.save,You can restart the script again. This is done by executing the initial installation command, typeconfirm
and pressYENTER. When presented with the three options, select option 3 (restart) andENTERthe script will restart and initiate a new screen session.