An open API service indexing awesome lists of open source software.

https://github.com/marcodpt/backup

File backup script in python3 with JSON config file
https://github.com/marcodpt/backup

backup config file python3 scp ssh

Last synced: 3 months ago
JSON representation

File backup script in python3 with JSON config file

Awesome Lists containing this project

README

          

# backup
> File backup script in python3 with JSON config file

## Usage
```sh
./dump.py
```

## config.json
- array of objects: items properties:
- string `source`: the source file, maybe be remote machine
`user`@`IP`:`filePath`
- string `target`: the target file, always local machine, use `*` for
current timestamp
- number `limit`: the max number of files of this type on the target dir
- boolean `compress`: should be compressed

## decompress backup
```sh
tar -zxf {filename}
```