We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
MongoDB Backup Topic is solved
MongoDB Backup
Hi and Thanks for your free software.
I have a little question.
Is it possible to add a backup MongoDB database to a regular VestaCP backup?
Ubuntu 18.04.
Thank you in advance.
I have a little question.
Is it possible to add a backup MongoDB database to a regular VestaCP backup?
Ubuntu 18.04.
Thank you in advance.
Re: MongoDB Backup
You could write a script for a cronjob to back it up to a local directory (say, /home/admin/dbbackups) and then that would be included in the vestacp backup.
eg
mongodump --host 1.2.3.4 -d mydb --username mayusername --password mypassword --out /home/admin/dbbackups/backup_$(date +%Y%m%d)
You'd probably want to then compress backups, and then to remove files over a certain age.
eg
mongodump --host 1.2.3.4 -d mydb --username mayusername --password mypassword --out /home/admin/dbbackups/backup_$(date +%Y%m%d)
You'd probably want to then compress backups, and then to remove files over a certain age.
Re: MongoDB Backup
Ok, thank you. It's a good solution.