zend framework - executing s3cmd using PHP exec() -


i'm writing mysql backup script database backup , upload backup amazon s3 bucket.

i'm using exec() run mysqldump, tar & gzip backup. far pretty straightforward. have issues uploading backup amazon s3.

as far read, s3cmd requires .s3cfg file amazon's access_key & secret_key credentials. don't want rely on these settings in separated config file, , have amazon credentials in php config file.

is there way execute s3cmd , directly entering keys command line? like:

s3cmd cp --access=key -secret=key /tmp/backup.tar.gz s3://backups/....  

i don't want use zend_cloud_storageservice_adapter_s3. understand library has read entire file php memory , send it. these backups huge , prefer using exec(), faster.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -