Skip to main content

A simple backup solution that's light and portable

Project description

Simbak

Simbak is a simple backup solution that is aimed towards individuals who just want a quick and easy way to backup their files. Backups are stored as tar.gz files, so there is no dependence on any application to restore you backups.

Benefits of simbak

  • Simbak uses tar and gzip in order to store the backups, so that recovering the data in backups does not depend on simbak itself.
  • Simbak is also very light, portable, and very easy to use, meaning that there's no large application to install.
  • It's free and open source, meaning anyone can contribute or change simbak to meet their own needs.

Getting started

Installation

To install simbak you can simple use pip.

$ pip install simbak

Using simbak

Command line

You can use simbak in many ways, the fastest way would be to use the simbak command in the terminal directly.

$ simbak [...]

You can also use the simbak module itself through the python executable.

$ python3 -m simbak [...]

In Python

You can use simbak within your own python code, and you can make python scripts to use simbak (a python script is prettier than shell script).

from simbak import simbak

simbak.backup(...)

Example usages

Each of these examples will achieve the same reults. They will create a backup of /home/projects/my_project/ and /home/docs/important.txt and it will store the backup in /backups/backups and /local/backups. The backup will be a tar.gz file and it will have the name of important--yyyy-mm-dd--hh-mm-ss, the time is stamped at the end of the backup to ensure the file is unique and not conflicting with other backups.

Python script example

# backup.py

from simbak import simbak

simbak.backup(
    sources=[
        "/home/projects/my_project/",
        "/home/docs/important.txt",
    ],
    destinations=[
        "/local/backups/",
        "/remote/backups/",
    ],
    name="important"
)

You can then run this script through the terminal python backup.py.

Bash script example

Note: I am using a backslash at the end of each line in order to have a command spread across multiple lines, this helps readability.

# backup.bash

simbak \
    --source \
        "/home/projects/my_project/" \
        "/home/docs/important.txt" \
    --destination \
        "/local/backups/" \
        "/remote/backups/" \
    --name "important"

Terminal

Using simbak directly in the terminal isn't recommended unless you are backing up one directory or file to one location, as you can see the lines can get quite line.

$ simbak -s "/home/projects/my_project/" "/home/docs/important.txt" -d "/local/backups/" "/remote/backups/" --name "important"

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

simbak-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

simbak-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file simbak-0.1.0.tar.gz.

File metadata

  • Download URL: simbak-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for simbak-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9c9656f9f29d77a9b58fb266f7bdfb2b7f5f7952f3f122fc0af1fe2912e51a3
MD5 1ea6c28b1977eaffc940ba552986a37f
BLAKE2b-256 c34da96bd0256e982f721da1d0a3a75f87801849d215301adff21819022f74d0

See more details on using hashes here.

File details

Details for the file simbak-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: simbak-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for simbak-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67e7eb5348d6062f67280d8db6ce0314ec390280fcc5d81555ecb1f9e575fc1a
MD5 4bb54699aa326091eb3048ef47c8f5d9
BLAKE2b-256 2b936ce6aa5eb4acedbebeaea751bceffff67837b12c8bcb24d1e4abe7c4ecae

See more details on using hashes here.

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