-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.psd1
More file actions
42 lines (35 loc) · 1.81 KB
/
Copy pathconfig.example.psd1
File metadata and controls
42 lines (35 loc) · 1.81 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
@{
# Copy this file to `config.psd1` and fill in your own values.
# `config.psd1` is gitignored so your personal handles and paths never
# get committed. All scripts default to `config.psd1` (override with
# -ConfigPath).
# === Primary GitHub source (used by backup.ps1) ===
GitHubUser = 'your-github-username'
GitHubCredentialName = 'github-backup/github-pat'
# === Old GitHub account (used by Migrate-ToNewAccount.ps1 only) ===
# Leave as-is if you are not migrating from a previous account.
OldGitHubUser = 'your-old-github-username'
OldGitHubCredentialName = 'github-backup/old-github-pat'
# === GitLab destination ===
# Mirrors are created in the authenticated user's personal namespace,
# i.e. gitlab.com/<your-handle>/<repo>. Top-level groups were avoided
# because gitlab.com gates that operation behind identity verification
# for new accounts.
GitLabHost = 'https://gitlab.com'
GitLabCredentialName = 'github-backup/gitlab-pat'
# === Local cache ===
# Point these at any drive/folder you like.
CachePath = 'C:\github-backup-cache'
LogPath = 'C:\github-backup-cache\logs'
# === Logging ===
EventLogSource = 'GitHubBackup'
# === Behavior: backup ===
LfsHandling = 'auto' # 'auto' or 'skip'
GitLabVisibility = 'private' # all GitLab mirrors land private regardless of source visibility
SkipForks = $true
SkipArchived = $false
# === Behavior: migration ===
NewGitHubVisibility = 'private' # new GitHub repos always created private (user decides later when to make public)
PreserveDescription = $true
PreserveDefaultBranch = $true
}