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

make a local or distant gaufrette example #50

Closed kachraf closed 9 years ago

kachraf commented 9 years ago

Hello,

What shall i put in the "cloud_storages: gaufrette: service_name:" section ?

i always got :

and i don't get where stored zipped file is. Thanks

dizda commented 9 years ago

What is the content of dizda_cloud_backup configuration's part ?

kachraf commented 9 years ago

Thx for responding dizda_cloud_backup: output_file_prefix: azerty timeout: 300 processor: type: tar options: compression_ratio: 6 password: qwerty split: enable: false split_size: 1000 storages: [ Gaufrette ] folders: [ web/uploads ] cloud_storages: gaufrette: service_name: ??? # Gaufrette filesystem service name databases: mysql: all_databases: false # Only required when no database is set database: simuleo # Required if all_databases is false db_host: 127.0.0.1 # This, and following is not required and if not specified, the bundle will take ORM configuration in parameters.yml db_port: null # Default 3306 db_user: root db_password: sifast2014

i want to make a back up for my database to a local or a remote FTP server, after that i would like to make it with capifony.

dizda commented 9 years ago

So you should use this bundle before https://github.com/KnpLabs/KnpGaufretteBundle#configuring-the-filesystems

And copy the service id that the GaufretteBundle provide you. (you can find your service id with the following command php app/console container:debug)

kachraf commented 9 years ago

Thank you dizda, This make it works !

dizda_cloud_backup:
    cloud_storages:
        gaufrette:
            service_name: foo_filesystem

And

knp_gaufrette:
    adapters:
        foo:
            local:
                directory: "%kernel.root_dir%/../web/uploads"
                create: true
    filesystems:
        bar:
            adapter:    foo
            alias:      foo_filesystem
dizda commented 9 years ago

Glad to hear :)