Python backup utility
Project description
# backutil
Python Backup Utility
## Description:
`backutil` is a wrapper for the python `tarfile` library. As `tarfile` is a standard Python library, using `backutil` will provide a cross-platform and simple backup utility.
## Installation:
Install using `pip`:
`sudo pip3 install backutil`
## Usage:
```
❯ backutil --help
usage: backutil [-h] --path PATH [PATH ...] --dest DEST [--webdav URL] [-z]
[-v] [-q]
Python backup utility
optional arguments:
-h, --help show this help message and exit
--path PATH [PATH ...]
path(s) to backup
--dest DEST destination of backup
--webdav URL WebDav URL to upload to
-z, --zip use gzip to compress the backup file
-v, --verbose enable verbose output
-q, --quiet suppress output
```
### Example commands:
Backup two files to a .tar archive:
`❯ backutil --path tmp.txt tmp2.txt --dest ~/Documents/file.tar`
Backup and compress to .tar.gz archive:
`❯ backutil --path tmp.txt tmp2.txt --dest ~/Documents/file.tar.gz -z`
Backup to a .tar archive verbosely:
`❯ backutil --path tmp.txt tmp2.txt --dest ~/Documents/file.tar -v`
Backup and compress to a .tar.gz archive, supressing output:
`❯ backutil --path tmp.txt tmp2.txt --dest ~/Documents/file.tar.gz -z -q`
Backup file and upload to Nextcloud Webdav (currently doesn't support uploading gzip files):
`❯ backutil --path tmp.txt tmp2.txt --dest ~/file.tar --webdav 'https://cloud.example.com:8080/'
Currently WebDav functionality has only been tested on an instance of Nextcloud. Also, the webdav functionality does not support uploading a gzip compressed file currently.
Python Backup Utility
## Description:
`backutil` is a wrapper for the python `tarfile` library. As `tarfile` is a standard Python library, using `backutil` will provide a cross-platform and simple backup utility.
## Installation:
Install using `pip`:
`sudo pip3 install backutil`
## Usage:
```
❯ backutil --help
usage: backutil [-h] --path PATH [PATH ...] --dest DEST [--webdav URL] [-z]
[-v] [-q]
Python backup utility
optional arguments:
-h, --help show this help message and exit
--path PATH [PATH ...]
path(s) to backup
--dest DEST destination of backup
--webdav URL WebDav URL to upload to
-z, --zip use gzip to compress the backup file
-v, --verbose enable verbose output
-q, --quiet suppress output
```
### Example commands:
Backup two files to a .tar archive:
`❯ backutil --path tmp.txt tmp2.txt --dest ~/Documents/file.tar`
Backup and compress to .tar.gz archive:
`❯ backutil --path tmp.txt tmp2.txt --dest ~/Documents/file.tar.gz -z`
Backup to a .tar archive verbosely:
`❯ backutil --path tmp.txt tmp2.txt --dest ~/Documents/file.tar -v`
Backup and compress to a .tar.gz archive, supressing output:
`❯ backutil --path tmp.txt tmp2.txt --dest ~/Documents/file.tar.gz -z -q`
Backup file and upload to Nextcloud Webdav (currently doesn't support uploading gzip files):
`❯ backutil --path tmp.txt tmp2.txt --dest ~/file.tar --webdav 'https://cloud.example.com:8080/'
Currently WebDav functionality has only been tested on an instance of Nextcloud. Also, the webdav functionality does not support uploading a gzip compressed file currently.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file backutil-0.1.2-py2.py3-none-any.whl.
File metadata
- Download URL: backutil-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1ff90476eda1bc86036a263e6a94cf584bb324d9ca216a0195448bdee7cf032
|
|
| MD5 |
4a9f8de27e5e6dd714f5e06205cd0f2c
|
|
| BLAKE2b-256 |
aac9baad3bdb3f8e17765e0f3a5e75fa9b9b83f4888f6a6ac40365a041830e4f
|