acme.sh数据迁移

acme.sh数据迁移

1.1.安装脚本

  • 在新服务器安装 acme.sh 脚本工具
curl  https://get.acme.sh | sh
# or
wget -O -  https://get.acme.sh | sh

ll ~/.acme.sh/
alias acme.sh=~/.acme.sh/acme.sh
ll ~/.acme.sh/

1.2.打包备份 acme.sh 数据

cd /root/
ll -a
tar -zcvf acme.sh.tgz .acme.sh/
sz -y acme.sh.tgz

1.3.在新服务器解压备份的数据包

  • 上传 acme.sh.tgz
cd /root/
ll -a
mv .acme.sh/ .acme.sh.bak
rz -y
tar xf acme.sh.tgz
ls -lha

1.4.修改定时任务

crontab -e
-----------------------------
27 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
-----------------------------
  • 实例演示:运行测试
"/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh"
----------------------
root@zuiyoujie:~/.acme.sh# "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh"
[Mon Dec 27 13:31:44 CST 2021] ===Starting cron===
[Mon Dec 27 13:31:45 CST 2021] Already uptodate!
[Mon Dec 27 13:31:45 CST 2021] Upgrade success!
[Mon Dec 27 13:31:45 CST 2021] Auto upgraded to: 3.0.2
[Mon Dec 27 13:31:45 CST 2021] Renew: 'www.zuiyoujie.com'
[Mon Dec 27 13:31:45 CST 2021] Renew: 'zuiyoujie.com'
[Mon Dec 27 13:31:45 CST 2021] Add '--force' to force to renew.
[Mon Dec 27 13:31:45 CST 2021] Skipped zuiyoujie.com
[Mon Dec 27 13:31:45 CST 2021] ===End cron===
-------------------
posted @ 2023-05-24 16:13  天生帅才  阅读(321)  评论(0编辑  收藏  举报
// 百度统计