<?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>rsync command &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="http://lifelinux.com/tag/rsync-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Wed, 30 Jan 2013 10:51:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.15</generator>
	<item>
		<title>What is the role of this variables in php.ini file (expose_php &#8211; allow_url_fopen &#8211; register_globals) ?</title>
		<link>http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/</link>
					<comments>http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/#comments</comments>
		
		<dc:creator><![CDATA[Linux Killer]]></dc:creator>
		<pubDate>Tue, 29 Jan 2013 19:52:34 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[rsync command]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[variables]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1446</guid>

					<description><![CDATA[<p>There are a lot of people do not know what these variables and how they can be used , this Variables exist in php.ini file , the php.ini file is contains settings PHP on server , and for each variable in the php.ini file have a special role and can be disabled and activated with ON and [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/">What is the role of this variables in php.ini file (expose_php &#8211; allow_url_fopen &#8211; register_globals) ?</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>There are a lot of people do not know what these variables and how they can be used , this Variables exist in php.ini file , the php.ini file is contains settings PHP on server , and for each variable in the php.ini file have a special role and can be disabled and activated with ON and Off</p>
<p><span id="more-1446"></span></p>
<p>Disable = Off</p>
<p>Activate = On</p>
<p>So now I will explain to you the benefit of each function and put you a choice in the activation and disable</p>
<pre>expose_php</pre>
<p>Is a a property from which to see PHP version on the server so disabling means not making available to the hacker to know the version of PHP</p>
<pre>allow_url_fopen</pre>
<p>When you disable this function no one will be able to contain another link in a specific page , but some scripts like AM4SS &#8211; Vbulletin need this function for the arrival of notifications within the Admin Control Panel</p>
<pre>register_globals</pre>
<p>When you Desable this function become possible to control the content of php files difficult and does not allow the Edited only by the owner<br />
<strong>So now we come to the disabled and activation of these properties</strong></p>
<p>Enter in the shell and modify the php.ini file with the following command</p>
<pre>nano /usr/local/lib/php.ini</pre>
<p>By pressing Ctrl + W will open new box writes what you want to search for inside file</p>
<p>Looking for the variable you want edited for example</p>
<pre>allow_url_fopen</pre>
<p>You&#8217;ll find as follows :</p>
<pre>allow_url_fopen = On</pre>
<p>Mark value after the mark (=) On for activate Off  for disabled , Apply it with the rest of the properties , After completion of the amendment to click on the keys CTRL + X + Y then Enter button</p>
<p>You will see a new command line in the main interface in shell<br />
Observation : you must restart Apache after any amendment to this file for edited is defined in the php and Apache<br />
To restart apache :</p>
<pre>service httpd restart</pre>
<p>Or you can restart apache using server Control Panel WHM In a private box to restart services From there you can restart any service you want to.</p>
<g:plusone href="http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/">What is the role of this variables in php.ini file (expose_php &#8211; allow_url_fopen &#8211; register_globals) ?</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Rsync With A Non-Standard SSH Port</title>
		<link>http://lifelinux.com/rsync-with-a-non-standard-ssh-port/</link>
					<comments>http://lifelinux.com/rsync-with-a-non-standard-ssh-port/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 09:59:05 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[port ssh for rsync]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[rsync command]]></category>
		<category><![CDATA[rsync examples]]></category>
		<category><![CDATA[Rsync With A Non-Standard SSH]]></category>
		<category><![CDATA[rsync with different port for SSH]]></category>
		<category><![CDATA[rsync with ssh port]]></category>
		<category><![CDATA[synchronization]]></category>
		<category><![CDATA[synchronize files]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=978</guid>

					<description><![CDATA[<p>How do I tell rsync to use a different port for SSH ? # rsync -av -e "ssh -p [port_number]" user@ip:/path/to/source/ /path/to/destination/ Example, i will copy data from root@209.141.56.112:/root/backup/ to /home/lifelinux/backup/ with source server has ssh port is 2222. Type the following command # rsync -av -e "ssh -p 2222" root@209.141.56.112:/root/backup/ /home/lifelinux/backup/</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/rsync-with-a-non-standard-ssh-port/">Rsync With A Non-Standard SSH Port</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>How do I tell <strong>rsync</strong> to use a different port for SSH ?</p>
<pre>
# rsync -av -e "ssh -p [port_number]" user@ip:/path/to/source/ /path/to/destination/
</pre>
<p><span id="more-978"></span><br />
Example, i will copy data from root@209.141.56.112:/root/backup/ to /home/lifelinux/backup/ with source server has ssh port is 2222. Type the following command</p>
<pre>
# rsync -av -e "ssh -p 2222" root@209.141.56.112:/root/backup/ /home/lifelinux/backup/
</pre>
<g:plusone href="http://lifelinux.com/rsync-with-a-non-standard-ssh-port/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/rsync-with-a-non-standard-ssh-port/">Rsync With A Non-Standard SSH Port</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/rsync-with-a-non-standard-ssh-port/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Keep Data Sync&#8217;d Between Two Load Balanced Servers</title>
		<link>http://lifelinux.com/how-to-keep-data-syncd-between-two-load-balanced-servers/</link>
					<comments>http://lifelinux.com/how-to-keep-data-syncd-between-two-load-balanced-servers/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Thu, 25 Nov 2010 07:35:59 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[Data Sync]]></category>
		<category><![CDATA[Load balancing]]></category>
		<category><![CDATA[mirror server]]></category>
		<category><![CDATA[rsync command]]></category>
		<category><![CDATA[sync server]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=186</guid>

					<description><![CDATA[<p>Load balancing helps provide redundancy to your website. However, one often asked question is how to keep your content synchronized on each server. If you put a new web page on one server, how does it get copied over to the second server? In this article, i&#8217;ll explain how to use rsync command to synchronize [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-keep-data-syncd-between-two-load-balanced-servers/">How To Keep Data Sync&#8217;d Between Two Load Balanced Servers</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p><strong>Load balancing</strong> helps provide redundancy to your website. However, one often asked question is how to keep your content synchronized on each server. If you put a new web page on one server, how does it get copied over to the second server? In this article, i&#8217;ll explain how to use rsync command to synchronize data between a specific directory on each server.<span id="more-186"></span></p>
<h2>Install rsync</h2>
<p>On Centos Linux type the following command:</p>
<pre>yum install rsync
</pre>
<h2>Using rsync command with password authentication</h2>
<p>For example, i have two servers using for load balanced and called server1(192.168.1.101) and server2(192.168.1.102). I wanted to keep data in /var/www/html sync between to servers. Type the following command on server1:</p>
<pre>rsync -avr --progress --links --rsh='/usr/bin/ssh' 192.168.1.102:/var/www/html /var/www/html
</pre>
<p><strong>With:</strong><br />
-avr : archive mode (a), verbose (v), recurse into directories (r).<br />
&#8211;progress: Show progress.<br />
&#8211;links: copy symlinks as symlinks.<br />
&#8211;rsh: use to specify the remote shell ssh to use.<br />
192.168.1.102:/var/www/html: IP address of server2 and path to synchronize to server1<br />
/var/www/html: Server1 path</p>
<h2>Using rsync command with <a href="http://www.lifelinux.com/setting-up-an-ssh-certificate/">SSH certificate</a></h2>
<p>Replace above command with following command:</p>
<pre>rsync -avr --progress --links --rsh='/usr/bin/ssh -i /path_to_private_key' 192.168.1.102:/var/www/html /var/www/html
</pre>
<h2>A sample shell script</h2>
<pre>#!/bin/bash
SOURCEPATH='source'
DESTPATH='destination'
SOURCEHOST='ip_address'
PRIVATEKEY='private_key'
LOGFILE='log_file'
SSH='/usr/bin/ssh'
rsync -avr --progress --links --rsh="'$SSH -i $PRIVATEKEY'" $SOURCEHOST:$SOURCEPATH $DESTPATH 2&gt;&amp;1 &gt;&gt; $LOGFILE
</pre>
<g:plusone href="http://lifelinux.com/how-to-keep-data-syncd-between-two-load-balanced-servers/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-keep-data-syncd-between-two-load-balanced-servers/">How To Keep Data Sync&#8217;d Between Two Load Balanced Servers</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-keep-data-syncd-between-two-load-balanced-servers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Copy Hidden Files On Linux</title>
		<link>http://lifelinux.com/how-to-copy-hidden-files-on-linux/</link>
					<comments>http://lifelinux.com/how-to-copy-hidden-files-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 23 Nov 2010 10:29:05 +0000</pubDate>
				<category><![CDATA[Bash Shell]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[command line tool]]></category>
		<category><![CDATA[copy hidden files on Linux]]></category>
		<category><![CDATA[cp command]]></category>
		<category><![CDATA[dot files]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[rsync command]]></category>
		<category><![CDATA[rsync copy hidden files]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=67</guid>

					<description><![CDATA[<p>Q. Is there an easy way to recursively copy all files include hidden files in a directory to another directory? A. Using rsync command is a better solution. rsync -av --progress /source /destination With: -a: Archive Mode -v: Verbose Mode &#8211;progress: Show progress during transfer. Another solution, you may also use cp command and pattern [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-copy-hidden-files-on-linux/">How To Copy Hidden Files On Linux</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p><strong>Q</strong>. Is there an easy way to recursively copy all files include hidden files in a directory to another directory?</p>
<p><strong>A</strong>. Using rsync command is a better solution.<span id="more-67"></span></p>
<pre>rsync -av --progress /source /destination</pre>
<p><strong>With:</strong></p>
<p>-a: Archive Mode</p>
<p>-v: Verbose Mode</p>
<p>&#8211;progress: Show progress during transfer.</p>
<p>Another solution, you may also use <strong>cp command</strong> and pattern matches, type the following command:</p>
<pre>cp -R ./[^.]* /destination</pre>
<g:plusone href="http://lifelinux.com/how-to-copy-hidden-files-on-linux/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-copy-hidden-files-on-linux/">How To Copy Hidden Files On Linux</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-copy-hidden-files-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
