Skip to content

Commit

Permalink
Updated content
Browse files Browse the repository at this point in the history
  • Loading branch information
harneshalaka committed Mar 21, 2024
1 parent 1878203 commit 43c1a47
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 78 deletions.
14 changes: 5 additions & 9 deletions articles/copy-file-with-rsync.asm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<!-- S T R U C T U R E -->
<structure renderas="article" xml:id="article-example" xml:lang="en">
<merge>
<title>Copy Files using rsync command</title>
<title>Copy files and directories using rsync</title>
<!-- <subtitle>Subtitle if necessary</subtitle> -->
<!-- Create changelog to enable versioning; add most recent entries at the top. -->
<revhistory>
Expand Down Expand Up @@ -117,7 +117,7 @@
<!-- enter product name and version --><productname version="15-SP5">&sles;</productname>
</meta>
<meta name="title" its:translate="yes">Copy files and directories using rsync command.</meta>
<meta name="description" its:translate="yes">An overview of copying files locally and remotely using rsync.</meta>
<meta name="description" its:translate="yes">An overview of copying files and directories locally and remotely using rsync.</meta>
<meta name="social-descr" its:translate="yes">File copy using rsync</meta>
<!-- suitable category, comma-separated list of categories -->
<meta name="category" content="Systems Management" its:translate="no"/>
Expand Down Expand Up @@ -167,13 +167,9 @@
<varlistentry>
<term>REQUIREMENTS</term>
<listitem>
<itemizedlist>
<listitem>
<para>
Access permissions to the source and destination locations for copying files.
</para>
</listitem>
</itemizedlist>
<para>
Access permissions to the source and destination locations for copying files.
</para>
</listitem>
</varlistentry>
</variablelist>
Expand Down
10 changes: 5 additions & 5 deletions concepts/copy-file-with-rsync-concept.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<meta name="maintainer" content="[email protected]" its:translate="no"/>
<abstract>
<para>
Files stored in multiple devices or directories must be in synchronization with each other to ensure accuracy and maintainability of data. rsync is a tool used for transferring or copying files locally and remotely. rsync is unidirectional and it copies files only in one direction, it does not synchronize data.
Instead of transmitting all the contents in the file, rsync minimizes the amount of data copied by moving only the changes within the file. Hence, this supports transfer of data over slow network connection.</para>
You can use the <literal>rsync</literal> tool for transferring or copying files locally and remotely. <literal>rsync</literal> is unidirectional and it copies files only in one direction, it does not synchronize data.
Instead of transmitting all the contents in the file, <literal>rsync</literal> minimizes the amount of data copied by moving only the changes within the file. Hence, this supports transfer of data over slow network connection.</para>
</abstract>
</info>
<para>To use rsync for large files, detecting changes requires certain computing power. So ensure that machines on both source and destination have enough resources, including RAM. </para>
<para>You can use rsync when large amounts of data containing only minor changes need to be transmitted regularly. Hence, this is useful when working with backups. rsync can also be useful for mirroring staging servers that store complete directory trees of Web servers to a Web server in a DMZ.</para>
<para>This article includes examples that shows the usage of the rsync command to copy files locally and remotely. This document also explains how to configure and use an rsync server.</para>
<para>For copying large files using <literal>rsync</literal>, detecting changes requires certain computing power. So ensure that machines on both source and destination have enough resources, including RAM. </para>
<para>You can use rsync when large amount of data containing only minor changes need to be transmitted regularly. Hence, this is useful when working with backups. <literal>rsync</literal> can also be useful for mirroring staging servers that store complete directory trees of Web servers to a Web server in a DMZ.</para>
<para>This article includes examples that shows the usage of the <literal>rsync</literal> to copy files locally and remotely. This document also explains how to configure and use an <literal>rsync</literal> server.</para>
</topic>
2 changes: 1 addition & 1 deletion concepts/copy-file-with-rsync-locally.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<para>You can copy files within the same machine using rsync if you have write permission for the destination location.</para></abstract>

</info>
<para>To copy file to the location <filename>/var/backup</filename>, use the following command:
<para>To copy file <filename>backup.tar.xz</filename> to the location <filename>/var/backup</filename>, use the following command:
</para> <screen>rsync -avz backup.tar.xz /var/backup/</screen>
<para>The file <filename>backup.tar.xz</filename> is copied to <filename>/var/backup/</filename>; the absolute path is<filename>/var/backup/backup.tar.xz</filename>.</para>

Expand Down
2 changes: 1 addition & 1 deletion concepts/copy-file-with-rsync-remotely.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</info>
<para>To copy a single file from one directory on your machine to <filename>/var/backup</filename>, use the following command:</para>
<screen>rsync -avz tux /var/backup/</screen>
<note><para>Ensure that you add the trailing slash after the<filename>/var/backup/</filename> directory. If you do not insert the slash, the file backup.tar.xz is copied to <filename>/var/backup</filename> (file) not inside the directory <filename>/var/backup/</filename>.</para></note>
<note><para>Ensure that you add the trailing slash after the<filename>/var/backup/</filename> directory. If you do not insert the slash, the file backup.tar.xz is copied to <filename>/var/backup</filename> file and not inside the directory <filename>/var/backup/</filename>.</para></note>
<para>Verify the copied file in the absolute path <filename>/var/backup/backup.tar.xz.</filename></para>
<para>To copy the directory <filename>tux/</filename> and its content into the directory <filename>/var/backup/</filename>
</para><screen>rsync -avz tux /var/backup/</screen>
Expand Down
5 changes: 2 additions & 3 deletions concepts/copy-file-with-rsync-usage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
<title>Copy files with rsync</title>
<meta name="maintainer" content="[email protected]" its:translate="no"/>
<abstract>
<para>You can use rsync on any remote machine you have access and write permissions.</para></abstract>
<para>You can use <literal>rsync</literal> on any machine you have access and write permissions.</para></abstract>
</info>
<para>Copy files from source location to destination location by using the following example:</para>
<para>Run the following command. </para>
<screen>rsync [OPTION] SOURCE [SOURCE]... DESTINATION</screen> <para>You can have multiple <filename>SOURCE</filename> entries and the <filename>SOURCE</filename> and <filename>DESTINATION</filename> placeholders can be paths, URLs or both.</para>
<para>The trailing slash after the directory denotes the content of the directory. No trailing slash denotes the directory itself.</para>
<para>The trailing slash after the directory denotes the content of the directory and not the directory itself.</para>
<para>The commonly used <filename>OPTIONS</filename> are listed below: </para>
<itemizedlist>
<listitem>
Expand Down
2 changes: 1 addition & 1 deletion tasks/copy-file-with-rsyc-configure-rsync-server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ in the assembly -->
<step><para>Start and enable the <literal>rsyncd</literal> daemon with:</para>
<screen>systemctl enable rsyncd

systemctl start rsyncd</screen>
systemctl start rsyncd</screen>
</step>
<step><para>Test the access to your <literal>rsync</literal> server: </para>
<screen>rsync jupiter::</screen>
Expand Down
58 changes: 0 additions & 58 deletions tasks/copy-file-with-rsyc-usage.xml

This file was deleted.

0 comments on commit 43c1a47

Please sign in to comment.