Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6158995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:03:20+00:00 2026-05-23T21:03:20+00:00

I have several websites hosted on a VPS and am currently performing database backups

  • 0

I have several websites hosted on a VPS and am currently performing database backups by running a shell script via cron that looks something like this:

mysqldump -uusername1 -prootpassword dbname1 > /backup/dbname1.bak
mysqldump -uusername2 -prootpassword dbname2 > /backup/dbname2.bak
mysqldump -uusername3 -prootpassword dbname3 > /backup/dbname3.bak

I have a couple of concerns about this process.

Firstly, I’m using the root server password to perform mysqldump, and the file is being stored in clear text on the server (not publicly accessible or anything, but there are obviously concerns if I grant other users access to the server for one reason or another). I’m using root because it’s simpler than tracking everybody that creates a database down and asking them for their specific db passwords.

Secondly, this process only works if people inform me that they’ve added a database (which is fine for the most part, we’re not doing anything super complicated over here). I would prefer to have a backup of everything without worrying that I’ve overlooked something.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:03:21+00:00Added an answer on May 23, 2026 at 9:03 pm

    You could always just dump ALL the databases:

    mysqldump --all-databases | gzip -9 > /backup/dbs.bak.gz
    

    That’d free you from having to keep track of which dbs there are. The downside is that restoring gets a bit more complicated.

    As for using root, there’s no reason you couldn’t create another account that has permissions to do backups – you should never use the root account for anything other than initial setup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I'm running several websites that have several (branded) duplicates each, in the same
I have a JavaScript widget that is hosted on websites. This widget tracks state
I currently have an asp.net website hosted on two web servers that sit behind
I have several separate websites that live in separate directories. For includes that they
I have several large websites that I wish to create a WIX installer for.
Some background info: We have several websites running on a 64-bit machine with IIS6
I have an old Asp classic CMS application that powers several websites. It uses
I have an application that uses cURL to grab the contents of several websites.
I have created several websites that run from ISAPI dll's, which runs smoothly in
I have a python program running very well. It connects to several websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.