S
S
Sergey Evstifeev2015-04-19 02:49:20
linux
Sergey Evstifeev, 2015-04-19 02:49:20

On-the-fly Linux backup system analog of Acronis?

Good day!
Tell me if there is a backup system for the entire disk for linux without shutting down the server. An analogue of Acronis true image and others like it. So that after the failure of the system disk, you can insert a new disk into the server and deploy from the backup. so to speak, to make casts of the hard disk.
Now I'm using rsync via cron.

#!/bin/sh
date=`date "+%Y-%m-%d-%H%M%S"`
SRC=/
DST=/mnt/backup-server-hdd/Backups.backupdb/atv

rsync -axz \
--delete \
--link-dest=../Latest \
$SRC [email protected]:$DST/Processing-$date \
&& ssh [email protected] \
«cd $DST \
&& mv Processing-$date $date \
&& rm -f Latest»
&& ln -s $date Latest"

Taken here
Thanks in advance.
UPD. as an option I consider DD
something like
# dd if=/dev/sda | of=/bacup_dir/DEVICE.img".
But there are problems:
1. The size of a snapshot is equal to the size of the HDD, and for 1 TB HDD there can be only 200 GB of data.
2. Unable to expand a snapshot on a smaller disk.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sim3x, 2015-04-19
@sim3x

RAID{1,5,6}
LVM snapshot
dd-like unix.stackexchange.com/a/138081
https://github.com/libguestfs/nbdkit/blob/master/d...

dd if=/dev/hdaX | gzip -c -9 | ssh [email protected]_server dd of=/dest/path/hdaX.img.gz

N
Nazar Mokrinsky, 2015-04-19
@nazarpc

BTRFS file system and file system snapshots. It works much faster than rsync, incremental backups can be done, the file system is backed up, and not files with all the ensuing advantages.
If you backup using DD without installation, you will get anything, but not a normal backup.

Z
zorruch, 2015-04-19
@zorruch

Look towards ZFS (similar to BTRFS but with goodies in the form of sending snapshots over the network and more stable).
I have all the virtual machines backed up this way (the root partition did not backup in this way, but the theory is possible)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question