Jump to content

Mirroring username and password


alohatofu

Recommended Posts

Good morning folks,

 

I was wondering if someone could give me some guidance in mirroring 2 databases with their username and password.

 

I have 2 databases that I would like to mirror with the username and password. Is it possible if so, please help.

Do i setup a script? cronjob?

 

Thank you!

Link to comment
https://forums.phpfreaks.com/topic/47725-mirroring-username-and-password/
Share on other sites

crontab + mysqldump + scp?

 

That's what I do, or I do FTP instead of scp.

 

If you are unsure, google around for the above Linux programs, and also "mysql backup"

 

I set the server cron job to run at 23:30, this dumps the db, it also gzip's it (mysqldump --switches etc | gzip db.sql.gz)

 

Then on the backup server I have a cron job that runs at 00:30 and FTPs to the server, downloads the gz file, unzips then imports it into mysql.

 

Always import the sql, you HAVE to check that it is valid.

 

monk.e.boy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.