forked from rvojcik/gitlab-project-export
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml-example
More file actions
60 lines (56 loc) · 2.03 KB
/
config.yaml-example
File metadata and controls
60 lines (56 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# Gitlab configuration
#
# It is possible to use globbing in project names
# aka
# - group/*
# - user/*/documentation
gitlab:
access:
gitlab_url: "https://gitlab.com"
token: "MY_PERSONAL_SECRET_TOKEN"
# SSL verify
# Correspond to verify option in request doc:
# https://2.python-requests.org/en/master/api/#requests.Session.merge_environment_settings
# Can be boolean to control whether we verify the ssl server certificate or string in which case it must be a path to CA bundle
# Default is true
# If you set it to False, you will get urllib warnings. To supress them set environment variable:
# - export PYTHONWARNINGS="ignore:Unverified HTTPS request"
ssl_verify: True
projects:
- rvojcik/example-project
- rvojcik/group/*
# Membership attribute used when searching for projects
# If you want to export all projects from private gitlab instance
# sse False here. In big shared instances or gitlab.com use True
membership: True
# Wait Between Exports
# How many seconds to wait between projects to export.
# This is due rate-limiting in gitlab.com
# https://docs.gitlab.com/ee/user/project/settings/import_export.html#rate-limits
#
# If you break the limit API respond with 429 for your IP address for a while.
#
# When you are using this in your private gitlab instance you can set it to 0
wait_between_exports: 303
#
# Backup configuration
#
backup:
# Create separate directory for every project
project_dirs: False
# Destination of the exports/backups
destination: "/data/backup"
# Backup Name template
# Is it possible to use some placeholders in the name
# {PROJECT_NAME} - Name of the project with full path
# Path slashes is replaces with dashes.
# Example:
# rvojcik/project1 => rvojcik-project1
#
# {TIME} - Time of the export
backup_name: "gitlab-com-{PROJECT_NAME}-{TIME}.tar.gz"
# Time format tamplate
# Time is construct by python strftime.
# backup_time_format can be anything compatible with strftime
backup_time_format: "%Y%m%d"