备份代码和数据库的最佳方法?
那么备份代码和数据库的最佳方法是什么?是通过 http 本地下载的吗? 但我担心这是安全风险,因为某些黑客可能会访问它。
我正在研究压缩然后加密压缩文件。 但我不知道应该使用什么加密,以及 Linux CLI 工具是否可用于密码保护加密?
谢谢 阿什迪普
So what can be best way to have a Backup of code and DB is it downloading Locally via http ?
But i fear it is security risk as some hacker might get access to it .
I am looking into compress then encrypt the compressed file.
But i dunno what encryption i should use and if linux CLI tool available for password protected encryption ?
Thanks
Arshdeep
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Hacker News 社区对 Tarsnap。根据该网站:
Tarsnap 不是免费的,但它非常便宜。
The community over at Hacker News raves about Tarsnap. As per the site:
Tarsnap is not free, but it is extremely cheap.
如果您担心传输问题,请使用 SSH。我倾向于通过 SSH 隧道使用复制来保持 MySQL 数据库同步。版本控制服务器(与部署服务器不同)的备份由 rsync 通过 ssh 传递。如果您想在本地加密文件,您可以使用 gpg,这当然不能与数据库复制一起工作,在这种情况下,您将被迫定期使用数据库的转储或快照。
If you're worried about transports, use SSH. I tend to use replication over an SSH tunnel to keep a MySQL database in sync. A backup of the version control server (which is not the same as the deployment server) is passed by rsync over ssh. If you want to encrypt files locally you could use gpg, which would of course not work in tandem with the database replication, in that case you'd be forced to use a dump or snapshot of your database at regular intervals.
你在这里没有多大意义。
如果在本地下载,则不会通过公共网络,因此这不是问题。
除非你只是想下载。但问题是下载什么?
另一方面,保护上传(用于初始设置)和维护的问题同样重要。
保护代码存储库和数据库等资源的安全至关重要,但如果您可以通过 SSH 访问您的服务器,则您已经建立了加密隧道,并且通过该隧道 (scp) 传输文件是相当安全的;如果偏执(或需要),您可以将 SSH 服务器设置的安全性提高到 版本 2<仅/a>。
You don't make that much sense here.
If downloading locally then you don't go over public networks, so it is not an issue.
Unless you meant simply to download. But the question is to download what?
On the other hand, the issue of securing the upload (for initial setup) and for maintenance is as equally important.
Securing your resources such as code repository and database is critical, but if you can have SSH access to your server you already have encrypted tunnel established and transferring files over that tunnel (scp) is quite secure; if paranoid (or in need) you can bump up security on SSH server setting to version 2 only.