Skip to main content

Creates backups of your files and directories.

Project description

Simple utility that makes backups of your files/directories.

https://user-images.githubusercontent.com/11185582/48983793-ab82df00-f0f3-11e8-8727-c665b92bdb31.gif

Installation

sudo pip install bkp

Usage

Creating Backups & Restoring

Provided that we have a file or directory: foo/bar/baz

# Create a copy:
bkp foo/bar/baz

# Following copy will be created: foo/bar/baz.b01
# Invoking command again will create foo/bar/baz.b02 etc.

# Restore your file or directory:
bkp -r foo/bar/baz.01

# This will create/overwrite original file/directory: foo/bar/baz

Note that multiple files can be specified in the command line. Output files are always created in the same directory where corresponding input files are located, no matter what CWD at the time.

Working With Archives

Alternatively -a flag can be used to create tar archive instead of a simple copy. Also -m can be used to add comments.

# Create an archive
bkp -am "initial version" foo/bar/baz

# Comment and other details can be obtained by invoking:
bkp -i foo/bar/baz.b03

For more options and explanations invoke bkp --help.

Disclaimer

Author doesn’t take any responsibility for loss or damage caused by this utility. You are using it on your own risk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bkp-0.1.4.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file bkp-0.1.4.tar.gz.

File metadata

  • Download URL: bkp-0.1.4.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2

File hashes

Hashes for bkp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5bd1c9148c3f4c150b7f9b6ed18e425d642c6235098be4a823a63dea2c924ac0
MD5 d1bd1f26c49a74d89e25d4ec53569b85
BLAKE2b-256 cb71ae446c9e88fe2706f5a1fd00e995289f542fe5427be5acaec5933ed16fd0

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