I'd like to be able to backup my database files from one phpmyadmin server to another, every night. I know it is possible to copy/duplicate using something similiar to :
mysqldump -h [server] -u [user] -p[password] db1 | mysql -h [server] -u [user] -p[password] db2
( I found this in the comments of the following: Copy/duplicate database without using mysqldump )
Though I do not know how I would automatically do this. If anyone could give me an answer or some tips, it would be greatly appreciated.
Asked
Active
Viewed 38 times
0
* 5 * * * root run-parts /etc/daily.backup
and in that folder have a file containing my code from above? – Eric Jan 17 '17 at 13:59