Upload with Rclone

With the Rclone command-line program you can manage your Universal CDN Storage containers. It is used to sync, copy, upload files and directories to and from storage containers. 


To configure a new remote that allows access to your Universal CDN Storage container on Rclone please follow the steps outlined below: 


1. Install Rclone by following the article at https://rclone.org/install/


2. Run the following command in the terminal window after installing the Rclone tool:

rclone config


3. Add New remote. 


4. Choose name.

name> remote – [remote] – remote name, must contain only letters and numbers


5. Type of storage to configure.

Storage> 11 – 11 / Openstack Swift “swift”


6. User name to log in.

user> 1011131  – user = first part of FTP username


7. API key or password.

key> fHmGeBuSbaJrPcts – key = the FTP password of your storage


8. Choose a number from below, or type in your own value.

auth> https://auth.files.nl01.cloud.servers.com:5000/v2.0/ 

– auth = https://auth.files.nl01.cloud.servers.com:5000/v2.0/ (if your storage is located in EU) and https://auth.files.us01.cloud.servers.com:5000/v2.0/ (if your storage is located in North America)


9. User domain – optional (v3 auth).

domain> leave this optional field blank and hit enter


10. Tenant name – optional for v1 auth, required otherwise.

tenant> 1011131 – tenant name is the second part of the FTP username 


11. Tenant domain – optional (v3 auth).

tenant_domain> leave this optional field blank and hit enter


12. Region name – optional.

region> leave this optional field blank and hit enter


 13. Storage URL – optional.

storage_url> leave this optional field blank and hit enter


14. AuthVersion – optional – set to (1, 2, 3) if your auth URL has no version.

auth_version> leave this optional field blank and hit enter


15. Press the “y” button (“Yes this is OK”).


IMPORTANT! 
Please note that the storage containers must be created only from the Universal CDN Control Panel. Storage containers created not from the Control Panel will be rejected by the CDN system.


We will provide a few examples of how to copy or sync files from your local machine to a remote storage container, or vice versa, or from one storage container to another. 


To copy the files from one storage container to another, use the following command:


rclone copy source:sourcepath dest:destpath

$ rclone copy 'remote:test1' remote:test2

Where:

remote is the remote name (name> remote)

test1 and test2 are the names of your containers


To copy the files from a storage container to your local directory, use the following command:


rclone copy source:sourcepath dest:destpath​

$ rclone copy 'remote:test1' /path/to/your/directory​

Where:

remote is your remote name (name> remote)​

test1 ​ is the name of your container.


To copy the files from your local directory to a storage container, use the following command:


rclone copy source:local dest:destpath​

$ rclone copy 'path/to/your/directory' remote:test1​​​

Where:

remote is your remote name (name> remote)

test1 is the name of your container. ​​


To sync the files from one storage container to another, use the following command:


rclone sync source:sourcepath dest:destpath​

$ rclone sync 'remote:test1' remote:test2

Where:

remote is the remote name (name> remote)

test1 and test2 are the names of your containers


To sync the files from a directory on your local machine to your storage container, use the following command:


rclone sync source:sourcepath dest:destpath​

$ rclone sync 'remote:test1' /path/to/your/directory​

Where:

remote is your remote name (name> remote)​

test1 ​ is the name of your container.


To copy the files from one storage container to your local machine, use the following command:


rclone sync source:sourcepath dest:destpath​

$ rclone sync 'path/to/your/directory' remote:test1​​​

Where:

remote is your remote name (name> remote)​

test1 ​ is the name of your container.


For more information please visit rclone.org.



FTP Upload

Upload with Python-Swiftclient

Upload Large Files with Python-Swiftclient

Upload Through OpenStack Swift API