Skip to main content

Backup server and client which indexes files and directories by sha256sum to save space.

Project description

Hashback

Hashback is a part-written backup system including backup server and command-line backup tools.

It was inspired by the need to backup multiple servers with shared content that can often be moved around and renamed. In such situations there is often a lot of duplication in the backup taking up space on disk and wasting a lot of time during the backup window.

Hashback indexes by the sha256 hash of their content. Metadata and file names is stored in the directory listings and they are themselves hashed and indexed the same way. Ultimately this allows things to be renamed, and metadata modified without storing massive repetition in the database.

This repo includes

Hasback command line tool

This creates backups locally and can be set on a schedule to run unassisted. Backup configuration is stored server side so there's no need to log into every client to update their configuration.

Hashback db_admin tool

Besides the obvious things like creating a new backup database, this tool can also be used to seed backups by copying or even hardlinking a file tree into the local database. Hardlinking should be used with great care.

Hashback HTTP server

Hashback has it's own HTTP protocol for storing backups. The hashback HTTP server implements that protocol using FastAPI and, by default, running with gunicorn. Copyright 2021 Philip Couling

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

hashback-0.1a1-py3-none-any.whl (54.0 kB view hashes)

Uploaded Python 3

Supported by

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