I
I
Ivan2016-06-24 14:10:35
MySQL
Ivan, 2016-06-24 14:10:35

How can I backup automatically FTP + MYSQL?

How can I organize automatic backup from FTP + MYSQL database?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaliy Orlov, 2016-06-24
@orlov0562

A) a bash script run by cron:
- makes a zip archive of files
- dumps a mysql database and archives it
- connects to a remote computer and copies the resulting files to the
necessary applications: cron, zip, mysqldump, ftp
B) if it is a WP blog, and it is not a monstrous size of the database / files, then you can:
1) dump the database, breaking down requests by line
2) commit the dump + site files by cron and push it to the repository
C) most control panels can make a backup and send it to a third-party server, you need to communicate with the host

A
Azazel PW, 2016-06-24
@azazelpw

wget can download from FTP
mysqldump -u%username% -p%password% %database% > /backup/%database%.sql
will dump the database to the correct location.

E
entermix, 2016-06-24
@entermix

As an option
rsync + Sypex Dumper

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question