Activity Stream
48,167 MEMBERS
61056 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member

    Default Automated DB backup and FTP

    I'm running a CentOS 5 Dedicated Server (no control panel, preferably won't install one).

    I'm wanting to be able to have a automated MySQL database backup every 12 hours and uploaded to a VPS via FTP, how would I be able to do that?

    Thanks.
    Time Reviewed by Time on . Automated DB backup and FTP I'm running a CentOS 5 Dedicated Server (no control panel, preferably won't install one). I'm wanting to be able to have a automated MySQL database backup every 12 hours and uploaded to a VPS via FTP, how would I be able to do that? Thanks. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    are you using any scripts?
    in vbulletin theres a plugin which takes an automatic backup then later on you can ftp that backup or transfer it to another server but im not sure on how you would go about making it go straight ftp etc

  4.     
    #3
    Member
    I don't have anything like that running on the Dedicated Server, it's for a game.

  5.     
    #4
    Member
    Website's:
    animeout.com mangaout.com scenator.com
    what cms are u using? (if any)...most cms have plugins for this purpose

  6.     
    #5
    Respected Member
    Use mysqldumper. It will do all that for you automatically.

  7.     
    #6
    Member
    Website's:
    XXX-ddl.org
    Well I would do this with a cron job executing every 12 hours and a small bash script:
    Code: 
    #! /bin/bash
    mysqldump -u username -h localhost -p password database_name | gzip -9 > backup_db.sql.gz
    wput backup_db.sql.gz ftp://user:pass@host
    First line does a Backup of your database and compresses it.
    Second line uploads compressed file to another server via ftp.

    KaFo

  8.     
    #7
    Respected Member
    Remember wput is not standard on all servers and would have to be installed.

  9.     
    #8
    Member
    Website's:
    XXX-ddl.org
    @Lock Down yes that is true:-)

    But Time mentioned he has a deddi, so installing additional software shouldn't be a prob ;-)

    KaFo

  10.     
    #9
    The Wise One
    Website's:
    twilight.ws ddlrank.com
    Why not just take the backup and SCP it to the VPS? Why would you need FTP? =/

  11.     
    #10
    Respected Member
    @KaFo * true if he knows he has to do it.

    @Whoo * I am assuming he wants it offsite somewhere. Not on the same server.

    He could scp instead of ftp or wput or ?? Just what a person knows that make them feel comfortable.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 17th Apr 2012, 06:55 AM
  2. Unable to restore backup using Wp complete backup
    By Jayzzy in forum Webmaster Discussion
    Replies: 13
    Last Post: 25th Mar 2012, 03:32 PM
  3. Fully automated backup - SSH to Windows FTP
    By cvrle77 in forum Tutorials and Guides
    Replies: 9
    Last Post: 13th Jan 2012, 01:35 AM
  4. Semi-automated MySQL Database Backup Using SSH :)
    By Lifetalk in forum Tutorials and Guides
    Replies: 6
    Last Post: 23rd Jan 2011, 05:43 PM
  5. Automated vBulletin Database Backup to RapidShare.com
    By desiboy in forum Tutorials and Guides
    Replies: 30
    Last Post: 20th May 2010, 04:25 PM

Tags for this Thread

BE SOCIAL