Comments (12)
Looks great!
Just realized that we may need the filename of the backup in BackupEvent
?
from cloudbackupbundle.
Hm, tell me more. Why should filename be in the BackupEvent?
from cloudbackupbundle.
When you got many projects you might want to know which backup has been completed
from cloudbackupbundle.
The UploadEvent is dispatched after a file it uploaded. It might be one or it might be 100 files on 4 clients.
We can not use filename in Backup event since we don't know how many files or if they still are named the same.
We could however use the output_file_prefix
or a variant of that... But... tell me more. Where are you looking when you "want to know which backup has been completed". In a centralized logger? Don't you see from which project the logging messages comes from? I don't quite understand.
from cloudbackupbundle.
What BackupEvent
could have as a property is how long it took the operation to finish.
from cloudbackupbundle.
Is that interesting for all events?
from cloudbackupbundle.
Only for those that actually may take some time.
from cloudbackupbundle.
@Nyholm Hmm as far as I know, we only upload one archive to many destinations, so we know what will be the filename of the backup, right?
from cloudbackupbundle.
The UploadEvent
is dispatched from the ClientManger
it will know of the filenames.
But do you think it is within the scope of the BackupEvent
to know all the filenames that was uploaded?
Or, maybe it makes sense to have an array of filenames in the BackupEvent
form a DX perspective. It is a lot easier that collect info from UploadEvent
and then take action as soon as BackupEvent
is dispatched.
from cloudbackupbundle.
Oh ok I get it.
So you suggest to add an event listener on both events to get the filename from the BackupEvent?
from cloudbackupbundle.
Yeah, That was my suggestion but I'm reconsidering it now. Because we might do things too complicated for the users.
from cloudbackupbundle.
so how would you get now the backup file name that is created?
I understand that there is only 1 event dispatched upon success and the event itself does not have any information.
if ($successful) { $this->eventDispatcher->dispatch(BackupEvent::BACKUP_COMPLETED, new BackupEvent()); }
The reason I need the file name is that I need to send an email to the admin to inform him that the backup file (XXX) has been created and uploaded to storage.
from cloudbackupbundle.
Related Issues (20)
- [Request] Limit Number of Stored Backups - Feature
- Error when annotation enabled HOT 1
- Run from a Symfony Controller HOT 2
- Tag 3.5 HOT 3
- No such file or directory exception while doing backup
- Symfony 2.7.* locked at psr/log 1.0.0 HOT 5
- Errors on Windows 8 HOT 4
- Symfony 3.3 compatibility HOT 2
- Dropbox API v1 retired HOT 3
- send by e-mail
- Symfony 4.x support HOT 6
- Using all_databases: true requests parameter called "database_name"
- All databases option to output 1 file per database
- Amazon s3 configuration HOT 1
- Group backups in to subdirectories
- Utf8mb4 not supported HOT 1
- how to configure AWS S3 HOT 1
- Something went terribly wrong HOT 1
- Something went terribly wrong. We could not create a backup. Read your log files to see what caused this error HOT 2
- how to configure google drive for mongo backups
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudbackupbundle.