While I wasn't able to port the 1.0 version of the FTP Proxy I did work on a simple bash script using cURL that will allow mass upload of your files. For this to work you will need to generate your own Upload token. You will need bash and cURL installed on the Linux machine for this to work.
Save the script below to your Linux machine as "nput"
#!/bin/bash
#iterates through a directory, uploading each file to your Nirvanix account.
MIN_ARGS=3
E_OPTERROR=65
if [ $# -lt $MIN_ARGS ]
then
echo "Usage: `basename $0` path uploadDir uploadToken"
exit $E_OPTERROR
fi
# use find to go through every directory and upload the files to node 1
in a single directory. This will flatten out the dir structure!
find $1 -type f -exec curl -F 'upload=@{}' 'http://node1.nirvanix.com/Upload.ashx?uploadToken='$3'&destFolderPath='$2 \;
To do this you can call the Login REST call at:
http://services.nirvanix.com/ws/authentication/login.ashx?appKey=YOURAPPKEY&username=YOURUSER&password=YOURPASS
You can then get the session token from this and call GetStorageNode:
http://services.nirvanix.com/ws/IMFS/getStorageNodeExtended.ashx?sessionToken=YOURSESSIONTOKEN&sizeBytes=100000&ipRestricted=false&destFolderPath=/YOURUPLOADDIR/
This will return an UploadToken. To call the script with the results from this do:
./nput ./pathtoupload /YOURUPLOADDIR/ UPLOADTOKEN
Let me know how this works.
Regards,
Barry R.