# 如何批量修改镜像库克隆url地址？

**URL:** <https://forum.gitea.com/t/url/7408>\
**Category:** 中文求助(Chinese Only)\
**Created:** [June 11, 2023, 12:52am UTC](https://forum.gitea.com/t/url/7408 "2023-06-11T00:52:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellorayza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/hellorayza/32/2834_2.png) [@hellorayza](https://forum.gitea.com/u/hellorayza)\
**Post date:** [June 11, 2023, 12:52am UTC](https://forum.gitea.com/t/url/7408/1 "2023-06-11T00:52:00Z")

</div>

背景：  
一台备份服务器上全部是镜像仓库，镜像克隆地址都是内网地址，ip变化后如何 **快速** 更新这些仓库克隆地址呢？  
已知的方法：  
进入设置后修改“从 URL 克隆”中地址。但是仓库多的情况下不够高效。

类似问题：[如何修改镜像站的源地址？只能删掉重建吗？](https://forum.gitea.com/t/topic/4302)

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [October 11, 2023, 5:53am UTC](https://forum.gitea.com/t/url/7408/2 "2023-10-11T05:53:46Z")

</div>

这种情况下，只能自己手动直接修改数据库，不过要小心不要改出问题。
