Skip to content

MongoDB backups turn out to be < 1kb when OPLog is 10 GB #879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rennokki opened this issue Mar 4, 2019 · 1 comment
Closed

MongoDB backups turn out to be < 1kb when OPLog is 10 GB #879

rennokki opened this issue Mar 4, 2019 · 1 comment

Comments

@rennokki
Copy link

rennokki commented Mar 4, 2019

I use separate servers for MySQL, MongoDB and Web workers on Forge and if i backup the MySQL database, it has the right size. The MongoDB backup seems to have less than 1 kb in size, which means nothing is dumped.

I don't think it's because i use the Private Network for this, since i doubted this for a while until i found out that MySQL is under the same network and it dumps correctly.

On staging, everything is running under the same server, and the backups seem to run well and have the correct size.

I tried running MongoDB locally and it seems it does the same thing (this is what outputs when i run php artisan backup:run --only-db --db-name=mongodb; this happens both on production and locally):

Starting backup...
Dumping database production...
Determining files to backup...
Zipping 1 files...
Created zip containing 1 files. Size is 181 B
Copying zip to disk named do-spaces-backups...
Successfully copied zip to disk named do-spaces-backups.
Backup completed!

I tried running these two files separately: #92 (comment)

No success, sadly.

@rennokki
Copy link
Author

rennokki commented Mar 4, 2019

For all future guys that search stuff on Google and reach this issue: update your backup.php file when you upgrade from major to major versions. 🙄

@rennokki rennokki closed this as completed Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant