<?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>Ask me Questions and get Answers ! &#187; unix</title>
	<atom:link href="http://askmetoo.com/category/unix/feed" rel="self" type="application/rss+xml" />
	<link>http://askmetoo.com</link>
	<description>Ask Questions and get Answers About everything for free!</description>
	<lastBuildDate>Wed, 07 Jul 2010 15:41:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Clear Debian cache on webserver ?</title>
		<link>http://askmetoo.com/how-to-clear-debian-cache-on-webserver.htm</link>
		<comments>http://askmetoo.com/how-to-clear-debian-cache-on-webserver.htm#comments</comments>
		<pubDate>Thu, 10 Jun 2010 07:17:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=156</guid>
		<description><![CDATA[rm -r  /var/log/apache2
rm -r /var/cache/eaccelerator
rm -r /root/Maildir
rm -r /home/internetfastnews/Maildir
rm -r /home/zxnews/Maildir
rm -r /home/seoch/Maildir
rm -r /home/otvetish/Maildir
rm -r /home/teaseo/Maildir
rm -r /home/school/Maildir
]]></description>
			<content:encoded><![CDATA[<p>rm -r  /var/log/apache2<br />
rm -r /var/cache/eaccelerator<br />
rm -r /root/Maildir<br />
rm -r /home/internetfastnews/Maildir<br />
rm -r /home/zxnews/Maildir<br />
rm -r /home/seoch/Maildir<br />
rm -r /home/otvetish/Maildir<br />
rm -r /home/teaseo/Maildir<br />
rm -r /home/school/Maildir</p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/how-to-clear-debian-cache-on-webserver.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure server backup (ftp + openssh+encode) !</title>
		<link>http://askmetoo.com/encoded-backup.htm</link>
		<comments>http://askmetoo.com/encoded-backup.htm#comments</comments>
		<pubDate>Tue, 12 Jan 2010 16:13:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://askmetoo.com/?p=139</guid>
		<description><![CDATA[Secure server backup logic
1) find all buckup files  *.gz
2) encode them to *.gz.out
3) remove  gz file
4) upload to ftp
5) remove encoded file
Secure server backup script

1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
BACKUPDATE=`date +%Y-%m-%d`;
find . -type f -name &#34;*.gz&#34; -print&#124;while read myfile
do
    openssl enc -aes-256-cbc -salt -in &#34;$myfile&#34; -out &#34;$myfile&#34;.out -pass pass:PaSSwordThere;
    rm &#34;$myfile&#34; ;
 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Secure server backup logic</strong><br />
1) find all buckup files  *.gz<br />
2) encode them to *.gz.out<br />
3) remove  gz file<br />
4) upload to ftp<br />
5) remove encoded file</p>
<p><strong>Secure server backup script</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="bach" style="font-family:monospace;">#!/bin/sh
BACKUPDATE=`date +%Y-%m-%d`;
find . -type f -name &quot;*.gz&quot; -print|while read myfile
do
    openssl enc -aes-256-cbc -salt -in &quot;$myfile&quot; -out &quot;$myfile&quot;.out -pass pass:PaSSwordThere;
    rm &quot;$myfile&quot; ;
    curl -v -T &quot;$myfile&quot;.out ftp://login:&quot;FTppassThere&quot;@ftpserveraddres.com/${BACKUPDATE}/&quot;$myfile&quot; -Q &quot;MKD ${BACKUPDATE}&quot;;
   curl -v -T &quot;$myfile&quot;.out ftp://login:&quot;FTppassThere&quot;@ftpserveraddres.com/${BACKUPDATE}/&quot;$myfile&quot; ;
    rm &quot;$myfile&quot;.out ;
    echo &quot;$myfile&quot; &quot;\n&quot; ;
done</pre></td></tr></table></div>

<p><strong>This is my first backup script!</strong></p>
<p>Also decode example<br />
<strong>openssl  enc -d -aes-256-cbc -in zzzz.gz.out -out zzzz.gz -pass pass:PaSSwordThere;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://askmetoo.com/encoded-backup.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
