Results 1 to 2 of 2

 

Thread: Backing up mysql using cron job

  1. #1
    thin[box]king

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Cambridge
    Posts
    1,905
    Thanks
    13
    Thanked 12 Times in 12 Posts


    Hi
    I want to do a daily backup of my mysql databases - can any one give me the command to use in a cron job to achiven this?
    Follow Me | Looking for Merchants Who Do Scifi Stuff

  2. #2
    mxp
    Registered User

    Status
    Offline
    Join Date
    Dec 2004
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Having just spent the last couple of hours trying to achieve pretty much the same thing i have just this minute managed to get it working. the command i finally got working was this (this puts the backup file file_name.sql into my root folder)

    mysqldump --all-databases --user=username --password = password > file_name.sql

    if your having difficulty getting your mysqldump to work try

    mysqldump --help > file_name.sql

    and that should hopefully give you the list of commands available for your particular version of mysqldump (download and read file_name.sql)



Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2