-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from SierraSoftworks/feat/current-user
feat: Add support for backing up repositories owned by the current user
- Loading branch information
Showing
7 changed files
with
80 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
schedule: "0 * * * *" | ||
|
||
backups: | ||
# Backup all the repositories that the provided credentials have access to | ||
- kind: github/repo | ||
from: user | ||
to: /backup/github | ||
credentials: !Token your_access_token | ||
|
||
# Backup the repository from "notheotherben" called "nix-env" | ||
- kind: github/repo | ||
from: users/notheotherben | ||
to: /backup/github | ||
filter: repo.name == "nix-env" | ||
|
||
# Backup public, non-forked, repositories called "git-tool" or "grey" from the "SierraSoftworks" organization | ||
- kind: github/repo | ||
from: orgs/SierraSoftworks | ||
to: /backup/github | ||
filter: repo.public && !repo.fork && repo.name in ["git-tool", "grey"] | ||
|
||
# Backup production non-source releases from the "SierraSoftworks" organization | ||
- kind: github/release | ||
from: orgs/SierraSoftworks | ||
to: /backup/github | ||
filter: repo.public && !release.prerelease && !artifact.source-code | ||
|
||
# Backup all repositories that the user `notheotherben` has starred | ||
- kind: github/star | ||
from: users/notheotherben | ||
to: /backup/github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters