-
Create empty repo in github (click create and do not add any readme or licence)
-
Run:
git pull
git remote add backup [email protected]:user/repo-name.git
git push -u backup master
git remote -v
| #!/usr/bin/env python | |
| import sys | |
| offset = int(sys.argv[1]) | |
| img_name = sys.argv[2] | |
| # skip current_pos | |
| while True: | |
| line = sys.stdin.readline() |
| NAME=nameofsnapshot | |
| DEVRO=/dev/read-only-backing-device | |
| DEVCOW=/dev/space-for-writing-changes | |
| SECTORS=$(blockdev --getsz $DEVRO) | |
| TABLE=$(mktemp) | |
| echo 0 $SECTORS snapshot $DEVRO $DEVCOW N 16 >> $TABLE | |
| echo "Setting up $NAME with" |
| #!/usr/bin/env python | |
| # based on https://gist.github.com/thomwolf/13ca2b2b172b2d17ac66685aa2eeba62 | |
| # support for --len adapted from https://gist.github.com/lhoestq/8f317e47c6f8b6bc50ef1275f655a3a3 | |
| # support for --count-spaces Joachim Wagner 2020-06-17 | |
| # support for --read-first Joachim Wagner 2020-06-18 | |
| # requirements: pip install nlp psutil six | |
| import os; import psutil; import timeit |
Create empty repo in github (click create and do not add any readme or licence)
Run:
git pull
git remote add backup [email protected]:user/repo-name.git
git push -u backup master
git remote -v