VJ Ranga Asked: 2018-02-08 23:48:33 +0800 CST2018-02-08 23:48:33 +0800 CST 2018-02-08 23:48:33 +0800 CST How to back up VPS to local machine every month automatically [duplicate] 772 I have a VPS Server with Ubuntu 16.04 Server from vultr.com. I want to back up its content to my local machine (Ubuntu 16.04), this task has to be repeted every month automatically (database and project files). How can I do it? server vps backup 16.04 1 Answers Voted Best Answer VJ Ranga 2018-02-09T09:37:35+08:002018-02-09T09:37:35+08:00 I got the answer from ServerFault. Depending where you want to back them up, a very simple approach could be: mysqldump the database (it can be done while running) Use rsnapshot to keep your project's directory in sync with the remote location. Have you considered using a version control tool like git for the project? I'm assuming is a standard web development set-up. Put all of the above in a script and put it in your crontab.
I got the answer from ServerFault.