# Move Gitea to another server (Command line required)

**URL:** <https://forum.gitea.com/t/move-gitea-to-another-server-command-line-required/7932>\
**Category:** Install/Maintain/Configure\
**Created:** [October 6, 2023, 4:24pm UTC](https://forum.gitea.com/t/move-gitea-to-another-server-command-line-required/7932 "2023-10-06T16:24:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hooman.j](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/hooman.j/32/4080_2.png) [@hooman.j](https://forum.gitea.com/u/hooman.j)\
**Post date:** [October 6, 2023, 4:24pm UTC](https://forum.gitea.com/t/move-gitea-to-another-server-command-line-required/7932/1 "2023-10-06T16:24:25Z")

</div>

Other closed topic exist with this title ([https://forum.gitea.com/t/move-gitea-to-another-server/1513](https://forum.gitea.com/t/move-gitea-to-another-server/1513)), but I need another way to move my server. I don’t want to start using SQL server because of private usage of Gitea. My server is using SQLite and I need a way that take lower time from me to back up and restore. I can not spend time on research every time I restore backups.

I need only a single command to restore my backup to the completely new db file. So it’s easy to describe how to restore backups to the next person.

Thank you for your attention

---

<div class="post-metadata">

**Author:** ![eeyrjmr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eeyrjmr/32/1095_2.png) [@eeyrjmr](https://forum.gitea.com/u/eeyrjmr)\
**Post date:** [October 6, 2023, 4:35pm UTC](https://forum.gitea.com/t/move-gitea-to-another-server-command-line-required/7932/2 "2023-10-06T16:35:32Z")

</div>

if you are using sqlite then you can just archive the the /var/lib/gitea directory and the /etc/gitea directory and untar on the new server in the same locations

---

<div class="post-metadata">

**Author:** ![hooman.j](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/hooman.j/32/4080_2.png) [@hooman.j](https://forum.gitea.com/u/hooman.j)\
**Post date:** [October 6, 2023, 11:15pm UTC](https://forum.gitea.com/t/move-gitea-to-another-server-command-line-required/7932/3 "2023-10-06T23:15:02Z")

</div>

Moving from window to Linux. Tried many ways, and I’m still working on it. But can I remember how to recover a backup after a year? Or I should spend a day for it again.

---

<div class="post-metadata">

**Author:** ![hooman.j](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/hooman.j/32/4080_2.png) [@hooman.j](https://forum.gitea.com/u/hooman.j)\
**Post date:** [October 6, 2023, 11:49pm UTC](https://forum.gitea.com/t/move-gitea-to-another-server-command-line-required/7932/4 "2023-10-06T23:49:27Z")

</div>

I have version mismatch problem.

```auto
2023/10/06 23:44:10 cmd/web.go:175:serveInstalled() [I] PING DATABASE sqlite3
2023/10/06 23:44:10 ...ations/migrations.go:599:Migrate() [I] Migration[184]: Rename Task errors to message
2023/10/06 23:44:10 routers/common/db.go:34:InitDBEngine() [E] ORM engine initialization attempt #3/10 failed. Error: migrate: migration[184]: Rename Task errors to message failed: error in table task after rename: duplicate column name: message
2023/10/06 23:44:10 routers/common/db.go:35:InitDBEngine() [I] Backing off for 3 seconds

```

---

<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 7, 2023, 5:46am UTC](https://forum.gitea.com/t/move-gitea-to-another-server-command-line-required/7932/5 "2023-10-07T05:46:00Z")

</div>

Yes, you need to recover to the same Gitea version as you dumped.
