Jump to content
  • 0

BACK UP!


Question

9 answers to this question

Recommended Posts

Posted

mysqldump -u USERNAME -p, --password=PASSWORD DATABASE_NAME > FILE_NAME.sql

@Asura, after doing this, where is the file designated?

The file is in the same directory you ran the command from.

To specify a different directory, you can use the full file path like:

mysqldump -u USERNAME --password=PASSWORD DATABASE_NAME > /home/rathena411/backups-sql/FILE_NAME.sql

I believe there is a backup script floating around for sql

Here is one example: backup_ragnarok.sh

Posted

Hi Virus,

You would simply open up the Terminal or SSH command line, and then type...

mysqldump -u USERNAME -p, --password=PASSWORD DATABASE_NAME > FILE_NAME.sql

Replace all capitalized words with the proper values. This question has actually been asked a few times on rAthena.org; doing a search would have brought you the answer quicker.

  • Upvote 1
Posted

or you can use Workbench / MySQL Administrator to do that. but you must open port 3306 to public first.

Hi Winz,

This would actually be one of the worst ways to take a SQL backup, because it's impractical to grab a several hundred MB SQL backup with high chance of failure. It'd be better to take the backup on the VPS, tar/zip it, and then download it using SFTP... it would be way faster.

  • Upvote 1
Posted

or you can use Workbench / MySQL Administrator to do that. but you must open port 3306 to public first.

Hi Winz,

This would actually be one of the worst ways to take a SQL backup, because it's impractical to grab a several hundred MB SQL backup with high chance of failure. It'd be better to take the backup on the VPS, tar/zip it, and then download it using SFTP... it would be way faster.

Hi Asura, yes, it is, I admit it. otherwise, this is the only way I use since guides in the internet vary and this way allows me to be sure that the data are being taken. I'm a noob in SQL backup. :D

Have a nice day!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...