# Backup problem: 'dump' only create a 1KByte .zip file

**URL:** <https://forum.gitea.com/t/backup-problem-dump-only-create-a-1kbyte-zip-file/1581>\
**Category:** General\
**Created:** [October 16, 2019, 3:47pm UTC](https://forum.gitea.com/t/backup-problem-dump-only-create-a-1kbyte-zip-file/1581 "2019-10-16T15:47:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanrui8765](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/tanrui8765/32/657_2.png) [@tanrui8765](https://forum.gitea.com/u/tanrui8765)\
**Post date:** [October 16, 2019, 3:47pm UTC](https://forum.gitea.com/t/backup-problem-dump-only-create-a-1kbyte-zip-file/1581/1 "2019-10-16T15:47:58Z")

</div>

Hello,

I got a problem with gitea backup. I tried to use dump command to backup my gitea, but only got a 1KByte empty .zip file.  
I am using Windows Server 2008 R2, Gitea 1.9.4.

Many Thanks~

 ![WeChat%20Screenshot_20191016234533](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/1X/1d2dc61cb497cf29f2f9fe8ff3c54dcea298345e.png)  
 ![WeChat%20Screenshot_20191016234611](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/1X/6db399d4131c8e29faf46d02795538ff4b7d2c80.png)  
 ![WeChat%20Screenshot_20191016234637](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/1X/7b6b331a659e6f2210e6e6a31fd4125c25b790fb.png)

---

<div class="post-metadata">

**Author:** ![elfuego](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/elfuego/32/4746_2.png) [@elfuego](https://forum.gitea.com/u/elfuego)\
**Post date:** [October 19, 2019, 11:11am UTC](https://forum.gitea.com/t/backup-problem-dump-only-create-a-1kbyte-zip-file/1581/2 "2019-10-19T11:11:52Z")

</div>

Gitea has some backup problems, so I solve it by backuping manually, as follows.

> [@Backup issue for Gitea](https://forum.gitea.com/t/backup-issue-for-gitea/865/5):
>
> 1.dump db (I use postgresql, so pg\_dump) 2.copy git repos 3.copy /var/lib/gitea

---

<div class="post-metadata">

**Author:** ![tanrui8765](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/tanrui8765/32/657_2.png) [@tanrui8765](https://forum.gitea.com/u/tanrui8765)\
**Post date:** [October 20, 2019, 1:21pm UTC](https://forum.gitea.com/t/backup-problem-dump-only-create-a-1kbyte-zip-file/1581/3 "2019-10-20T13:21:26Z")

</div>

Thank you @elfuego.  
I then refer to a solution on this issue: [https://github.com/go-gitea/gitea/issues/4372](https://github.com/go-gitea/gitea/issues/4372)  
Just stop the gitea service first, then execute .\gitea dump, and start the gitea service at last.

---

<div class="post-metadata">

**Author:** ![elfuego](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/elfuego/32/4746_2.png) [@elfuego](https://forum.gitea.com/u/elfuego)\
**Post date:** [October 20, 2019, 2:19pm UTC](https://forum.gitea.com/t/backup-problem-dump-only-create-a-1kbyte-zip-file/1581/4 "2019-10-20T14:19:12Z")

</div>

ah, that makes sense =) but what else makes sense is to check your backup, i.e. to try to restore it somewhere and see does gitea work.

---

<div class="post-metadata">

**Author:** ![tanrui8765](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/tanrui8765/32/657_2.png) [@tanrui8765](https://forum.gitea.com/u/tanrui8765)\
**Post date:** [October 22, 2019, 4:34am UTC](https://forum.gitea.com/t/backup-problem-dump-only-create-a-1kbyte-zip-file/1581/5 "2019-10-22T04:34:16Z")

</div>

You are right, I’ll make a double check 👍
