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

  • Home
  • SEARCH
  • 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 6674991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:47:54+00:00 2026-05-26T03:47:54+00:00

Is it possible to do the following: 1. Hot database backup of mysql database

  • 0

Is it possible to do the following:
1. Hot database backup of mysql database from Rails 3 application
2. Incremental database backup of mysql database from Rails 3 application
3. Cold database backup of mysql database from Rails 3 application
4. Restore any of the above databases ( Hot, incremental and cold) through Rails 3 application.

Please let me know how to achieve this?

Thanks,
Sudhir C.N.

  • 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-26T03:47:55+00:00Added an answer on May 26, 2026 at 3:47 am

    Setup some cronjobs. I like to use Whenever for writing them. I run this bash script once per day:

    #!/bin/bash
    
    BACKUP_FILENAME="APPNAME_production_`date +%s`.gz"
    mysqldump -ce -h MYSQL.HOST.COM -u USERNAME -pPASSWORD APPNAME_production | gzip | uuencode $BACKUP_FILENAME | mail -s "daily backup for `date`" webmaster@yourdomain.com
    
    echo -e "\n====\n== Backed up APPNAME_production to $BACKUP_FILENAME on `date` \n====\n"
    

    And output it to cron.log. This may require some tweaking on your end, but it works great once you get it. E-mails the backup to you once per day as a gzipped file, my database is fairly large and file is under 2000kb right now.

    It’s not the safest technique, so if you’re really concerned that someone might get into your e-mail and get access to the backups (which should have sensitive information encrypted anyways), then you’ll have to find another solution.

    To restore:

    gzip -d APPNAME_production_timestamp.gz
    mysql -u USERNAME -pPASSWORD APPNAME_production < APPNAME_production_timestamp.sql
    

    or something similar… I don’t need to restore often so I don’t know this one off the top of my head, but a quick google search should turn up something if this doesn’t work.

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

Sidebar

Related Questions

any idea how if the following is possible in PHP as a single line
Possible Duplicate: Singleton: How should it be used Following on from Ewan Makepeace 's
Is it possible to prevent the browser from following redirects when sending XMLHttpRequest-s (i.e.
Are there any gems out there that would make the following possible? Assuming that
Is the following possible: EXEC sp_Edu3_DeleteTreeStructure (SELECT TreeStructureId FROM TreeStructures) The SP normally takes
Is the following possible in SQL Server 2000? CREATE FUNCTION getItemType (@code varchar(18)) RETURNS
Is something like the following possible in PHP? $blah = 'foo1'; class foo2 extends
For instance, is the following possible: #define definer(x) #define #x?
I was wondering if the following is possible. Create a class that accepts an
I'd like to know whether the following is possible with C# properties. I have

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.