Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

MongoDB Backup Topic is solved

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
maxpostal
Posts: 88
Joined: Thu May 05, 2016 1:01 pm

MongoDB Backup
  • Quote

Post by maxpostal » Tue Mar 19, 2019 8:23 pm

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.
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: MongoDB Backup
  • Quote

Post by plutocrat » Wed Mar 20, 2019 2:31 am

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.
Top

maxpostal
Posts: 88
Joined: Thu May 05, 2016 1:01 pm

Re: MongoDB Backup
  • Quote

Post by maxpostal » Wed Mar 20, 2019 7:45 am

Ok, thank you. It's a good solution.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password