运维手册 之 备份日志
压缩文件
1 | ls -hl laravel-2025-04-30.log |
上传文件
1 | # 不推荐 |
1 | ls -hl laravel-2025-04-30.log |
1 | # 不推荐 |
Fabric is a high level Python (2.7, 3.4+) library designed to execute shell commands remotely over SSH, yielding useful Python objects in return
1 | from fabric import Connection |
1 | pip install fabric |
类似方案pyinfra turns Python code into shell commands and runs them on your servers
本文基于Terraform 小记
1 | terraform { |
1 | terraform fmt |
1 | resource "tencentcloud_vpc" "vpc_pve" { |
1 | export TENCENTCLOUD_SECRET_ID="******" |
1 | ssh ubuntu@cvm_public_ip |
1 | curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" |
1 | kubectl get pods |
你的项目有哪些内容是基于 Git 管理的?
如何将你的项目从阿里云迁移到腾讯云?
如何将上述所有(包括衔接部分)都纳入 Git 管理?
Terraform Infrastructure automation to provision and manage resources in any cloud or data center
本文云服务使用腾讯云 需准备好凭证:SecretId 和 SecretKey
1 | brew tap hashicorp/tap |
1 | terraform { |
1 | terraform fmt |
1 | resource "tencentcloud_vpc" "vpc_pve" { |
1 | export TENCENTCLOUD_SECRET_ID="******" |
1 | terraform fmt |

