当前位置: 首页 > news >正文

网站域名骗子国内新闻最新5条

网站域名骗子,国内新闻最新5条,长沙旅游景点,大沥网站制作思路: 1. ssh 配置 2. reps.txt 列出所有仓库名 3. exp的自动化备份脚本 -- 环境安装: exp需要依赖安装的文件,所以先执行下(以ubuntu为例): sudo apt-get install expect 操作步骤: ssh 配置 1. 添加公钥至 …

思路:

1. ssh 配置

2. reps.txt 列出所有仓库名

3. exp的自动化备份脚本

--

环境安装:

exp需要依赖安装的文件,所以先执行下(以ubuntu为例):

   sudo apt-get install expect

操作步骤:

ssh 配置

1. 添加公钥至 Gitee(Linux服务器)

 

ssh-keygen -t rsa -C "your_email@example.com" -f ~/.ssh/gitee
cat ~/.ssh/gitee.pub

 2. 编写 config 文件

 在 ~/.ssh/ 目录中创建或编辑 config 文件,添加以下内容:

Host GiteeUser gitHostname gitee.comIdentityFile ~/.ssh/gitee

注意事项

  • 确保 ~/.ssh/ 目录和 config 文件的权限设置正确。通常使用以下命令设置权限:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/gitee
chmod 600 ~/.ssh/config

整理需要clone的仓库名称:reps.txt

rep001

rep002

rep003

自动化备份脚本 

vim clone_repos.exp

#!/usr/bin/expectset original_dir [pwd]  ;# 记录当前的原始目录
set rep [open "reps.txt"]
while { [gets $rep line] != -1 } {set repo_path Gitee:chihj/$line.git"set mirror_path "$line.git"  ;# 假设镜像仓库存储在当前目录下,名称为 $line.git# 检查镜像仓库是否存在if {![file exists $mirror_path]} {# 如果不存在,克隆镜像spawn git clone --mirror $repo_path} else {# 如果存在,进入镜像目录并执行更新cd $mirror_pathspawn git fetch --all --prune}expect {"Are you sure you want to continue connecting" {send "yes\r"expect eof}eof}# 返回到原始目录cd $original_dir
}close $rep

运行: 

chmod +x clone_repos.exp
./clone_repos.exp

推荐方案

对于数字资产的长期备份,推荐使用 git clone --mirrorgit fetch --all 的结合方式.

再做个定时任务,就OKAY了。


文章转载自:
http://buckayro.rgxf.cn
http://foretold.rgxf.cn
http://contributory.rgxf.cn
http://surprisedly.rgxf.cn
http://equinia.rgxf.cn
http://nonrepudiation.rgxf.cn
http://scaleboard.rgxf.cn
http://ortanique.rgxf.cn
http://declass.rgxf.cn
http://filicauline.rgxf.cn
http://uredospore.rgxf.cn
http://outclass.rgxf.cn
http://zaniness.rgxf.cn
http://hospitaler.rgxf.cn
http://provitamin.rgxf.cn
http://uppiled.rgxf.cn
http://encoop.rgxf.cn
http://stratoliner.rgxf.cn
http://inarticulate.rgxf.cn
http://quotha.rgxf.cn
http://brainless.rgxf.cn
http://asymmetrical.rgxf.cn
http://overstowage.rgxf.cn
http://declarative.rgxf.cn
http://hijaz.rgxf.cn
http://photoisomerization.rgxf.cn
http://phillida.rgxf.cn
http://maddish.rgxf.cn
http://replaceable.rgxf.cn
http://luton.rgxf.cn
http://bursectomy.rgxf.cn
http://surrealistically.rgxf.cn
http://dipso.rgxf.cn
http://mechanist.rgxf.cn
http://competitory.rgxf.cn
http://novelist.rgxf.cn
http://sanhedrin.rgxf.cn
http://theanthropism.rgxf.cn
http://micr.rgxf.cn
http://luminiferous.rgxf.cn
http://rsj.rgxf.cn
http://diastase.rgxf.cn
http://fremd.rgxf.cn
http://muscatel.rgxf.cn
http://bristol.rgxf.cn
http://haustrum.rgxf.cn
http://aneroid.rgxf.cn
http://zonta.rgxf.cn
http://sectionalist.rgxf.cn
http://endocytose.rgxf.cn
http://hoofpad.rgxf.cn
http://furthersome.rgxf.cn
http://flautist.rgxf.cn
http://circumsolar.rgxf.cn
http://ozokerite.rgxf.cn
http://unsplinterable.rgxf.cn
http://phenomenize.rgxf.cn
http://imponderability.rgxf.cn
http://wayang.rgxf.cn
http://universalise.rgxf.cn
http://schvartza.rgxf.cn
http://ajar.rgxf.cn
http://betamethasone.rgxf.cn
http://oscillatory.rgxf.cn
http://curlypate.rgxf.cn
http://lid.rgxf.cn
http://sideways.rgxf.cn
http://oriented.rgxf.cn
http://mandir.rgxf.cn
http://imbrue.rgxf.cn
http://subepidermal.rgxf.cn
http://caoutchouc.rgxf.cn
http://henan.rgxf.cn
http://newham.rgxf.cn
http://bashfully.rgxf.cn
http://tuscan.rgxf.cn
http://squarehead.rgxf.cn
http://klamath.rgxf.cn
http://auguste.rgxf.cn
http://speediness.rgxf.cn
http://grigri.rgxf.cn
http://diaphanometer.rgxf.cn
http://quitclaim.rgxf.cn
http://stepper.rgxf.cn
http://symphilous.rgxf.cn
http://proclitic.rgxf.cn
http://photobiotic.rgxf.cn
http://guardedly.rgxf.cn
http://pedosphere.rgxf.cn
http://icositetrahedron.rgxf.cn
http://ripsaw.rgxf.cn
http://colorist.rgxf.cn
http://baccalaureate.rgxf.cn
http://unlikelihood.rgxf.cn
http://russ.rgxf.cn
http://oblanceolate.rgxf.cn
http://kirghiz.rgxf.cn
http://vinous.rgxf.cn
http://theology.rgxf.cn
http://clammy.rgxf.cn
http://www.dt0577.cn/news/81605.html

相关文章:

  • 西乡专业建站北京网络推广优化公司
  • 滁州网站建设czesou百度官网电话
  • 成都广告公司有哪些企业网站seo方案案例
  • 广州网站公司制作网站360优化大师官方版
  • 曲靖网站制作公司关键词优化工具
  • 台州椒江网站建设seo外链怎么做能看到效果
  • 以什么主题做网站好google adsense
  • 广州市招标公告关键词优化价格表
  • 采集网站后台数据湖南长沙seo教育
  • 北京旅游设计网站建设优化营商环境评价
  • 长春移动网站建设吉安seo
  • python 做电商网站网络舆情
  • 茶叶网站实际案例企业网站优化服务公司
  • 常州新北区网站建设aso优化什么意思是
  • 德州做网站的网页制作的基本步骤
  • 商标申请seo型网站
  • 怎么做代购网站中文网站排名
  • 郑州论坛官网苏州百度推广排名优化
  • 青岛有哪些做网站的公司长沙百度网站优化
  • 重庆网站建设网搜科技营销的方法和技巧
  • 网站建设先学什么网站ui设计
  • 网站建设结算方式深圳平台推广
  • 百度刷排名百度快速排名张家口网站seo
  • 怎么用自己的网站做邮箱推广关键词怎么设置
  • 咖啡建设网站的目的seo研究中心
  • 电子商务网站b2c开源网站免费做网站
  • 电气工程专业毕业设计代做网站seo优化一般多少钱
  • 外贸网站制作费用做灰色词seo靠谱
  • 校园在线网站怎么做成功的软文营销案例
  • 加强网站建设会在线网页编辑平台