Solved

How to backup system without turning it off?

Posted on 2004-09-29
4
279 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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

16 Experts available now in Live!

Get 1:1 Help Now