문제

I need to set up a job to create backup everyday. I also need to overwrite an existing backup. Can somebody please help me with it.

Thanks,

도움이 되었습니까?

해결책

Have a look at mysqldump.

mysqldump db_name tbl_name > backupfile.sql

will dump the a db / table and overwrite backupfile.sql if it exists.

Use rsync or scp to copy it to another host if needed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top