<?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>InstaCarma Blog &#187; backup</title>
	<atom:link href="http://www.instacarma.com/blog/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.instacarma.com/blog</link>
	<description>Information Resource for Web Hosting Technical Support and Server Management</description>
	<lastBuildDate>Tue, 24 May 2011 10:01:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Script for restoring multiple accounts from backup</title>
		<link>http://www.instacarma.com/blog/technical/script-for-restoring-multiple-accounts-from-backup/</link>
		<comments>http://www.instacarma.com/blog/technical/script-for-restoring-multiple-accounts-from-backup/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 20:24:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1002</guid>
		<description><![CDATA[Filed under: backup, script The following script can be used to restore multiple accounts from the backups. It is assumed that all the backup files are already present in the /home directory in the tar.gz format. #!/bin/bash ####################### for i in `ls &#124; grep tar.gz &#124; cut -d- -f2 &#124; cut -d. -f1` do echo [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/script/'>script</a></p>
<p>The following script can be used to restore multiple accounts from the backups.</p>
<p>It is assumed that all the backup files are already present in the <em>/home</em> directory in the tar.gz format.</p>
<blockquote><p>#!/bin/bash</p>
<p>#######################<br />
for i in `ls | grep tar.gz | cut -d- -f2 | cut -d. -f1`<br />
do<br />
echo &#8220;Restoring $i&#8230;.&#8221;<br />
/scripts/restorepkg $i<br />
echo &#8220;$i restored&#8221;<br />
echo &#8220;====================&#8221;<br />
done<br />
echo &#8220;Restoration completed&#8221;<br />
#######################</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/script-for-restoring-multiple-accounts-from-backup/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/script-for-restoring-multiple-accounts-from-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database backup generates an empty file</title>
		<link>http://www.instacarma.com/blog/technical/database-backup-generates-an-empty-file/</link>
		<comments>http://www.instacarma.com/blog/technical/database-backup-generates-an-empty-file/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 17:06:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=857</guid>
		<description><![CDATA[Filed under: backup, cPanel, Mysql Issue : After downloading a database backup through cPanel (Download a MySQL database back-up) , the tar file generated is empty! Solution : This usually happens when you are logged in to cPanel with the root/reseller password. Log in with the user password and then try to take a back-up. [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a></p>
<p><strong>Issue : </strong></p>
<p>After downloading a database backup through cPanel (Download a MySQL database back-up) , the tar file generated is empty!</p>
<p><strong>Solution : </strong></p>
<p>This usually happens when you are logged in to cPanel with the root/reseller password. Log in with the user password and then try to take a back-up. That should work.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/database-backup-generates-an-empty-file/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/database-backup-generates-an-empty-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InstaCarma doubles the power back-up capacity</title>
		<link>http://www.instacarma.com/blog/company-updates/instacarma-doubles-the-power-back-up-capacity/</link>
		<comments>http://www.instacarma.com/blog/company-updates/instacarma-doubles-the-power-back-up-capacity/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 20:38:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Company Updates]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=835</guid>
		<description><![CDATA[Filed under: backup, power, update In its bid to continue providing uninterrupted quality services to its esteemed clients, InstaCarma installed a brand new genset over the weekend. The company has been scaling well in the recent past. Foreseeing the potential problems which might arise as a result of this, InstaCarma added a new-age 25KVA brushless [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/power/'>power</a>, <a href='http://www.instacarma.com/blog/tag/update/'>update</a></p>
<p>In its bid to continue providing uninterrupted quality services to its esteemed clients, <strong>InstaCarma</strong> installed a brand new genset over the weekend.</p>
<p>The company has been scaling well in the recent past. Foreseeing the potential problems which might arise as a result of this, InstaCarma added a new-age <strong>25KVA brushless AC generator</strong> to its power back-up facility. Besides higher capacity, the generator is eco-friendly and produces very little noise. Addition of this diesel genset has increased the total capacity of the facility to 50 KVA.</p>
<p><div id="attachment_836" class="wp-caption aligncenter" style="width: 310px"><img src="http://instacarma.com/blog/wp-content/uploads/2009/09/dsc00778-300x225.jpg" alt="25KVA brushless AC generator" title="25KVA brushless AC generator" width="300" height="225" class="size-medium wp-image-836" /><p class="wp-caption-text">25KVA brushless AC generator</p></div><br />
This has enabled InstaCarma to tackle any power crisis and continue providing the high quality services for which it is known since 2003. It has several clients across the globe who in turn cater to the needs of thousands of customers. This measure will help InstaCarma to avoid customer dissatisfaction due to disrupted services.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/company-updates/instacarma-doubles-the-power-back-up-capacity/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/company-updates/instacarma-doubles-the-power-back-up-capacity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic backups using SSH</title>
		<link>http://www.instacarma.com/blog/technical/automatic-backups-using-ssh/</link>
		<comments>http://www.instacarma.com/blog/technical/automatic-backups-using-ssh/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 16:22:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=758</guid>
		<description><![CDATA[Filed under: backup, ssh Issue : How to go about setting up backups using SSH so that backups of every account are uploaded automatically from server1 to server2 ? Solution : 1. Make SSH password less (key based) from destination to source. 2. Run a rsync from destination to get files from source. 3. Set [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/ssh/'>ssh</a></p>
<p><strong>Issue : </strong></p>
<p>How to go about setting up backups using SSH so that backups of every account  are uploaded automatically  from server1 to server2 ?</p>
<p><strong>Solution : </strong></p>
<p>1. Make SSH password less (key based) from destination to source.</p>
<p>2. Run a <em>rsync</em> from destination to get files from source.</p>
<p>3. Set it as a cron every night according to the server load.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/automatic-backups-using-ssh/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/automatic-backups-using-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error while restoring cPanel backup</title>
		<link>http://www.instacarma.com/blog/technical/error-while-restoring-cpanel-backup/</link>
		<comments>http://www.instacarma.com/blog/technical/error-while-restoring-cpanel-backup/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 18:07:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=715</guid>
		<description><![CDATA[Filed under: backup, cPanel Error : Sorry, a group for that username already exists. Fix : User account related information is stored in /etc/passwd, /etc/shadow and /etc/group files . Check all of them and remove the entries. You can remove the group by using: groupdel groupname And then restore the account. You can also restore [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a></p>
<p><strong>Error : </strong></p>
<p><em>Sorry, a group for that username already exists.</em></p>
<p><strong>Fix : </strong></p>
<p>User account related information is stored in <em>/etc/passwd</em>, <em>/etc/shadow</em> and <em>/etc/group </em>files . Check all of them and remove the entries.</p>
<p>You can remove the group by using:</p>
<blockquote><p>groupdel groupname</p></blockquote>
<p>And then restore the account.</p>
<p>You can also restore the account forcefully by using : </p>
<blockquote><p>/scripts/restorepkg &#8211;force username</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/error-while-restoring-cpanel-backup/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/error-while-restoring-cpanel-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial on clearing  Disk Space on a Server</title>
		<link>http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/</link>
		<comments>http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/#comments</comments>
		<pubDate>Sun, 24 May 2009 13:47:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles and tutorials]]></category>
		<category><![CDATA[Popular Posts]]></category>
		<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=375</guid>
		<description><![CDATA[Filed under: apache, backup, cPanel, disk, exim, Mysql, space Running out of disk space is a very common issue.  Be it a web-hosting service provider or the end-user.  I wanted to share a few tips that the technical support staff  at InstaCarma use to resolve disk-space issues on a cPanel server. As we all know, [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/apache/'>apache</a>, <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/disk/'>disk</a>, <a href='http://www.instacarma.com/blog/tag/exim/'>exim</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/space/'>space</a></p>
<p>Running out of disk space is a very common issue.  Be it a <strong>web-hosting </strong>service provider or the end-user.  I wanted to share a few tips that the<strong> technical support</strong> staff  at <strong>InstaCarma</strong> use to resolve disk-space issues on a <strong>cPanel</strong> server. As we all know, there are various partitions on a server which are meant for different purposes. So, the methods used to deal with space issues on these partitions will also vary. Let us see them one by one.</p>
<p>The <strong>/USR</strong> partition</p>
<p>1. Restart the<strong><em> httpd</em></strong> service. This might free a little space some times.</p>
<p>2. Check for <strong><em>apache logs</em></strong> like error_log, access_log , suexec_log in <em>/usr/local/apache/logs</em> . These can either be cleared off or if you need the logs then you can take a zipped copy and keep it aside.</p>
<p>3. Same can be done for the files in<em> <strong>cPanel logs</strong></em> (<em>/usr/local/cpanel/logs</em>)  as well .</p>
<p>4. <strong><em>Domlogs</em></strong> &#8211; Get into  the <em>/usr/local/apache/domlogs/</em> directory. Run the following command :-</p>
<p># ls -al -SR | head -10        &#8212;&gt; It will list 10 files in the decreasing order according to their size</p>
<p>If the domlog file is too large for a domain then it is possible that <em>awstats</em> is not running . Check whether <em>cpanellogd</em> is running on the server  using <em> pstree</em> . If not, restart it .<br />
Else, it is possible that awstats for only that particular domain is not updating. Get into the directory <em>/usr/local/cpanel/base</em> and check if any file as &#8216;awstats.domainname.com.conf&#8217; exists.   If yes , delete that file.</p>
<p>Now,  run <em>/scripts/runweblogs</em> for that user.  It will update the awstats and automatically clear the domlogs file thereafter.<strong> Do not</strong> delete the domlogs file itself.</p>
<p>5. Remove old and unwanted backups of  &#8216;apache&#8217;  that might have been taken long ago. Also, check for any other duplicate folders that can be removed safely.</p>
<p>6. Remove<strong> core files, </strong>if any . Normally, some core files (like core.1234) might be present in<em> /usr/local/cpanel/whostmgr/docroot</em> . Check for these and remove them.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The <strong>/HOME</strong> partition</p>
<p>1.  Check for unwanted cpmove/tar files for the user accounts in <em>/home</em> and delete them.</p>
<p>2.  Check for any cpmove folders as well in <em>/home</em></p>
<p>3.  Check the folder &#8216;cprestore&#8217;  in <em>/home</em> for any tar files. Be careful. These should  be deleted only if they are very old,say about 4-5 months.</p>
<p>4. Using <em>find</em> command you can check for unwanted tar files(especially cpmove/backup) in the entire home directory. Check their size. If you think that deleting them will  make considerable difference to the disk space then delete them.</p>
<p>5. Check for core files and delete them.</p>
<p>6.  Search for large accounts and see if they are hosting any prohibited content or violating your company policies. If yes, take appropriate measures as per your policies.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The <strong>/VAR</strong> partition</p>
<p>1. Restart the <strong>mysql</strong> service.</p>
<p>2. Log files in <em>/var/log </em>like exim_mainlog, mailmon.log, messages, mysqld.log, mysql_slow_queries.log  can be deleted after taking backups of the required ones..</p>
<p>Note that there is no point in deleting these log files if the size is very small. Check whether deleting these would make any difference.</p>
<p>If you are deleting them then do <strong>re-create</strong> the files, or you can use the command &#8216;echo &#8221; &#8221; &gt; logfile&#8217; to empty the existing files.</p>
<p>3.  Clear Mysql logs like server-name.err or any other  present  in <em>/var/lib/mysql</em></p>
<p>4. Delete mysql-bin.000* file  in <em>/var/lib/mysql</em>, if present.</p>
<p>5. There might be useless large .sql files   in <em>/var/lib/mysql</em> . Delete them.</p>
<p>6.  Remove unwanted emails from spool. You can use the following code to do that :</p>
<blockquote><p>exim -bpc<br />
exim -bpru | grep frozen | awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exim -bpru | grep &#8220;&lt;&gt;&#8221; | awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exim -bpru | grep &#8220;nobody&#8221; | awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exim -bpru|awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exiqgrep -o 86400 -i | xargs exim -Mrm<br />
exim -bpc</p></blockquote>
<p>7. There might be yum cache files inside the <em>/var/cache</em> folder which can take space. To remove them do:<br />
#  yum clear all<br />
#  yum list all</p>
<p>8. Again, search for any core files ( core dump ) like core.12* etc.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The <strong>/BACKUP</strong> partition</p>
<p>1. Remove any tar/cpmove files if they are too old and large.</p>
<p>2. Remove any old  configuration backups ( like apache.bkp) or any log file backup , say 3-4 months old.</p>
<p>3. Check for core files and remove them.</p>
<p>These are some of the general steps that can be followed to deal with space issues on the servers.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CDP &#8211; Continuous Data Protection</title>
		<link>http://www.instacarma.com/blog/technical/cdp-continuous-data-protection/</link>
		<comments>http://www.instacarma.com/blog/technical/cdp-continuous-data-protection/#comments</comments>
		<pubDate>Fri, 22 May 2009 19:44:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles and tutorials]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[CDP]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=354</guid>
		<description><![CDATA[Filed under: backup, CDP Backup is the activity of copying files or databases to a disk or tape so that these may be used to restore the original after a data loss. It is always advised to keep one backup in a different location from the others. Why do you need a backup ? Data [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/cdp/'>CDP</a></p>
<p><strong>Backup</strong> is the activity of copying files or databases to a disk or tape so that these may be used to restore the original after a data loss. It is always advised to keep one backup in a different location from the others.</p>
<p><em>Why do you need a backup ?</em></p>
<p>Data is one of the most important aspects of our computer systems and the probability of a failure is lower these days due to upcoming technologies. A data loss can occur due to hardware failure, software bugs and natural calamity so being a smart user, one should go for data backup which is cheap, fast and a prevalent way of saving data. And since backups can be stored in<br />
different locations from the original data, it is safe from a any natural calamities.</p>
<p><em>What is CDP?</em></p>
<p><strong>Continuous Data Protection</strong> or rather a <strong>CDP</strong> Server is a server software application enabled in servers running Windows and Linux operating systems for disk-based data protection and disaster recovery.The idea behind CDP was to change the approach to backup solution which was a switch from tape-based system to hd-based system that is less complex and less expensive, with the opportunity to handle better backup images.</p>
<p>The disk-based storage protects the disk volume data by syncronising point-in-time snapshots (a read-only copy of the data set frozen at a point in time and allow applications to continue writing to their data. This is mainly performed in high-availability systems where downtime is not acceptable) over the network. Instead of scheduling periodic backups, the system immediately logs every change on the host system.</p>
<p>Now , a point-in-time snapshot of the disk is created by a Linux command line utility Hot Copy (hcp), without interrupting applications on the Linux servers, while the system is running. If any block level changes are made to the device, Hot Copy makes a backup copy of the changed blocks only.</p>
<p><em>Rsync backups</em></p>
<p><strong>Rsync</strong> over SSH ,which ensures all data transferred has the benefit of being secure, is an ideal method for incremental backup of large number of files. In this process, it copies only the files, preserving file permissions, links and other data, that has been changed since the last backup or sync was made which saves time and bandwidth. This makes restoration of data very onto a<br />
new server very simple.</p>
<p><em>How to Restore Data</em>?</p>
<p>At a particular point-in-time, the recovery point stored on the CDP server is virtually a disk image and each disk image has the file system format, partition table and volume management data required to rebuild the entire disk. You need to boot the server into a special disaster recovery mode incase of disaster or quick roll-back of Linux/Windows servers. Once its booted into the recovery mode, you can stream a recovery point directly onto your server hard disk from the CDP server over any TCP/IP network.</p>
<p><em>Advantages of CDP </em></p>
<p>*  Near-Continuous Backups, providing hundreds of recovery points per day scheduled as little as 5 or 10 minutes apart<br />
* It is Resource-friendly and the processor usage and bandwidth utilization during backups are low.<br />
* It has the ability to visualize, create, and verify backups taken.<br />
* Data is protected as the backups that are being processed are fully encrypted.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/cdp-continuous-data-protection/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/cdp-continuous-data-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

