forked from rvojcik/gitlab-project-export
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml-example
45 lines (41 loc) · 1.23 KB
/
config.yaml-example
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
#
# 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"
projects:
- name: rvojcik/example-project
regularity: [year, month, week, day]
- rvojcik/group/*
regularity: [year]
#
# Backup configuration
#
backup:
# Create separate directory for every project
project_dirs: False
# Create separate directory (under the project directory, if project_dirs: True) for the regularity
regularity_dirs: False
# Destination of the exports/backups
destination: "/data/backup"
# Backup Name template
# It is 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
# {REGULARITY} - The regularity selected as an
# argument passed to the script.
backup_name: "gitlab-com-{PROJECT_NAME}-{REGULARITY}-{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"