Documentation: rscfpush.exe A Rackspace Cloud Files uploader for Lite Files

G’day Fellas

So its been few days since I release this Util. So that I don’t forget how to use it I better write down how it works and what to expect :).

NOT MAINTAINED AS OF JAN 2013. MAY STILL THOUGH.

Lets start by checking out how to use this Utility.

Download the util from

http://jaspreetchahal.org/rscfpush-exe-a-rackspace-cloud-files-command-line-uploader/

Test cases

I have tested this util for uploading files that were not greater than few MBs. If you are uploading files that are many 100s of Megs or Gigs then I am not sure whether this will work for you or not. But it is worth trying and then let me know the results.

Scenario 1

Lets upload a file to your RS Cloud Files Container. I am assuming that a container with name “test” exists and you have your CF username and your API key with you.

Lets explore.

The command

When you hit enter the Util test validity of you credentials and check if container exists and then starts to upload test.txt file to your conainter test.

This was simple.

Scenario 2

Lets upload a file to your RS Cloud Files Container. I am assuming that a container with name “test” may or may not exists and you have your CF username and your API key with you.

If you are ever unsure if the target container exists or not then it is always a good idea to include -ccine in your command

The command

When you hit enter the Util test validity of you credentials and check if container exists and then starts to upload test.txt file to your conainter test. Only change in above command is that we included -ccine switch which means that create container test if it does not exists.

This was simple.

Scenario 3

Lets upload a folder to your RS Cloud Files Container. I am assuming that a container with name “test” may or may not exists and you have your CF username and your API key with you.

The command

When you hit enter the Util test validity of you credentials and check if container exists and then starts to upload all files under demo folder to your conainter test.

If demo directory has subdirectories in it then those files will be uploaded too but catch here is that they will be accessed with virtual path.

So say you have a file in c:\demo\folder\a.txt  File a.txt will be uploaded with a virtual path as folder/a.txt

This will mean that If you CDN Url is say http://cdn123.rscdn.com/test/ then a.txt will be accessed as  http://cdn123.rscdn.com/test/folder/a.txt

Other switches are common sense.

I hope this cleared few things that you may be looking for. If not then leave a comment and I will try to address your question.

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.