http://www.simplehelp.net/2010/04/15/smart-selective-backup-of-files-with-linux/<br><br>
<div style="margin: 0px 2px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="margin: 0px 1px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="padding: 4px; background-color: #c3d9ff;"><h3 style="margin:0px 3px;font-family:sans-serif">Enviado para você por termal12 através do Google Reader:</h3></div>
<div style="margin: 0px 1px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="margin: 0px 2px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="font-family:sans-serif;overflow:auto;width:100%;margin: 0px 10px"><h2 style="margin: 0.25em 0 0 0"><div class=""><a href="http://feedproxy.google.com/~r/simplehelp/~3/GtoES5Z7sVM/">Smart, selective backup of files with Linux</a></div></h2>
<div style="margin-bottom: 0.5em">via <a href="http://www.simplehelp.net" class="f">Simple Help</a> de Sukrit Dhandhania em 15/04/10</div><br style="display:none">
<img src="http://www.simplehelp.net/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux">
<div><p>There are a number of backup methods that you can use in Linux to make sure your data is safe and available. The simplest is probably to backup everything. This method, although viable under certain circumstances, is not always the smartest way to go if you have space constraints. So you can use a more selective backup method. Let’s look at one, wherein you choose the files you want backed up, and run a single line command to backup only these files. <span></span></p>
<p>Launch your favorite text editor and make a list of all the files you want to back up. Put the full path of each file, and have one file per line. So your final list will look something like this:</p>
<p>/etc/passwd<br>
/etc/users<br>
/home/calvin/accounts.txt<br>
/home/calvin/otherimportantstuff.tar.gz<br>
…</p>
<p>Save the file with a name like <strong>backup_list.txt</strong>, or whatever you find suitable. Now we’ll use the tar command with an extra input parameter, <strong>-T</strong>.  The upper case T is a parameter that takes a list of files as input.</p>
<p>The command to archive a directory without the -T parameter is:</p>
<p><strong># tar -zcf archive.tar.gz directory-to-backup</strong></p>
<p>We will now modify this command so that it takes the list we prepared for it as an input. We will do this using the -T option in tar:</p>
<p><strong># tar -zcf backup.tar.gz -T /etc/backup_list.txt</strong></p>
<p>Check out the contents of the newly created archive, <strong>backup.tar.gz</strong>. It should contain the files you listed in the file <strong> backup_list.txt</strong>. You can make this command a bit smarter using the <strong>date</strong> command in Linux. Use this command to have Linux automatically insert the date of the backup into the filename of the archive you create. Modify the above command to look something like this:</p>
<p><strong># tar -zcf backup-`date +%Y-%m-%d`.tar.gz -T /etc/backup_list.txt</strong></p>
<p>Now the archive file containing your backup will have the date, month and year of the backup. This makes it easier to store and retrieve data from your backups.</p>
</div><p>---<br>Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2007/01/26/how-to-create-and-use-smart-folders-in-os-x/" rel="bookmark" title="Permanent Link: How to create and use Smart Folders in OS X">How to create and use Smart Folders in OS X</a><br><a href="http://www.simplehelp.net/2010/03/19/how-to-set-selective-not-all-tweets-as-your-facebook-status/" rel="bookmark" title="Permanent Link: How to set selective (not all) tweets as your Facebook Status">How to set selective (not all) tweets as your Facebook Status</a><br><a href="http://www.simplehelp.net/2006/09/19/how-to-use-firefoxs-smart-keywords-more-effectively/" rel="bookmark" title="Permanent Link: How to use Firefox&#39;s Smart Keywords more effectively">How to use Firefox&#39;s Smart Keywords more effectively</a><br><a href="http://www.simplehelp.net/2008/12/15/how-to-create-and-extract-zip-tar-targz-and-tarbz2-files-in-linux/" rel="bookmark" title="Permanent Link: How to create and extract zip, tar, tar.gz and tar.bz2 files in Linux">How to create and extract zip, tar, tar.gz and tar.bz2 files in Linux</a><br><a href="http://www.simplehelp.net/2010/03/23/how-to-run-a-remote-backup-over-ssh/" rel="bookmark" title="Permanent Link: How to run a remote backup over SSH">How to run a remote backup over SSH</a><br></ul></p><br><p><iframe src="http://feedads.g.doubleclick.net/~ah/f/4ic0te8n69bqk2snmad0gkjgec/300/250?ca=1&amp;fh=280#http%3A%2F%2Fwww.simplehelp.net%2F2010%2F04%2F15%2Fsmart-selective-backup-of-files-with-linux%2F" width="100%" height="280" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe></p><div>
<a href="http://feeds.feedburner.com/~ff/simplehelp?a=GtoES5Z7sVM:Kc0mQNLcH-M:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/simplehelp?d=yIl2AUoC8zA" border="0"></a> <a href="http://feeds.feedburner.com/~ff/simplehelp?a=GtoES5Z7sVM:Kc0mQNLcH-M:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/simplehelp?i=GtoES5Z7sVM:Kc0mQNLcH-M:F7zBnMyn0Lo" border="0"></a> <a href="http://feeds.feedburner.com/~ff/simplehelp?a=GtoES5Z7sVM:Kc0mQNLcH-M:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/simplehelp?i=GtoES5Z7sVM:Kc0mQNLcH-M:D7DqB2pKExk" border="0"></a> <a href="http://feeds.feedburner.com/~ff/simplehelp?a=GtoES5Z7sVM:Kc0mQNLcH-M:ByNYXvuKCJE"><img src="http://feeds.feedburner.com/~ff/simplehelp?d=ByNYXvuKCJE" border="0"></a> <a href="http://feeds.feedburner.com/~ff/simplehelp?a=GtoES5Z7sVM:Kc0mQNLcH-M:I9og5sOYxJI"><img src="http://feeds.feedburner.com/~ff/simplehelp?d=I9og5sOYxJI" border="0"></a>
</div><img src="http://feeds.feedburner.com/~r/simplehelp/~4/GtoES5Z7sVM" height="1" width="1"></div>
<br>
<div style="margin: 0px 2px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="margin: 0px 1px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="padding: 4px; background-color: #c3d9ff;"><h3 style="margin:0px 3px;font-family:sans-serif">Coisas que você pode fazer a partir daqui:</h3>
<ul style="font-family:sans-serif"><li><a href="http://www.google.com/reader/view/feed%2Fhttp%3A%2F%2Ffeeds.feedburner.com%2Fsimplehelp%2F?source=email">Inscrever-se no Simple Help</a> usando o <b>Google Reader</b></li>
<li><a href="http://www.google.com/reader/?source=email">Começar a usar o Google Reader</a> para se manter facilmente atualizado sobre <b>todos os seus sites favoritos</b></li></ul></div>
<div style="margin: 0px 1px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="margin: 0px 2px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>