VPS 自动备份脚本
此脚本转载自 秋水逸冰 博客:https://teddysun.com/469.html
需要用到的工具:
Linux
MySQL
openssl
gdrive
crontab
脚本实现定时自动备份数据库及指定目录文件夹,备份文件加密处理,自动上传到google drive。可设定备份文件保留天数。
此脚本转载自 秋水逸冰 博客:https://teddysun.com/469.html
需要用到的工具:
Linux
MySQL
openssl
gdrive
crontab
脚本实现定时自动备份数据库及指定目录文件夹,备份文件加密处理,自动上传到google drive。可设定备份文件保留天数。
OpenSSL 是一个安全套接字层密码库,囊括主要的密码算法、常用的密钥和证书封装管理功能及SSL协议,并提供丰富的应用程序供测试或其它目的使用。
最近折腾 vps 的自动备份,备份文件是在服务器上使用 openssl 加密的,我的一台笔记本是 Windows 系统的,所以想要解密的话需要在 windows 上安装 openssl,但是官方网站没有提供对应版本,做了一些查找。
本文主要参考的网站:
https://cipherli.st
https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
This tutorial shows you how to set up strong SSL security on the nginx webserver. We do this by updating OpenSSL to the latest version to mitigate attacks like Heartbleed, disabling SSL Compression and EXPORT ciphers to mitigate attacks like FREAK, CRIME and LogJAM, disabling SSLv3 and below because of vulnerabilities in the protocol and we will set up a strong ciphersuite that enables Forward Secrecy when possible. We also enable HSTS and HPKP. This way we have a strong and future proof ssl configuration and we get an A+ on the Qually Labs SSL Test.
OpenSSL is a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.