-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
90 lines (82 loc) · 2.67 KB
/
config.toml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Github personal access token
# https://github.com/settings/tokens
# can be passed in via command line option
# default : $GITHUB_TOKEN
# token = ""
# enterprise options:
# url (string)
# location of github enterprise instance ex. github.mycompany.com
# default: "" (connect to github.com api)
[enterprise]
# url = "github.mycompany.com"
# gist config options:
# backupdir (string)
# full path of directory to backup gists to
# default: $HOME/.ghb/backups/gists
# backupregex (string)
# only backup gists with filenames macthing this regular expression
# regex documentaion https://github.com/google/re2/wiki/Syntax
# default: "" (backup all gists)
# deleteregex (string)
# delete any gist with filenames matching this regular expression
# default: "" (dont delete any gists)
# fileonly (bool)
# since gists are full git repos, they can be backed up with history via git clone
# if true this will instead backup the gist files only via curl to the raw url
# default: true
# prompt (bool)
# wether to prompt the user before deletions
# default: false
# retention (int)
# number of days after which gists will be deleted if not updated
# default: 0 (never delete)
# NOTE:
# deleteregex and retention are evauluated together via a logical OR.
# if both are configured, any gists matching either of the criteria will be deleted
[gists]
# backupdir = "/path/to/dir"
# backupregex = ".*"
# deleteregex = "^deleteme.*"
fileonly = true
prompt = false
retention = 0
# repos config options:
# backupdir (string)
# full path of directory to backup repos to
# default: $HOME/.ghb/backups/starred
# shallow (bool)
# wether to perform a full checkout of git history or a make a shallow clone
# default: true
# prompt (bool)
# wether to prompt user before performing a backup
# default: false
# owner (bool)
# backup repos where you are the owner
# default: true
# collaborator (bool(
# backup repos where you are a collaborator
# default: true
# orgmember (bool)
# backup repos of organizations you belong to
# default: false
[repos]
# backupdir = "/path/to/dir"
shallow = true
prompt = false
owner = true
collaborator = true
orgmember = false
# starred repos config options:
# backupdir (string)
# full path of directory to backup starred repos to
# default: $HOME/.ghb/backups/starred
# shallow (bool)
# wether to perform a full checkout of git history or a make a shallow clone
# default: true
# prompt (bool)
# wether to prompt user before performing a backup
# default: false
[starred]
# backupdir = "/path/to/dir"
shallow = true
prompt = false