Whole script is based on https://gist.github.com/svbergerem/5914d7f87764901aefddba125af99938. The only diffrence is that my script saves data to json and u can send it to another nextcloud instance whenever you want to, base script transfers deck between nextcloud instances.
I am not using send
mode regurarly so there is no guarantee that its still working but last nextcloud version I tested that with is 25.0.1
Argument | Default value | Description |
---|---|---|
mode | backup | Can be backup or send . Determinates if u want to donwload data to file or send to nextcloud instance from file |
host | http://localhost:8080 | nextcloud url |
username | test | nextcloud username |
passwd | test | nextcloud user's password |
directory | . | directory where to save/download data. Just plain path program will search for file called nextcloud-decks.json |
If u want to test if it works u can run docker and test it with default values
$ docker-compose up -d
# create nextcloud user if it was run for the first time
$ python main.py # to download created decks from localhost
Progress |################################| 19/19
$ python main.py --mode send # to send data saved in file nextcloud-decks.json to localhost
Progress |################################| 19/19
make init
- install requierments (only needed to pack script to single file if u dont want this u dont have to do this)make build
- pack python scripts to single filemake install
- copy built file to~/.local/bin/
asnextcloud-deck-backuper
make clean
- delete build and build artifacts from root project directory
- Possibility to provide
.pem
file for self signed certificates - Add progress bar
- Quiet warnings when verify is false
- Add backuping files associated with decks
- Add caching data