A simple backup solution that's light and portable
Project description
Simbak
For a detailed outline of simbak, visit the wiki.
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
Terminal
You can use simbak in many ways, the fastest way would be to use the
simbak
command in the terminal directly, this will perform a normal
backup, use $ simbak --help
to see your options.
$ simbak [...]
You can also use the simbak module itself through the python executable.
$ python3 -m simbak [...]
Python script
You can use simbak within your own python code, and you can make python scripts to use simbak (a python script can be prettier than shell script).
import simbak
# This will perform a normal backup.
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 /remote/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
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 using
$ python3 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 example
Using simbak directly in the terminal isn't recommended unless you are backing up one directory or file to one location for a one time occurrence, as you can see the lines can get quite long.
$ simbak -s "/home/projects/my_project/" "/home/docs/important.txt" \
> -d "/local/backups/" "/remote/backups/" \
> --name "important"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file simbak-0.3.0.tar.gz
.
File metadata
- Download URL: simbak-0.3.0.tar.gz
- Upload date:
- Size: 9.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18c41c193ad18e251aaf7dda1be024e66d023576827d547da1f7ae717de0ea83 |
|
MD5 | 32c529c984786ca02314e34c9fbca9b7 |
|
BLAKE2b-256 | a4d2ebd70a8b3c0fe59f6418206808f67c53e065faa72a66e1410c1aacc7e9de |
File details
Details for the file simbak-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: simbak-0.3.0-py3-none-any.whl
- Upload date:
- Size: 11.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffbdb8096467c31d875b6543d7bb947cfd2eaffe5c8d3ce0b440d15e4ed1c597 |
|
MD5 | b15e0d433512415f9471aa9d8bfcb972 |
|
BLAKE2b-256 | 7e9735565e5a8071fca4c2f97d2718e95d84681d90b2dd3c59995cb77276eeda |