Migrate from one gitea instance to another #6608

Closed
opened 2025-11-02 07:01:13 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Madmorgan007 on GitHub (Dec 30, 2020).

  • Gitea version (or commit ref): 1.13.1
  • Git version:
  • Operating system: Windows 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • [x ] SQLite

I'm trying to move all my git projects off the current pc where they are been hosted onto a new machine.

I'm trying to migrate the data from the old server to the new machine using the UI and selecting new migrate > gitea.

it will not copy the data over because it says.

migrate from 'macmini:3000' is not allowed: the host resolve to a private ip address '192.168.1.232'

can you please tell me how to allow this.

Thanks

Originally created by @Madmorgan007 on GitHub (Dec 30, 2020). - Gitea version (or commit ref): 1.13.1 - Git version: - Operating system: Windows 10 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x ] SQLite I'm trying to move all my git projects off the current pc where they are been hosted onto a new machine. I'm trying to migrate the data from the old server to the new machine using the UI and selecting new migrate > gitea. it will not copy the data over because it says. migrate from 'macmini:3000' is not allowed: the host resolve to a private ip address '192.168.1.232' can you please tell me how to allow this. Thanks
Author
Owner

@lunny commented on GitHub (Dec 30, 2020):

You can temporarily change the app.ini

[migrations]
BLOCKED_DOMAINS=
@lunny commented on GitHub (Dec 30, 2020): You can temporarily change the app.ini ``` [migrations] BLOCKED_DOMAINS= ```
Author
Owner

@Madmorgan007 commented on GitHub (Dec 30, 2020):

hi that does not seem to work can you please give a better example.

I have tried like this:
[migrations]
BLOCKED_DOMAINS = 192.168.1.232

[migrations]
BLOCKED_DOMAINS = false

[migrations]
BLOCKED_DOMAINS =

@Madmorgan007 commented on GitHub (Dec 30, 2020): hi that does not seem to work can you please give a better example. I have tried like this: [migrations] BLOCKED_DOMAINS = 192.168.1.232 [migrations] BLOCKED_DOMAINS = false [migrations] BLOCKED_DOMAINS =
Author
Owner

@jolheiser commented on GitHub (Dec 30, 2020):

This is the config for migrations.
I believe what you actually want is ALLOW_LOCALNETWORKS = true

@jolheiser commented on GitHub (Dec 30, 2020): This is the [config for migrations](https://docs.gitea.io/en-us/config-cheat-sheet/#migrations-migrations). I believe what you actually want is `ALLOW_LOCALNETWORKS = true`
Author
Owner

@Madmorgan007 commented on GitHub (Dec 30, 2020):

thanks @jolheiser that fixed it now

@Madmorgan007 commented on GitHub (Dec 30, 2020): thanks @jolheiser that fixed it now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6608