1. 安装 Gdrive
wget -O /usr/bin/gdrive "//docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download"
chmod +x /usr/bin/gdrive
2. 授权 Gdrive
gdrive about
复制显示的链接, 到浏览登录获取到一串验证码并输入
Gdrive 常用命令
gdrive list
gdrive download filename
gdrive upload filename
gdrive mkdir name
gdrive upload --recursive name
Xampp 备份
/opt/lampp/lampp backup MysqlPassword
Xampp 还原
sh /opt/lampp/backup/xampp-backup-X-X-X.sh
添加定时任务
crontab -e
在末行添加
0 0 1 * * /opt/lampp/lampp backup MysqlPassword
0 0 1 * * gdrive upload --recursiv /opt/lampp/backup/
按 Ctrl+O 然后回车保存
正文完