Solved

How to backup system without turning it off?

Posted on 2004-09-29
4
300 Views
Last Modified: 2010-03-18
Hi Everyone,

I have a slackware linux (kernel v2.4) and want to backup (automatic image backup) of the server periodically. Is there a way to take an automatic image backup of all system without turning it off? Any software? Thanks!

0
Comment
Question by:blacklord
4 Comments
 
LVL 14

Accepted Solution

by:
pablouruguay earned 125 total points
ID: 12178679
dd if=/dev/hda | ssh user@remotehost "gzip -9 > file.gz"
For recovery

ssh user@remotehost "cat file.gz | gunzip" | dd of=/dev/hda


this is a network partition backup.
0
 
LVL 6

Assisted Solution

by:blkline
blkline earned 125 total points
ID: 12182561
Although pablouruguay's answer will five you an image, it will be an EXACT image of the hard drive.  Should you try and restore that to a drive with a different geometry hen you may find yourself having difficulties accessing the data.  Furthermore, if the drive is of any size at all, it can take hours, if not longer, to do the save.   So backing up frequently is out of the question.

If you are interested in an image of the actual data, then I recommend that you checkout rsync (http://samba.anu.edu.au/rsync/).  It will back up only the files that have changed, and only the pieces of the files that have change.  So a 10Gb file that has had one byte changed will only cost a few bytes in transmission bandwidth.

To make it even easier, look at a Perl script that uses rsync... rsnapshot.  (http://www.rsnapshot.org).   This will enable you to have snapshot backups, for handling moments in time.    It can also execute scripts with which you can create backups of databases, should you be running any of those on the server.

Barry
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
resolv.conf empty ubuntu server 14 3 73
linux, squid server 23 56
monitor and log every file access on redhat/linux 4 124
Iptables and mirroring ports 4 85
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question