<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>nixCraft Linux / UNIX / Shell Scripting Forum - Backup And Recovery</title>
		<link>http://nixcraft.com/</link>
		<description>Dissuasion about backup and recovery, which is one of the most important aspects of UNIX, Linux and database administration.</description>
		<language>en</language>
		<lastBuildDate>Mon, 20 May 2013 17:59:01 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://nixcraft.com/images/misc/rss.png</url>
			<title>nixCraft Linux / UNIX / Shell Scripting Forum - Backup And Recovery</title>
			<link>http://nixcraft.com/</link>
		</image>
		<item>
			<title>Need some assistance with creating an incremental backup/disaster strategy</title>
			<link>http://nixcraft.com/backup-recovery/19702-need-some-assistance-creating-incremental-backup-disaster-strategy.html</link>
			<pubDate>Thu, 16 May 2013 16:37:11 GMT</pubDate>
			<description>Hi guys, 
 
I need a little help with developing a reliable backup protocol and disaster strategy. 
 
I have recently taken a position with a...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div><!-- google_ad_section_start -->Hi guys,<br />
<br />
I need a little help with developing a reliable backup protocol and disaster strategy.<br />
<br />
I have recently taken a position with a start-up company, as web developer (Drupal site). However I am now in charge of <b>all</b> IT-related matters lol.<br />
My predecessors (students who quickly built a 'functioning site') have not configured the server (CentOS VPS) in any way...nothing....I even had to deal with a server take-over in my first week as there were no security measures set up and all passwords were changed (including root) - luckily the first thing I did was set up SSH keys!<br />
<br />
Anyway, I need to develop a reliable backup/recovery system. Please note that this is a start-up with very limited funding and only one VPS. I have purchased an additional 'backup drive' with our hosting provider that I can access via NFS and mounted to '/mnt/backup'<br />
I need to backup the usual stuff on the VPS (www, configs, etc.).<br />
<br />
I have so far come up with the following:<br />
- backup to '/backup/snapshots' using <b>rsnapshot</b> (6 hourly | 7 daily | 4 weekly | 3 monthly)<br />
- <b>upcp</b> (cPanel) backup to '/backup/cpanel'<br />
- <b>tar -cavPf</b> /mnt/backup/$(date '+&amp;#37;A').tar /backup --overwrite (to create a daily archive of the entire backup directory and move it to the 'backup drive')<br />
- rsync (over SSH) the /mnt/backup/$(date '+%A').tar archive of that day, to my local machine<br />
- ....finally (once we can afford a NAS) rsync the /mnt/backup/$(date '+%A').tar each day to the FreeNAS (with RAID)<br />
<br />
<b>EDIT: </b>I have rsnapshot backing up the following directories (/etc , /home , /root , /usr , /var )<br />
<br />
Does anybody foresee any issues with this configuration?<br />
I realise that this is not a bare metal/image copy but with out limited resources it is the best I could come up with.<br />
<br />
One thing I am concerned about is the overall size of the '/backup' directory and each daily archive stored under '/mnt/backup' .<br />
At the minute <u>just one</u> rsnapshot backup takes <b>5.6GB.<br />
</b>With the setup I have planned we will end up with each daily archive being:<br />
<br />
5.6GB x 6 (hourly) [+ incremental changes] = 33.6GB<br />
+<br />
5.6GB x 7 (daily) [+ incremental changes] = 39.2GB<br />
+<br />
5.6GB x 4 (weekly) [+ incremental changes] = 22.4GB<br />
+<br />
5.6GB x 3 (monthly) [+ incremental changes] = 16.8GB<br />
<br />
Which will total <b>112GB </b>per archive of just rsnapshot backups (and there will be an archive for each day = 784GB !)<br />
<br />
......................<br />
<br />
1. Should I do away with the daily tar backup to '/mnt/backup' and simply use rsnapshot to output backups to both /backup and /mnt/backup?<br />
<br />
2. Is there any way to configure rsnapshot to use (for example) hourly.0 as the base and every hourly.# after that be<b>only </b>an increment, instead of creating a base for each schedule backup (ie hourly.0-5)<!-- google_ad_section_end --></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://nixcraft.com/backup-recovery/">Backup And Recovery</category>
			<dc:creator>s2s-admin</dc:creator>
			<guid isPermaLink="true">http://nixcraft.com/backup-recovery/19702-need-some-assistance-creating-incremental-backup-disaster-strategy.html</guid>
		</item>
	</channel>
</rss>
