<?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>Files &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/files/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Sat, 04 Sep 2021 09:11:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Files &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Recursively Copy Remote Files in Linux</title>
		<link>https://help.hostry.com/knowledge-base/how-to-recursively-copy-remote-files-in-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-recursively-copy-remote-files-in-linux/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Sat, 04 Sep 2021 09:11:33 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4216</guid>

					<description><![CDATA[Sometimes, you may encounter copying deleted files in your Linux distribution. Several popular tools are used for this: scp and rsync. This article will describe specifically how each tool works. Working with Scp Scp is a special tool that can be used to securely copy files to and from a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Sometimes, you may encounter copying deleted files in your Linux distribution. Several popular tools are used for this: <strong><span style="text-decoration: underline;"><em>scp </em></span></strong>and <strong><span style="text-decoration: underline;"><em>rsync</em></span></strong>. This article will describe specifically how each tool works.</p>



<h2 id="working-with-scp" >Working with Scp</h2>



<p>Scp is a special tool that can be used to securely copy files to and from a remote computer using the Secure Shell (SSH) protocol. Scp stands for Secure Copy. The basic syntax for the scp command is as follows:</p>



<pre class="wp-block-code"><code>scp &lt;option> &lt;source> &lt;destination></code></pre>



<p>To copy files recursively, you need to use the -r option. For example, the command below will recursively copy the contents of the my / draft directory to the / backup directory on the remote server. A valid username on the remote server is required.</p>



<pre class="wp-block-code"><code>scp -r / draft redhat8@185.186.244.123:/backup</code></pre>



<p>Here&#8217;s another example of recursively copying the contents of the <strong>/backup/draft</strong> directory from a remote server to a directory on my local machine</p>



<pre class="wp-block-code"><code>scp -r rredhat8@185.186.244.123:/backup/draught /recovered</code></pre>



<h2 id="working-with-rsync" >Working with Rsync</h2>



<p>The rsync tool, which stands for how remote synchronization is used to copy files between local or remote computers, and between computers on a network by comparing modification times and file sizes. It is commonly found on Unix-like operating systems. Rsync is written in C as a single threaded application. The basic syntax for the scp command is as follows:</p>



<pre class="wp-block-code"><code>rsync &lt;options> &lt;source &lt;destination></code></pre>



<p>The ability to copy files recursively is denoted by -r. can synchronize Unix clients with a central Unix server using rsync / ssh and standard Unix accounts. It can be used in a desktop environment, for example, to efficiently synchronize files with a backup on an external hard drive. A scheduling utility such as cron can perform tasks such as automatic rsync encryption-based mirroring between multiple hosts and a central server. For example, the command below will recursively copy the contents of the my <strong>/draft</strong> directory to the <strong>/backup</strong> directory on the remote server. A valid username on the remote server is required.</p>



<pre class="wp-block-code"><code>rsync -rav /draught1.1 redhat8@185.186.244.123:/backup1.1</code></pre>



<p>The following example recursively copies the contents of the <strong>/backup1.1/draught1.1</strong> directory from the remote server to a directory on my local machine</p>



<pre class="wp-block-code"><code>rsync -rav redhat8@185.186.244.123:/backup1.1draught1.1 /recovered2</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-recursively-copy-remote-files-in-linux/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<item>
		<title>How to Set Unlimited Users and File descriptions on Linux server</title>
		<link>https://help.hostry.com/knowledge-base/how-to-set-unlimited-users-and-file-descriptions-on-linux-server/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-set-unlimited-users-and-file-descriptions-on-linux-server/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 17 Aug 2020 09:21:22 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1929</guid>

					<description><![CDATA[Linux has a unique system for installing and changing the maximum number of user processes, uilimit. The default number of file descriptors that any process can open is 1024 per process. Installing unlimited users and descriptions on the server When you do this task, you get the error &#8220;too many [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Linux has a unique system for installing and changing the maximum number of user processes, <em><strong><a href="https://ss64.com/bash/ulimit.html">uilimit</a></strong></em>. The default number of file descriptors that any process can open is 1024 per process.</p>



<h2 id="installing-unlimited-users-and-descriptions-on-the-server" >Installing unlimited users and descriptions on the server</h2>



<p>When you do this task, you get the error &#8220;too many files open limit&#8221;. This means that there is a limitation on opening Linux files according to the user&#8217;s session. To do this, add a line to /etc/sysctl.conf and run sysctl -p:</p>



<pre class="wp-block-preformatted">fs.file-max = 80000</pre>



<p>Next, we check the default constraints. This can be done with the following command:</p>



<pre class="wp-block-preformatted">cat /proc/sys/fs/ file-max</pre>



<p>file-max is the maximum file descriptor. This is a kernel setting applied at the system level. Also you can check the default values ​​for the root user.</p>



<pre class="wp-block-preformatted">ulimit -a</pre>



<p>It is also possible to set hard and soft limits by editing this vim file /etc/security/limits.conf</p>



<pre class="wp-block-preformatted">* hard nofile 600000
* soft nofile 600000</pre>



<p>Set hard and soft limits for Linux user</p>



<pre class="wp-block-preformatted">linux hard nofile 600000
linux soft nofile 600000</pre>



<p>Then run the following command to make the changes</p>



<pre class="wp-block-code"><code>sysctl -p</code></pre>



<p>It is also possible to check how many files are open at the moment using following command</p>



<pre class="wp-block-code"><code>lsof | wc -l</code></pre>



<p>You can check how many file descriptions are currently in use with the following command:</p>



<pre class="wp-block-code"><code>more /proc/sys/fs/file-nr</code></pre>



<p>Check the file descriptor limit for the currently open file using the following commands</p>



<pre class="wp-block-preformatted">more /proc/sys/fs/file-max
sysctl -a | grep fs.file-max</pre>



<p>After making the changes, you need to log out and log back in. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-set-unlimited-users-and-file-descriptions-on-linux-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
