Z
Z
zikdead2017-05-02 12:56:34
linux
zikdead, 2017-05-02 12:56:34

Proper way to backup entire OS with Linux Ubuntu settings?

I have a hard 2 OS, through GRUB I choose which one to use. How to make a full backup of Linux, so that if the hard one flew, you could raise everything with all the settings?

Answer the question

In order to leave comments, you need to log in

9 answer(s)
I
Ilya Maltsev, 2017-05-02
@zikdead

clonezilla.org

B
brar, 2017-05-02
@brar

Acronis Live is the easiest and fastest way.

N
Nazar Mokrinsky, 2017-05-02
@nazarpc

Boot from a flash drive and make a binary copy of the OS partition to a file on a separate disk. You can even in graphical mode through Gnome disks.
I use BTRFS, so I take snapshots and backups directly from the running OS, but if you don’t have BTRFS, you will have to tinker a bit to transfer to a new file system.

D
dummyman, 2017-05-02
@dummyman

I usually do, rsyncbut sometimes with a partial transfer (i.e. full backup, partial unpacking) I use tar
Try it, you won't regret it:

$ man rsync
$ man tar

C
CityCat4, 2017-05-02
@CityCat4

If it's just a full-full backup, then dd. True, the backup will take the size of exactly the entire hard drive and it will be possible to restore only to a device with the same parameters. Well, or mount the image and pull out the data.
If it's a little less than full, then dump/restore
is usually enough to have a homework backup and /etc - well, also /usr/local/etc - for those who are their own installers. But for a quick recovery, it's better to have a complete image.
UPD: The comment indicates how you can compress the resulting image and send it to a remote machine. There is nothing surprising about this method - the standard UNIX mechanism for passing stdout

E
Erelecano Oioraen, 2017-05-02
@Erelecano

aidalinux.ru/w/Stage4
By analogy. Accordingly, consider only when deploying that the configs are somewhat in other places.
And so I use the stage4 gent to drag one Ubuntu between laptops with 6.06, for example. And sometimes I also carry virtual machines.

D
de1m, 2017-05-02
@de1m

We used to have a server on hetzner and they used tartarus there. I also used it there, and once I had to restore the data, everything worked out fine with the system. It is only necessary to save the subd separately.

V
Valentine, 2017-05-11
@ProFfeSsoRr

Are you sure you need a full backup of your home machine? A backup of the home folder is quite enough for me (because the message archives are there, etc.), and just a list of installed packages (more precisely, a list of software that I use at least once a year, and not a list of all packages in general). Now much can be backed up a little more cunningly - synchronization. For example, for Firefox, I have a synchronization server on another machine, and this is essentially a backup of the entire Firefox profile. Mail via IMAP - i.e. letters on the server that is being backed up, plus a local copy of the letters in the mail client is obtained. And if you look like that, many personal data can be somehow backed up like this.

R
Ref, 2017-05-14
@KargoZ

Take a look at fsarchiver. Backup both files and partitions. Of the advantages, the ability to mount archives as vd.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question