Solved

How to backup system without turning it off?

Posted on 2004-09-29
4
291 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now