We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it soon. Read more about it: https://vestacp.com/docs/vesta-2-development
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.