summaryrefslogtreecommitdiffstats
path: root/cmd/dump.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dump.go')
-rw-r--r--cmd/dump.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/dump.go b/cmd/dump.go
index 6bf1a1dc89..14f9a00b58 100644
--- a/cmd/dump.go
+++ b/cmd/dump.go
@@ -160,6 +160,10 @@ It can be used for backup and capture Forgejo server image to send to maintainer
Name: "skip-index",
Usage: "Skip bleve index data",
},
+ &cli.BoolFlag{
+ Name: "skip-repo-archives",
+ Usage: "Skip repository archives",
+ },
&cli.GenericFlag{
Name: "type",
Value: outputTypeEnum,
@@ -360,6 +364,11 @@ func runDump(ctx *cli.Context) error {
excludes = append(excludes, setting.Indexer.IssuePath)
}
+ if ctx.IsSet("skip-repo-archives") && ctx.Bool("skip-repo-archives") {
+ log.Info("Skipping repository archives data")
+ excludes = append(excludes, setting.RepoArchive.Storage.Path)
+ }
+
excludes = append(excludes, setting.RepoRootPath)
excludes = append(excludes, setting.LFS.Storage.Path)
excludes = append(excludes, setting.Attachment.Storage.Path)