Jump to content

Sftp cron?


liamloveslearning

Recommended Posts

Hi everybody, I setup a cron daily job to backup all of my databases to a folder on my server, I now wish to send the files to another server I have daily, Ive read somewhere this can be achieved via sftp only I cant seem to find any information, im unsure if im googling the wrong thing.. Has anybody any advice on this matter?

Link to comment
Share on other sites

  • 3 weeks later...

So, he can use rsync. Am I right?

 

Absolutely. That's my recommendation. You can indeed copy and tar/gzip your database (If it's MySQL, because everything is just stored as a file and can be copied over to another MySQL server and run there) - but stop the database server first.

 

You'll need to create the correct dbuser/pwd on the other MySQL server, btw.

 

If you can't stop the database server, then do a dump of your database, rsync it on over, and then load the database on the other database server. Alternatively, you can write out duplicate transactions if "network" has been enabled on the other MySQL server AND, the port (TCP 3306) is open on the other server.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • 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.