Comments on: How to Use Rsync Command in Linux: 16 Practical Examples https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Mon, 09 Sep 2024 04:25:12 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2212570 Mon, 09 Sep 2024 04:25:12 +0000 http://www.tecmint.com/?p=4167#comment-2212570 In reply to Alok.

@Alok,

It seems like you’re encountering the error because rsync cannot create intermediate directories if they don’t already exist. The rsync command will only create the final directory, but if the parent directories (like /opt/TrilliantNetworks/uhes/conf/Catalina) don’t exist, it will fail.

To fix this, you need to create the intermediate directories before running rsync. You can do this by using the mkdir command with the -p option, which creates the full directory structure:

mkdir -p /opt/TrilliantNetworks/uhes/conf/Catalina/localhost

Then run your rsync command again:

rsync -avhP ROOT.xml /opt/TrilliantNetworks/uhes/conf/Catalina/localhost/

This should resolve the issue. Let me know if you need more help!

]]>
By: Alok https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2210861 Thu, 05 Sep 2024 06:31:52 +0000 http://www.tecmint.com/?p=4167#comment-2210861 From first example “if the destination is not already existed rsync will create a directory automatically for the destination.”

I am unable to do this. Getting error –
[root@pvvnl-hes-trill-nprod-web01 localhost]# rsync -avhP ROOT.xml /opt/TrilliantNetworks/uhes/conf/Catalina/localhost/
sending incremental file list
rsync: mkdir "/opt/TrilliantNetworks/uhes/conf/Catalina/localhost" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(663) [Receiver=3.1.3]

]]>
By: Ravi Saive https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2164992 Mon, 29 Apr 2024 04:09:02 +0000 http://www.tecmint.com/?p=4167#comment-2164992 In reply to Fredrico Calamari.

@Fredrico,

Yes, it’s true that RHEL now uses dnf instead of yum as the default package manager. But, because we’ve been using yum for a long time in older versions of RHEL, it can be hard to switch to dnf. However, it’s important to know that yum has been made an alias to dnf, so it still works the same way for those who are used to it.

]]>
By: Fredrico Calamari https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2164637 Sun, 28 Apr 2024 04:30:29 +0000 http://www.tecmint.com/?p=4167#comment-2164637 RHEL no longer uses the yum command and now uses dnf by default. Although you can still run yum, it’s now an alias to dnf. Additionally, according to Red Hat calling yum is deprecated and no longer recommended.

]]>
By: Ken https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2106589 Fri, 24 Nov 2023 07:18:20 +0000 http://www.tecmint.com/?p=4167#comment-2106589 Why not alphabetically ordered [OPTION…]?

For example:

rsync -ahPzv SRC... [DEST]
]]>