Permalink
Switch branches/tags
Nothing to show
Commits on May 18, 2012
  1. Only upload files that have changed (based on size and timestamp)

    ravisorg committed May 18, 2012
    Added comments
    Other minor changes
Commits on Feb 3, 2012
  1. Merge pull request #2 from jadb/master

    mattrude committed Feb 3, 2012
    Important changes to support more environments / setups.
  2. Change relative path to absolute.

    jadb committed Feb 3, 2012
    The relative path was bugging on some system, replaced it with an
    absolute path pointing to the same location.
Commits on Jan 30, 2012
  1. Add support for `php`, not just `php-cgi`

    jadb committed Jan 30, 2012
    Some servers run PHP as an Apache module and thus have `/usr/bin/php`
    but not `/usr/bin/php-cgi`. The script's user can now run it on those
    servers as well.
Commits on Jan 29, 2012
  1. Merge pull request #1 from jadb/master

    mattrude committed Jan 29, 2012
    Small change to hide the API Key from being echoed
  2. Secure API Key

    jadb committed Jan 29, 2012
    The script echoes the `user` and `api_key`, making it un-secure when
    part of a deployment strategy (i.e. Capistrano recipe). I found the
    most secured to be to store the `user` and the `api_key` on the
    server where the application is being deployed as part of the setup
    (i.e. /shared/path/rcfu/.RFUser, /shared/path/rcfu/.RFKey) and use
    them as part of the deployment in a command like this:
    
    	./scp-cloudfiles.sh.php \
    		-u=`cat /shared/path/rcfu/.CFuser` \
    		-k=`cat /shared/path/rcfu/.CFKey` \
    		-c=<container> \
    		-p=<path>
Commits on Feb 26, 2011
  1. correct readme file

    mattrude committed Feb 26, 2011
  2. correct readme file

    mattrude committed Feb 26, 2011
  3. correct readme file

    mattrude committed Feb 26, 2011
  4. correct readme file

    mattrude committed Feb 26, 2011
  5. Added readme file

    mattrude committed Feb 26, 2011
Commits on Feb 9, 2010
  1. Set no time limit for very large directories/files.

    Jared Blalock
    Jared Blalock committed Feb 9, 2010
    Determine if existing object (folder/file) exists in the container, ignore it and move to the next file.
    The main purpose of these changes was to upload over 370k images and videos, however any exceptions caused the script to abort, and having to start over from start.
    
    Exception try/catchs added as well to *hopefully* prevent from unexpected errors during transfers.  Which I did experience using Mike's original code.  Hence the reason for these changes.
    
    TODO:
    Add parameter to force overwriting existing files or ignore them.
    Update to latest php-cloudfiles API current version I'm aware of 1.6.2.
Commits on Aug 16, 2009
  1. Script should make less assumptions about what you want to do.

    Mike Smullin
    Mike Smullin committed Aug 16, 2009
    Should upload files inline instead of compiling a list of all files into
    an array first--which poses both a potentially huge delay and a memory
    problem.
    Got forward-slashes working in object names.
Commits on Jul 18, 2009
  1. Adding @TODO reminder for anyone who wants to contribute to this

    Mike Smullin
    Mike Smullin committed Jul 18, 2009
    project.
Commits on Jul 10, 2009
  1. Final version. Found out I didn't even need this, but it does work semi

    Mike Smullin
    Mike Smullin committed Jul 10, 2009
    well.
  2. Initial import of scp-cloudfiles.sh.php. Will upload a single hard-coded

    Mike Smullin
    Mike Smullin committed Jul 10, 2009
    file and create containers automatically.
  3. Initial import of Mosso PHP Class for CloudFiles API.

    Mike Smullin
    Mike Smullin committed Jul 10, 2009