backup-manager / symfony Goto Github PK
View Code? Open in Web Editor NEWDriver to seamlessly integrate the Backup Manager into Symfony applications.
Driver to seamlessly integrate the Backup Manager into Symfony applications.
Hello,
In league/flysystem-aws-s3-v3
, the AwsS3Adaptor class has been renamed to AWSS3V3Adaptor. When trying to upgrade to the newer version of flysystem (in order to work with other updated dependencies), ~v2.0 of flysystem is required.
Are there plans to upgrade this library to support v2? Would you prefer a PR?
Thank you.
The composer.json requirements currently do not allow for PHP 8.
Has anyone tried to run the tests on that version and if so, do the tests cover enough to allow for a bump in requirements?
Currently running composer require backup-manager/symfony
will try to install version 1.1 since that version simply required "php": ">=5.5"
which is probably not what was intended. The debugging of why I got a conflict with other packages took some time and I guess I will not be the last.
The bundle does not appear to support the newly released Symfony 5. When attempting to upgrade an installation with the software installed, I get the following error:
backup-manager/symfony 2.2.0 requires symfony/console ^2.7 || ^3.1 || ^4.0 -> satisfiable by symfony/console[v4.3.8] but these conflict with your requirements or minimum-stability.
cf https://blogs.dropbox.com/developers/2017/09/api-v1-shutdown-details/
we should pass to v2
i'm working on the PR
Filename : bm_backup_manager.yml
Dir: config/packages
config:debug show an empty config so its not loaded
Hi all
I was trying to update the bundle but I got these errors
I saw in the Issues Closed what it was working with this environment. Any idea?
Thanks
Hello.
Is it possible to use this package with AsyncAWS instead of the full bloated AwsSdk.
So AsyncAws\Flysystem\S3\AsyncAwsS3Adapter
instead of League\Flysystem\AwsS3v3\AwsS3Adapter
Thanks
Please add backup files feature...
I'm using your bundle to make backups but there are 2 issues :
doc from symfony2 bundle is not uptodate according to this line : $manager->makeBackup()->run('development', [new Destination('s3', 'test/backup.sql')], 'gzip'); from https://github.com/backup-manager/backup-manager
you should add a very important parameter "ignoreTables" option in Configuration
->arrayNode('ignoreTables')
->prototype('scalar')->end()
->end()
And i would abandon my fork to come back to your bundle ;)
thanks !
Hi, I am encountering problems during installation of the bundle. I'm working with Symfony 5.1.8 (but the project originally started with Symfony 2), php 7.4.9 with wamp 3.2.3.3. I'm using the 3.1.1 version of BackupManager
As written in the README, I installed the bundle with composer require backup-manager/symfony
. It worked well, so I configured the yaml and then directly used the line $this->container->get('backup_manager')->...
in my Controller. I got an the following error :
As it told me, I tried dependency injection with
use BackupManager\Manager;
passing Manager $manager
in my function and replaced $this->container->get('backup_manager')->
by $manager->
and inserted BackupManager\Manager: ~
in my services.yaml
Then I got the error :
I looked at the file BM\BackupManagerBundle\BMBackupManagerBundle
and it is empty, is it normal ? Shouldn't it insert all the classes for autowiring ?
I'm new to Symfony so don't hesitate to correct me I may make mistakes.
Thank you very much
Since the update, I have 2 errors on my environments :
The provided DSN is not valid. Maybe you need to url-encode the user/password? (root:XXXXX@host:3306/db?serverVersion=5.7)
Database /db not found
It used to work properly before the new release
mysql://user:pass@server:3306/database
And show me:
mysqldump: Got error: 1049: "Unknown database '/database'" when selecting the database. I think that this take the '/' too.
Hello :),
parameters:
bdd.backup.dir: "/var/www/html/backup"
bm_backup_manager:
database:
db:
dsn: '%env(resolve:DATABASE_URL)%'
storage:
# local:
# type: Local
# root: "%bdd.backup.dir%"
local_backup:
type: Local
root: "%bdd.backup.dir%"
local_tmp:
type: Local
root: "/tmp"
php bin/console backup-manager:restore db local_tmp /ed_611712.sql.gz -c gzip
Multiple local folders cannot be configured. It tries to take the "local" configuration :
Could not find configuration for connection local
Hi
When I tried to update to 2.3.* I got this error
Problem 1
- backup-manager/backup-manager 1.4.1 requires symfony/process ^2.1 || ^3.0 || ^4 -> no matching package found.
- backup-manager/backup-manager 1.4 requires symfony/process ^2.1 || ^3.0 || ^4.0 -> no matching package found.
- backup-manager/backup-manager 1.3.0 requires symfony/process ^2.1 || ^3.0 || ^4.0 -> no matching package found.
- backup-manager/symfony 2.3.0 requires backup-manager/backup-manager ^1.3 -> satisfiable by backup-manager/backup-manager[1.3.0, 1.4, 1.4.1].
- Installation request for backup-manager/symfony 2.3.* -> satisfiable by backup-manager/symfony[2.3.0].
But I have the symfony/process in 5.0.3 version. Any idea?
Hi !
I've this error : 'I worked on SF 2.8
InvalidArgumentException in AddConsoleCommandPass.php line 32:
The service "backup_manager.command.backup" tagged "console.command" must be public.
According to this issue FriendsOfSymfony/FOSJsRoutingBundle#306 and the stof comment, I think it can be a better way to said that command are public
I installed the bundle as directed in the README. However, I get the following error when trying to run the Symfony Console:
[Symfony\Component\Console\Exception\LogicException]
The command defined in "BM\BackupManagerBundle\Command\BackupCommand" cannot have an empty name.
This is easily fixed by passing a name to the parent constructor of the BackupCommand class a string.
ie. parent::__construct('bp:backup');
The bundle does not support symfony 6.
I'm currently testing #39. I've updated the config for this bundle at config/packages/bm_backup_manager.yaml
to look like this:
bm_backup_manager:
database:
development:
dsn: '%env(DATABASE_URL)%'
production:
dsn: '%env(DATABASE_URL)%'
storage:
local:
type: Local
root: /home/elvismdev/WWW/my_sf4_app/_db_backup
Now, when I run the command to fire the DB backup:
php bin/console backup-manager:backup development local -c gzip
On other hand, if instead using %env(DATABASE_URL)%
for the DSN value I place directly in the yaml file my DB details like mysql://root:[email protected]:3306/test
, it does works and backups the DB successfully as expected.
If that helps, I found a similar issue/error reported here symfony/symfony#23520
See title
Hi, I would like to use this bundle with Symfony 3.2 - but version 1.0 only supports Symfony 2.x. Since it's a bad practice to relay on dev-master, can you please tag a version 1.1?
Thanks!
Hi,
I installed the bundle on my Symfony 3.2 project.
I get this exception :
UndefinedMethodException in Configuration.php line 92:
Attempted to call an undefined method named "scalarPrototype" of class "Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition".
scalarPrototype method seems to be included on the 3.3 version.
Do you think you can use the old method to extends the compatibility?
New in version 3.3: The arrayPrototype() method (and the related booleanPrototype() integerPrototype(), floatPrototype(), scalarPrototype() and enumPrototype()) was introduced in Symfony 3.3. In previous versions, you needed to use prototype('array'), prototype('boolean'), etc.
Thanks
Please add configurable files backup, why backup only database.
Hi again,
So now I encounter with the issue that in new SF4 the way to define the DB details are in a one line only, and not with each piece (user, pass, host, dbname) being separated like this bundle needs.
https://symfony.com/doc/current/configuration.html#the-env-file-environment-variables
###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://root:[email protected]:3306/test_db
###< doctrine/doctrine-bundle ###
Is there a way backup-manager
bundle can get/resolve all the database parameters needed from this DATABASE_URL
environment variable?
This package is not on packagist. So the command composer require ...
not works.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.