All Projects → wamdam → Backy2

wamdam / Backy2

Licence: other
backy2: Deduplicating block based backup software for ceph/rbd, image files and devices

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Backy2

Cv4pve Barc
Backup And Restore Ceph for Proxmox VE
Stars: ✭ 74 (-41.27%)
Mutual labels:  backup, ceph, snapshot
Bareos
Main repository with the code for the libraries and daemons
Stars: ✭ 651 (+416.67%)
Mutual labels:  postgresql, backup, ceph
Backup
Easy full stack backup operations on UNIX-like systems.
Stars: ✭ 4,682 (+3615.87%)
Mutual labels:  postgresql, backup
Btrbk
Tool for creating snapshots and remote backups of btrfs subvolumes
Stars: ✭ 605 (+380.16%)
Mutual labels:  backup, snapshot
Pghoard
PostgreSQL backup and restore service
Stars: ✭ 1,027 (+715.08%)
Mutual labels:  postgresql, backup
Pg probackup
Backup and recovery manager for PostgreSQL
Stars: ✭ 383 (+203.97%)
Mutual labels:  postgresql, backup
Gobackup
🗄 Simple tool for backup your databases, files to FTP / SCP / S3 storages.
Stars: ✭ 472 (+274.6%)
Mutual labels:  postgresql, backup
Pgbackrest
Reliable PostgreSQL Backup & Restore
Stars: ✭ 766 (+507.94%)
Mutual labels:  postgresql, backup
aws-backup-lambda
A utility AWS lambda function to manage EBS and RDS snapshot backups.
Stars: ✭ 60 (-52.38%)
Mutual labels:  backup, snapshot
Backintime
Back In Time - A simple backup tool for Linux
Stars: ✭ 1,066 (+746.03%)
Mutual labels:  backup, snapshot
Agent
The best way to backup and restore your database
Stars: ✭ 80 (-36.51%)
Mutual labels:  postgresql, backup
Zrepl
One-stop ZFS backup & replication solution
Stars: ✭ 327 (+159.52%)
Mutual labels:  backup, snapshot
Wal E
Continuous Archiving for Postgres
Stars: ✭ 3,313 (+2529.37%)
Mutual labels:  postgresql, backup
Django Dbbackup
Management commands to help backup and restore your project database and media files
Stars: ✭ 471 (+273.81%)
Mutual labels:  postgresql, backup
cephgeorep
An efficient unidirectional remote backup daemon for CephFS.
Stars: ✭ 27 (-78.57%)
Mutual labels:  backup, ceph
Btrfs Sxbackup
Incremental btrfs snapshot backups with push/pull support via SSH
Stars: ✭ 105 (-16.67%)
Mutual labels:  backup, snapshot
terraform-aws-efs-backup
Terraform module designed to easily backup EFS filesystems to S3 using DataPipeline
Stars: ✭ 40 (-68.25%)
Mutual labels:  backup, snapshot
esop
Cloud-enabled backup and restore tool for Apache Cassandra
Stars: ✭ 40 (-68.25%)
Mutual labels:  backup, ceph
Barman
Barman - Backup and Recovery Manager for PostgreSQL
Stars: ✭ 1,044 (+728.57%)
Mutual labels:  postgresql, backup
Pitrery
PostgreSQL Point In Time Recovery made easy
Stars: ✭ 99 (-21.43%)
Mutual labels:  postgresql, backup

What is backy2? ###############

backy2 is a deduplicating block based backup software which encrypts and compresses by default.

The primary usecases for backy are:

  • fast and bandwidth-efficient backup of ceph/rbd virtual machine images to S3 or NFS storage
  • backup of LVM volumes (e.g. from personal computers) to external USB disks

Main features

Small backups backy2 deduplicates while reading from the block device and only writes blocks once if they have the same checksum (sha512).

Compressed backups backy2 compresses all data blocks with respect to performance with the zstandard library.

Encrypted backps All data blocks are encrypted by default. Encryption is managed in integer versions, migration and re-keying procedures exist.

Fast backups With the help of ceph's rbd diff, backy2 will only read the changed blocks since the last backup. We have virtual machines with 600GB backed up in about 30 seconds with <70MB/s bandwidth.

Continuable backups and restores If the data backend storage is unreliable (as in storage, network, …) and backups or restores can't finish, backy2 can continue them when the outage has ended.

Small required bandwidth to the backup target As only changed blocks are written to the backup target, a small (i.e. gbit) connection is sufficient even for larger backups. Even with newly created block devices the traffic to the backup target is small, because these block devices usually are full of \0 and are deduplicated before even reaching the target storage.

As simple as cp, but as clever as backup needs to be With a very small set of commands, good --help and intuitive usage, backy2 feels mostly like cp. And that's intentional, because we think, a restore must be fool-proof and succeed even if you're woken up at 3am and are drunk.

And it must be hard for you to do stupid things. For example, existing
files or rbd volumes will not be overwritten unless you ``--force``,
deletion of young backups will fail per default.

Scrubbing with or without source data against bitrod and other data loss Every backed up block keeps a checksum with it. When backy scrubs the backup, it reads the block from the backup target storage, calculates it's checksum and compares it to the stored checksum (and size). If the checksum differs, it's most likely that there was an error when storing or reading the block, or by bitrod on the backup target storage.

Then, the block and the backups it belongs to, are marked 'invalid' and the
block will be re-read for the next backup version even if ``rbd diff`` indicates
that it hasn't been changed.

Scrubbing can also take a percentage value for how many blocks of the backup
it should scrub. So you can statistically scrub 16% each day and have a
full scrub each week (16*7 > 100).

.. NOTE:: Even invalid backups can be restored!

Fast restores With supporting block storage (like ceph/rbd), a sparse restore is possible. This means, sparse blocks (i.e. blocks which "don't exist" or are all \0) will be skipped on restore.

Parallel: backups while scrubbing while restoring As backy2 is a long-running process, you will of course not want to wait until something has finished. So there are very few places in backy where a global lock will be applied (especially on a very rarely used full cleanup which you can kill at any time to release the lock).

So you can scrub, backup and restore (multiple times each) on the same
machine.

Does not flood your caches When reading large pieces of data on linux, often buffers/caches get filled with this data (which in case of backups is essentially only needed once). backy2 instructs linux to immediately forget the data once it's processed.

Backs up very large volumes RAM- and CPU efficiently We backup multiple terabytes per vm (and this multiple times per night). backy2 typically runs in <1GB of RAM with these volume sizes. RAM usage depends mostly on simultaneous reads/writes which are configured through backy.cfg. We have seen ~16GB of RAM usage with large configured queues for 200TB images and a backup performance of Ø350MB/s to an external s3 storage.

backups can be directly mounted backy2 brings it's own fuse service. So a simple linux command makes backups directly mountable - even on another machine::

    [email protected]:~# backy2 fuse /mnt

And on another terminal::

    [email protected]:~# ls -la /mnt/by_version
    drwx------ 0 root root 0 Mai  3 16:14 0c44841a-8d47-11ea-8b2d-3dc6919c2aca
    drwx------ 0 root root 0 Mai  3 16:14 60ae794e-8d46-11ea-8b2d-3dc6919c2aca
    drwx------ 0 root root 0 Mai  3 16:14 9d8cfe80-8d46-11ea-8b2d-3dc6919c2aca

    [email protected]:~# ls -la /mnt/by_version_uid/9d8cfe80-8d46-11ea-8b2d-3dc6919c2aca
    -rw------- 1 root root 280M Mai  3 14:01 data
    -rw------- 1 root root    0 Mai  3 14:01 expire
    -rw------- 1 root root    9 Mai  3 14:01 name
    -rw------- 1 root root    0 Mai  3 14:01 snapshot_name
    -rw------- 1 root root   51 Mai  3 14:01 tags
    -rw------- 1 root root    5 Mai  3 14:01 valid

    [email protected]:~# cat /mnt/by_version_uid/9d8cfe80-8d46-11ea-8b2d-3dc6919c2aca/name
    sometest1

    [email protected]:~# mount /mnt/by_version_uid/9d8cfe80-8d46-11ea-8b2d-3dc6919c2aca/data /mnt

You get the idea. The data file (and resulting partitions, mounts) read/write!
Writing to them will write to a temporary local file. The original backup version
is *not* modified!
This means, you may even boot a VM from this file from a remote backup.

Automatic tagging of backup versions You can tag backups with your own tags depending on your usecase. However, backy2 also tags automatically with these tags::

    b_daily
    b_weekly
    b_monthly

It has a clever algorithm to detect how long the backup for any given image
and this tag is ago and then tags again with the given tag. So you'll see
a b_weekly every 7 days (if you keep these backups).

Prevents you from doing something stupid By providing a config-value for how old backups need to be in order to be able to delete them, you can't accidentially delete very young backups.

Also, with ``backy protect`` you can protect versions from being deleted.
This is very important when you need to restore a version which is suspect
to be deleted within the next hours. During restore a lock will prevent
deletion, however, by protecting it, it cannot be deleted until you decide
that it's not needed anymore.

Also, you'll need ``--force`` to overwrite existing files or volumes.

Easy installation Currently under ubuntu 18.04, you simply install the .deb. Please refer to :ref:installation for a detailed install process.

Free and Open Source Software Anyone can review the source code and audit security and functionality. backy2 is licensed under the LGPLv3 license (:ref:license).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].