Skip to main content

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 that supports uploading to Nextcloud/Owncloud.

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.

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

If you're not sure about the file name format, learn more about wheel file names.

backutil-0.1.3-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file backutil-0.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for backutil-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6e9f9b8e58d7c1475647e7f144312b6ccd777a2a18c9bd5e6d296d642cb9ddee
MD5 d512a795df8ce19ee900fc2ff1f8ea82
BLAKE2b-256 81610137021eea7bccb2148e6a7ba2f8c1a7fb8f3949febb7576ea025e17f86a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page