https://github.com/strykerkkd/dropbox-backup
Simple command line tool to backup a folder to dropbox
https://github.com/strykerkkd/dropbox-backup
backup dropbox-v2 python-3-5
Last synced: 4 months ago
JSON representation
Simple command line tool to backup a folder to dropbox
- Host: GitHub
- URL: https://github.com/strykerkkd/dropbox-backup
- Owner: StrykerKKD
- License: mit
- Created: 2017-02-15T19:13:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-15T20:05:26.000Z (over 9 years ago)
- Last Synced: 2025-07-02T07:49:09.132Z (11 months ago)
- Topics: backup, dropbox-v2, python-3-5
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
This is a simple console line interface, which can backup a folder(which doesn't contain any subfolder) to dropbox "securely" and it also can restore the directory. This tool has a lot of limitation, so it's mostly just another example how you can use the dropbox api with python.
## How it works?
* backup:
1. Makes a configuration file, which contains the paths for every file and also store every file's uuid.
2. Encrypt every file in the folder.
3. Archives the encrypted files.
4. Uploads to dropbox.
* restore:
1. Download archive and unpack it.
2. Decrypt every archived file.
3. Restore the files based on the file paths inside the configuration file. File's uuid is used to identify every file in the archived file.
* listing backups: simply use a dropbox api call.
## How to use?
Get a token key from dropbox by registering a dropbox app and insert the token in the dropboxbackend.py file.
```
$ git clone https://github.com/StrykerKKD/dropbox-backup.git
$ cd dropbox-backup
$ source activate [your_virtualenviroment_name]
$ pip install -e .
$ dropboxbackup
```
## Coding Style
I avoided using OOP and tried to write the code in a functional way. The code also has typing information for almost every function.