[PR #1637] [CLOSED] Backup/Restore commands #15964

Closed
opened 2025-11-02 11:59:06 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1637
Author: @bkcsoft
Created: 4/28/2017
Status: Closed

Base: masterHead: bkcsoft/restore-command


📝 Commits (4)

📊 Changes

6 files changed (+509 additions, -47 deletions)

View changed files

changelog/unreleased/restore-backup.yml (+3 -0)
cmd/backup.go (+197 -0)
📝 cmd/dump.go (+36 -35)
cmd/restore.go (+166 -0)
📝 main.go (+3 -1)
📝 models/models.go (+104 -11)

📄 Description

Backup/Restore commands! 🎉

NAME:                                                                                                                                                                                                                                                                           
   gitea backup - Backup files and database                                                                                                                                                                                                                                     

DESCRIPTION:
   Backup dumps and compresses all related files and database into zip file,
   which can be used for migrating Gitea to another server. The output format is meant to be
   portable among all supported database engines.

OPTIONS:
   --config FILE, -c FILE   Custom configuration FILE path (default: "custom/conf/app.ini")
   --tempdir PATH, -t PATH  Temporary directory PATH (default: "/tmp")
   --target PATH            Target directory PATH to save backup archive (default: "./")
   --verbose, -v            Show process details
   --db                     Backup the database (default: true)
   --repos                  Backup repositories (default: true)
   --data                   Backup attachments and avatars (default: true)
   --custom                 Backup custom files (default: true)
NAME:
   gitea restore - TBD

TODO-list:

Closes #1292


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1637 **Author:** [@bkcsoft](https://github.com/bkcsoft) **Created:** 4/28/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `bkcsoft/restore-command` --- ### 📝 Commits (4) - [`3e61f49`](https://github.com/go-gitea/gitea/commit/3e61f49da4f372110fc5c63342b71712244de3aa) Restore-command added - [`8c70820`](https://github.com/go-gitea/gitea/commit/8c708202b6f0a1003bc7c9cd8fdd578b04c678f5) Add changelog - [`77ef391`](https://github.com/go-gitea/gitea/commit/77ef39112de0d78bf4d988326de5ace6313f6627) Update changelog - [`b0c7a3b`](https://github.com/go-gitea/gitea/commit/b0c7a3bb5c4e539a0704cb702dc868e69988b3c7) Fix stuff ### 📊 Changes **6 files changed** (+509 additions, -47 deletions) <details> <summary>View changed files</summary> ➕ `changelog/unreleased/restore-backup.yml` (+3 -0) ➕ `cmd/backup.go` (+197 -0) 📝 `cmd/dump.go` (+36 -35) ➕ `cmd/restore.go` (+166 -0) 📝 `main.go` (+3 -1) 📝 `models/models.go` (+104 -11) </details> ### 📄 Description Backup/Restore commands! 🎉 ``` NAME: gitea backup - Backup files and database DESCRIPTION: Backup dumps and compresses all related files and database into zip file, which can be used for migrating Gitea to another server. The output format is meant to be portable among all supported database engines. OPTIONS: --config FILE, -c FILE Custom configuration FILE path (default: "custom/conf/app.ini") --tempdir PATH, -t PATH Temporary directory PATH (default: "/tmp") --target PATH Target directory PATH to save backup archive (default: "./") --verbose, -v Show process details --db Backup the database (default: true) --repos Backup repositories (default: true) --data Backup attachments and avatars (default: true) --custom Backup custom files (default: true) ``` ``` NAME: gitea restore - TBD ``` TODO-list: - [x] Migrate commit - [ ] Add documentation - [ ] Add to features list: https://github.com/go-gitea/docs/blob/master/content/page/index.en-us.md - [x] Add deprecation notice to `gitea dump` - [x] Add Changelog with deprecation notice Closes #1292 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:59:06 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15964