S
S
Sergey2014-06-09 13:34:51
linux
Sergey, 2014-06-09 13:34:51

How do you backup on Linux Ubuntu?

There is a remote hdd.
Need a program/script to backup the entire system with the ability to quickly restore in the event of a crash.
it would not be bad if it was possible to boot from a backup ...
What can you advise?

Answer the question

In order to leave comments, you need to log in

13 answer(s)
K
Kirill, 2014-06-12
@karmis

There was an excellent article on Habré about this . rsync is configured as Time Machine. I actively use it for full / partial backup of my systems. At the same time, space on the backup server is very rationally spent.

D
dykky, 2014-06-10
@dykky

IMHO, ext2, ext3 and ext4 partitions are best backed up with the native dump utility - a backup of adequate size and the file system is restored completely, leaky files completely retain their structure.
Preparing
apt-get install dump Backup
location:
mkdir /var/sysdump
chattr +d /var/sysdump Backup
itself for each partition:

#/bin/sh

if [ 0 -ne "`date +%w`" ]; then lvl=1; else lvl=1; fi

for p in `mount -t ext2,ext3,ext4 | sed 's!/dev/!!;s! .*!!'`; do
  dump -${lvl} -a -j5 -h0  -f /var/sysdump/`date +%Y%m%d`.${p}.${lvl}.dump /dev/${p}
done

find /var/sysdump -ctime +60 -delete

Recovery via restore.

Y
yttrium, 2014-06-09
@yttrium

1. Before installing (any) OS, we "zero" the target partition
dd if=/dev/zero of=/dev/sda99
2. Then we format it into the required file system, install the OS, configure it.
3. Backup:
dd if=/dev/sda99 | gzip > /mnt/path/to/image.gz
* zeroing out for better compression

K
KOLANICH, 2014-06-09
@KOLANICH

dd+bzip2

V
Vlad Zhivotnev, 2014-06-09
@inkvizitor68sl

rdiff-backup.

G
Gadd, 2014-06-10
@Gadd

Ubuntu (12.04 at least) has a built-in deja-dup utility. Gui is available through "System Settings". It can also be used via the console.
Supports copying to folders, network services, etc.
If you just need to have a copy of a folder in backup, then you can use everything described above. From myself I will add the "synchronizer" Conduit

A
afiskon, 2014-06-13
@afiskon

Personally, I do it very simply - I store everything "in the clouds". Git repositories on Github/Bitbucket, Dropbox ( how to make yourself 30 GB for free ), mail and so on. Movies and so on, of course, there is no point in backing up, it's easier to re-download. If the laptop burns down or is stolen, recovery will take one evening.
But if you suddenly really want it on the disk, then cp -r or tar.

A
Anton, 2014-06-10
@ZombieHamster

Which of these solutions will allow you to make a full backup of a running remote server (vds) on Debian?

S
Semyon Sobolev, 2014-06-19
@PocketSam

Can use this article habrahabr.ru/post/136595 ?

S
svd71, 2014-06-09
@svd71

Install squashfs.
askubuntu.com/questions/95392/how-to-create-a-boot...

E
Evgeny Komarov, 2014-06-09
@maNULL

Acronis Backup for Linux Server

S
Semyon Voronov, 2014-06-10
@Gineaser

0. root tar
1. dd
2. Clonezilla
3. rsnapshot
help.ubuntu.ru/wiki/backup - complete answer here

S
stigory, 2014-06-11
@stigory

Let me add a slightly different perspective to this question. All my bubunts are inside virtual machines. Backup virtual machine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question