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
Post a Comment