dizda / CloudBackupBundle

Be able to backup your database(s) and upload it to the cloud (Dropbox, Amazon S3, GoogleDrive, etc.)
MIT License
196 stars 57 forks source link

how to configure AWS S3 #142

Open austinPatel opened 5 years ago

austinPatel commented 5 years ago

gaufrette: service_name:

Please Support ,i am new in symfony

Alex-Bruno commented 5 years ago

Hi, https://github.com/KnpLabs/KnpGaufretteBundle Example: services: acme.aws_s3.client: class: Aws\S3\S3Client factory: [Aws\S3\S3Client, 'factory'] arguments:

            version: latest
            region: %aws_s3_region%
            credentials:
                key: %aws_s3_key%
                secret: %aws_s3_secret%

knp_gaufrette: adapters: backup: aws_s3: service_id: 'acme.aws_s3.client' bucket_name: %aws_s3_bucket%

detect_content_type: true

            options:
                directory: %aws_s3_directory%
                create: true
filesystems:
        backup:
            adapter:    backup
            alias:      backup_filesystem

dizda_cloud_backup: cloud_storages: gaufrette: service_name: # Gaufrette filesystem(s) service name