Solved

How to backup system without turning it off?

Posted on 2004-09-29
4
319 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LDAP setup? 9 92
Linux neworking 4 141
Remote desktop Ubuntu from Windows 10 5 159
grep command usage 10 28
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

732 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