diff --git a/BackupHub.py b/BackupHub.py index 7918195..9cec713 100755 --- a/BackupHub.py +++ b/BackupHub.py @@ -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. @@ -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) diff --git a/README.md b/README.md index 6bf0755..d8fa833 100644 --- a/README.md +++ b/README.md @@ -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 --website http://gitlab.com --move-aside --ignore-errors >> ~/backup/BackupHub.log +0 3 * * 6 BackupHub.py --path ~/backup --token --website https://gitlab.com --move-aside --ignore-errors >> ~/backup/BackupHub.log ``` or for GitHub: diff --git a/environment.yml b/environment.yml index de7c9c0..69caa6e 100644 --- a/environment.yml +++ b/environment.yml @@ -7,5 +7,5 @@ channels: dependencies: - python=3.5 - pip: - - python-gitlab==0.13 + - python-gitlab>=1.3.0 - PyGithub==1.26.0