Skip to content

harsh8398/backup.py

Repository files navigation

Build Status codecov PyPI - Python Version PyPI

BACKUP.PY

PyBackup is a recursive/incremental backup utility package written purely in Python. This main feature of the package is its incremental backup which incrementally copies only the files that are added or the parts of the file which are changed. To achieve the later scenario it uses rsync algorithm for which you can find the details here.

Prerequisites

  • Python 3.5 or above

Quick Install

pip install backup.py

Simple Example

This package also installs a script which you can run in the shell as follows:

pybackup ~/path/to/the/source/dir ~/path/to/the/destination/dir

Or you can use its Python interface as follows:

from backup import IncrementalBackup

source_dir = "~/path/to/the/source/dir"
destination_dir = "~/path/to/the/destination/dir"
IncrementalBackup(src=source_dir, dst=destination_dir).run()

Versioning

For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

This project was solely inspired by rsync.

About

Recursive/Incremental File Backup Utility Implemented in Python

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages