Comments on: 17 Useful Rsync Command Examples in Linux https://www.linuxtechi.com/rsync-command-examples-linux/ Mon, 02 Oct 2023 13:36:28 +0000 hourly 1 By: Paul Inglsmit https://www.linuxtechi.com/rsync-command-examples-linux/#comment-48941 Thu, 09 Feb 2023 14:29:24 +0000 https://www.linuxtechi.com/?p=8339#comment-48941 If you want to sync your site on another server do this:
Notice the slash at the end of path
rsync -zarvh -P /var/www/sire.com root@{Remote-Server-IP-Address}:/var/www/

]]>
By: Pradeep Kumar https://www.linuxtechi.com/rsync-command-examples-linux/#comment-22887 Fri, 19 Mar 2021 02:39:54 +0000 https://www.linuxtechi.com/?p=8339#comment-22887 In reply to Jacob L.

Hi Jacob,

You are correct when we are dealing with large file or huge file.Rsync with -z option can add CPU overhead.

]]>
By: Jacob L https://www.linuxtechi.com/rsync-command-examples-linux/#comment-22885 Thu, 18 Mar 2021 16:37:08 +0000 https://www.linuxtechi.com/?p=8339#comment-22885 I have used rsync for years and always avoided using -z for copies on the same system.
I have assumed compressing it then uncompressing it would only add CPU overhead since the limiting factors would be the read and write speeds of the disk(-s) involved. Am I missing something?

]]>
By: Zoran Miljkovic https://www.linuxtechi.com/rsync-command-examples-linux/#comment-22476 Sat, 21 Nov 2020 09:56:32 +0000 https://www.linuxtechi.com/?p=8339#comment-22476 In reply to Zoran Miljkovic.

Found it: -p, –perms preserve the permissions.

]]>
By: Zoran Miljkovic https://www.linuxtechi.com/rsync-command-examples-linux/#comment-22475 Sat, 21 Nov 2020 09:36:47 +0000 https://www.linuxtechi.com/?p=8339#comment-22475 Hi, could you explain the use of “p” in “-a equal to following options -rlptgoD”?

]]>
By: KRS https://www.linuxtechi.com/rsync-command-examples-linux/#comment-20939 Tue, 07 Jul 2020 08:37:20 +0000 https://www.linuxtechi.com/?p=8339#comment-20939 Please be advised that the -z flag for compression only compresses the files during the transfer and then uncompresses them at the destination, so it’s totally unnecessary when using rsync locally or even inside a gigabit network.

]]>
By: Tom https://www.linuxtechi.com/rsync-command-examples-linux/#comment-19587 Tue, 07 Apr 2020 06:13:55 +0000 https://www.linuxtechi.com/?p=8339#comment-19587 Thanks, using this article I create a simple script to copy my data from Unraid server to a Synology NAS.

]]>
By: Vignesh https://www.linuxtechi.com/rsync-command-examples-linux/#comment-18066 Sun, 22 Dec 2019 03:22:03 +0000 https://www.linuxtechi.com/?p=8339#comment-18066 I was looking for a way to copy a folder with files worth 155 GB in Linux. This is exactly what I was looking for. Thanks for taking the time to write this article with detailed examples.

]]>
By: Harry https://www.linuxtechi.com/rsync-command-examples-linux/#comment-17225 Wed, 20 Nov 2019 17:19:00 +0000 https://www.linuxtechi.com/?p=8339#comment-17225 very helpful.
thanks

]]>