Skip to content

Commit 82f1d14

Browse files
committed
add git backup command
1 parent fecdfdf commit 82f1d14

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.egg-info
22
build
3-
backup
3+
backup
4+
dist

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Makes a backup of all your repositories and gists from GitHub
44

55
## Install
66

7+
(On Linux you'll need to use `sudo`)
8+
79
### From PyPI
810

911
`pip3 install gitback`
@@ -14,6 +16,8 @@ Makes a backup of all your repositories and gists from GitHub
1416

1517
## Usage
1618

19+
You can also use `git backup` instead of `gitback`.
20+
1721
```py
1822
usage: gitback [-h] [-n] [-P] [-s] [-f] [-z] [-q] [-u] [-p] [-r | -g]
1923

git-backup

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/python3
2+
from gitback import backup
3+
from os import rmdir
4+
if __name__ == '__main__':
5+
try: backup()
6+
except Exception: rmdir("backup")

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from setuptools import setup,find_packages
22
setup(
33
name='gitback',
4-
version='1.1.2',
4+
version='1.1.3',
55
description='Makes a backup of all your repositories and gists from GitHub',
66
long_description=open('README.md').read(),
77
long_description_content_type="text/markdown",
88
url='https://github.com/donno2048/gitback',
99
packages=find_packages(),
10+
scripts=['git-backup'],
1011
license='MIT',
1112
author='Elisha Hollander',
1213
classifiers=['Programming Language :: Python :: 3'],

0 commit comments

Comments
 (0)