This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unload old database | |
mysqldump -h {hostname} -u {user} -p{password} {database} >tempfile.dump | |
# load the new one | |
mysql -h {clouddbhost} -u {user} -p{password} {database} <tempfile.dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('RAXSDK_OBJSTORE_NAME','cloudFiles'); | |
define('RAXSDK_OBJSTORE_REGION','DFW'); | |
require_once( 'lib/raxconnection.inc' ); | |
require_once( 'lib/objectstore.inc' ); | |
// create a connection to rackspace | |
$conn = new RaxConnection( | |
'https://identity.api.rackspacecloud.com/v2.0/', | |
array( | |
'username' => ' YOUR USERNAME ', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# create a collection of objects | |
$objlist = $container->list_objects(); | |
while ($obj = $objlist->next()) { | |
# do something with $obj | |
} |
NewerOlder