Giter Club home page Giter Club logo

bits3's Introduction

Built Status PyPI-Server

bits3

Upload Backintime snapshots to AWS S3.

Description

Back In Time is a simple backup tool for Linux, which saves your backups as normal directories on external disks or remote servers. With bits3 you can save Back In Time backups as archive on AWS S3.

The Back In Time backup directory will be packed as a tar, encrypted with a password via the Linux tool GnuPG and uploaded to AWS S3 via the official AWS SDK for Python (boto3).

This process will take a few hours for large backup directories. Thus bits3 is not for daily backup purpose, rather for creating emergency backups every few months, which can be used, if all other backups are lost.

Installation

Python3.6 or greater is required.

pip install bits3

Usage

AWS Config

You have to create a new AWS bucket first. For each backup directory you have to use a dedicated bucket!

The handling of the AWS credential is the same as in the official AWS CLI. You can use environment variables or a credentials file. Check the official documentation for more information (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html).

Run bits3

bits3 --progress --bucket <AWS_BUCKET_NAME> --secret <PASWORD_FOR_ENCRYPTION> <BACKINTIME_BACKUP_DIR>

<AWS_BUCKET_NAME> and <PASWORD_FOR_ENCRYPTION> can also be provided via environment variables:

export BITS3_BUCKET=<AWS_BUCKET_NAME>
export BITS3_SECRET=<PASWORD_FOR_ENCRYPTION>
bits3 <BACKINTIME_BACKUP_DIR>

Help

There are some more options avaialbe, check the help to get more information:

bits3 --help

All the options can also be defined as environment variables in the format BITS3_OPTIONNAME

bits3's People

Contributors

hille721 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

bits3's Issues

Not working with click 7.0.*

bits3 command is not worlink if click 7.0* is installed:

$ bits3 --help
Traceback (most recent call last):
  File "/home/hille/gitrepos/bits3/.venv/bin/bits3", line 11, in <module>
    load_entry_point('bits3', 'console_scripts', 'bits3')()
  File "/home/hille/gitrepos/bits3/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/hille/gitrepos/bits3/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/home/hille/gitrepos/bits3/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/home/hille/gitrepos/bits3/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/hille/gitrepos/bits3/src/bits3/cli.py", line 26, in <module>
    def cli(backupdir, bucket, secret, uploadintervall,
  File "/home/hille/gitrepos/bits3/.venv/lib/python3.8/site-packages/click/decorators.py", line 173, in decorator
    _param_memo(f, OptionClass(param_decls, **option_attrs))
  File "/home/hille/gitrepos/bits3/.venv/lib/python3.8/site-packages/click/core.py", line 1601, in __init__
    raise TypeError('Got secondary option for non boolean flag.')
TypeError: Got secondary option for non boolean flag.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.