Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
differential backup tool for block devices and files
Perl Shell
Tree: 0ac4eb0bf5

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

README

BLOCKDIFF - a differential backup tool for block devices and files


COMPILE

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


FULL BACKUP

# blockdiff_dump < file_to_backup 6> backup.md5 | gzip > backup.img


INCREMENTAL BACKUPS

# blockdiff_dump < file_to_backup 5< backup.md5 6> backup.2.md5 | gzip > backup.2.img
# blockdiff_dump < file_to_backup 5< backup.2.md5 6> backup.3.md5 | gzip > backup.3.img
...


REMOTE BACKUP (HIGH LEVEL, INCREMENTAL)

# blockdiff_backup backup-name ssh_blockdiff_dump -z root@host file_to_backup
# blockdiff_backup backup-name ssh_blockdiff_dump -z root@host file_to_backup
# blockdiff_backup backup-name ssh_blockdiff_dump -z root@host file_to_backup
...


REMOTE BACKUP (LOW ELVEL)

# ssh_blockdiff_dump -z root@host file_to_backup 6> backup.md5 > backup.img.gz
# ssh_blockdiff_dump -z root@host file_to_backup 5< backup.md5 6> backup.2.md5 > backup.2.img.gz
# ssh_blockdiff_dump -z root@host file_to_backup 5< backup.2.md5 6> backup.3.md5 > backup.3.img.gz
...


REMOTE LVM BACKUP (HIGH LEVEL, INCREMENTAL)

# blockdiff_backup backup-name ssh_lvm_dump -z root@host
# blockdiff_backup backup-name ssh_lvm_dump -z root@host
# blockdiff_backup backup-name ssh_lvm_dump -z root@host
...


REMOTE LVM BACKUP (LOW LEVEL)

# ssh_lvm_dump -z root@host volume_path 6> backup.md5 > backup.img.gz
# ssh_lvm_dump -z root@host volume_path 5< backup.md5 6> backup.2.md5 > backup.2.img.gz
# ssh_lvm_dump -z root@host volume_path 5< backup.2.md5 6> backup.3.md5 > backup.3.img.gz


RESTORE

@server# for i in `ls backup.*`; do
>   blockdiff_merge /dev/..lv_name < $i
> done
Something went wrong with that request. Please try again.