开发者

Overwrite a Backup

I need to set up开发者_JAVA技巧 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜