Answer the question
In order to leave comments, you need to log in
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
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.
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
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
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
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.
Which of these solutions will allow you to make a full backup of a running remote server (vds) on Debian?
0. root tar
1. dd
2. Clonezilla
3. rsnapshot
help.ubuntu.ru/wiki/backup - complete answer here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question