Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions BackupHub.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Author: Nick Zwart
# Date: 2016jun01
# Backup all the projects of a git-hub style website via git mirroring.
Expand Down Expand Up @@ -48,7 +48,7 @@ def __init__(self, token, url):
self._gl.auth()

# list all projects
self._projects = self._gl.projects.list(all=True)
self._projects = self._gl.projects.list(membership=True)

def numProjects(self):
return len(self._projects)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A weekly backup of your GitLab initiated by the cron at 3am each Saturday would
look something like this (assuming BackupHub.py is in your PATH):

```
0 3 * * 6 BackupHub.py --path ~/backup --token <your-gitlab-api-token> --website http://gitlab.com --move-aside --ignore-errors >> ~/backup/BackupHub.log
0 3 * * 6 BackupHub.py --path ~/backup --token <your-gitlab-api-token> --website https://gitlab.com --move-aside --ignore-errors >> ~/backup/BackupHub.log
```

or for GitHub:
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ channels:
dependencies:
- python=3.5
- pip:
- python-gitlab==0.13
- python-gitlab>=1.3.0
- PyGithub==1.26.0