[英]Auto backup encrypted in zip file
I take backup my database using 我使用备份我的数据库
mysqldump -u nollyvenon -p caretime> caretime.
sql && cipher /e /a caretime.sql
but I want to autobackup the database in an encrypted zip file 但我想以加密的zip文件自动备份数据库
I want to run as in scheduler in windows server 我想在Windows Server的调度程序中运行
you did not specify the platform, but if i assume its *nix, then below solution might work for you 您未指定平台,但如果我假设其为* nix,则以下解决方案可能对您有用
Auto backup : Using Crontab 自动备份:使用Crontab
sample command : 示例命令:
crontab -u username -e
* * * * * /usr/bin/mysqldump -u USER -pPASSWORD DB | gzip > FILENAME
Thanks 谢谢
Got it. 得到它了。
This might help someone. 这可能会帮助某人。
mysqldump --force --opt -u nollyvenon -pnollyboy caretime> c:\caretime.sql && cipher /e /a c:\caretime.sql
call openssl aes-256-cbc -a -salt -in c:\caretime.sql -out c:\caretime2.sql -pass pass:hello
call gzip c:\caretime2.sql
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.