Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
differential backup tool for block devices and files
Perl Shell
tree: 4ba4819033

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
blockdiff_dump.c
blockdiff_merge.c
lvmbackup
ssh_blockdiff_dump
ssh_lvm_dump

README

BLOCKDIFF - a differential backup tool for block devices and files

COMPILE

@server# gcc -Wall -g -o blockdiff_dump blockdiff_dump.c -lcrypto
@server# gcc -Wall -g -o blockdiff_merge blockdiff_merge.c

FULL BACKUP

@client# ssh root@server lvmbackup /dev/.../lv_name 1 | gzip > lv_name.1.gz

INCREMENTAL BACKUPS

@client# ssh root@server lvmbackup /dev/.../lv_name 2 1 | gzip > lv_name.2.gz

@client# ssh root@server lvmbackup /dev/.../lv_name 3 2 | gzip > lv_name.3.gz

@client# ssh root@server lvmbackup /dev/.../lv_name 4 3 | gzip > lv_name.4.gz

RESTORE

@server# for i in lv_name.*.gz; do
>   gunzip < $i | blockdiff_merge /dev/..lv_name
> done

Something went wrong with that request. Please try again.