Sponsored Content
Top Forums Shell Programming and Scripting Rsync Error: rsync: link_stat failed: No such file or directory (2) Post 303012504 by mohtashims on Monday 5th of February 2018 10:11:18 AM
Old 02-05-2018
Hammer & Screwdriver Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location

I am using Ansible tool synchronize module which triggers the unix rsync command as below:
Code:
rsync --delay-updates -F --compress --archive --rsh=ssh -S none /web/Transfer_Files/data/ wlsuser@mybank.intra.com:/tmp

Output Error:
Quote:
##################################################################
rsync: link_stat "/web/Transfer_Files/none" failed: No such file or directory (2)
rsync: failed to set times on "/tmp/.": Not owner (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]
Note: This directory does exist on my system & also has good permissions: /web/Transfer_Files/data/

I do not know why /web/Transfer_Files/data/ gets replaced with /web/Transfer_Files/none in the output.

I tried both bash and ksh shells.
Code:
 uname -a
Linux mymac1 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Dec 28 14:23:39 EST 2017 x86_64 x86_64 x86_64 GNU/Linux

Can you please let me know how can I fix the error ?

Last edited by mohtashims; 02-05-2018 at 11:50 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

rsync mirror of download directory

I have a download directory for NDM Secure+ to receive files from other system. I need to mirror this directory to another box, but need to skip files that are still coming in. I have no control over file names or destination directories as they are configured on the sending side. How can I... (2 Replies)
Discussion started by: wskibum
2 Replies

2. UNIX for Advanced & Expert Users

Why rsync deletes source directory?

Hi I have a strange problem. Sometimes when I execute the below command something wierd happens. rsync -avz -e ssh travegre@travegre.net: ../travegre.net/ the folder named "hm" that is held in travegre.net and is coppied along with all the other folders and data at travegre.net, gets... (1 Reply)
Discussion started by: travegre
1 Replies

3. UNIX for Advanced & Expert Users

rsync deletes original directory

Hi I have a strange problem. Sometimes when I execute the below command something wierd happens. rsync -avz -e ssh travegre@travegre.net: ../travegre.net/ the folder named "hm" that is held in travegre.net and is coppied along with all the other folders and data at travegre.net, gets deleted... (4 Replies)
Discussion started by: travegre
4 Replies

4. UNIX for Advanced & Expert Users

How to rsync or tar directory trees, with hidden directory, but without files?

I want to backup all the directory tress, including hidden directories, without copying any files. find . -type d gives the perfect list. When I tried tar, it won't work for me because it tars all the files. find . -type d | xargs tar -cvf a.tar So i tried rsync. On my own test box, the... (4 Replies)
Discussion started by: fld2007
4 Replies

5. Emergency UNIX and Linux Support

rsync: writefd_unbuffered failed

hi guys. I have configured rsync to make a mirror, but there is an error, I don't understand in the logfile: 2011/01/18 16:54:25 rsync on centos/ from UNKNOWN (212.120.196.127) 2011/01/18 15:56:00 rsync: writefd_unbuffered failed to write 4 bytes : Connection reset by peer (104)... (4 Replies)
Discussion started by: majid.merkava
4 Replies

6. Shell Programming and Scripting

rsync: skip mail directory

i want to skip the /home/user/mail directory in an rsync but only in this level not like /home/user/public_html/anotherscript/mail if i have a command like this rsync -av --exclude mail /home/$USER root@$SERVERIP:/home2 does it exclude only the mail directory directly under... (1 Reply)
Discussion started by: vanessafan99
1 Replies

7. Shell Programming and Scripting

Rsync defined directory

i want to copy with rsync a specified (sub)-directory and the according folders and files below. my test failed : cd /dir /usr/bin/rsync -ravz -e ssh --include='*/' --include='*/00/*/*' --exclude='*' . remote_host:/tmp i want to copy in these example the directory "00" and the according... (2 Replies)
Discussion started by: bora99
2 Replies

8. Fedora

Rsync failed

I was backing up a home directory and had rsync fail on me. I noticed that it was trying to copy a large file (over 4.2 gigs). That made me wonder if the code is 32 bit and failed on the 2 ^32 (max size issue) The code which I invoked is as follows: rsync -aPH... (0 Replies)
Discussion started by: robertdaleweir
0 Replies

9. UNIX for Beginners Questions & Answers

Move directory with rsync and delete from source

I need a rsync command which will exclude certain files and directories from source and copy the rest. I got this command working, sudo rsync -avzh --exclude 'bin' --exclude 'braintree' --exclude 'colinmollenhour' --exclude 'composer' --exclude 'doctrine' --exclude 'fabpot' --exclude... (2 Replies)
Discussion started by: Siddheshk
2 Replies

10. Shell Programming and Scripting

Issue with rsync: failed to set times on "/tmp/.": Not owner (1)

Hi, Here is my source host and folder details. $ hostname source-host $ id uid=600000208(src-user) gid=64688(src-user) groups=64688(src-user) $ ls -ltrd /web/Trn_File/data/ drwxrwxrwx 3 src-user src-user 4096 Feb 7 15:27 /web/Trn_File/data/ $ ls -ltrd /web/Trn_File/data/* drwxrwxrwx 8... (1 Reply)
Discussion started by: mohtashims
1 Replies
rdiff(1)						      General Commands Manual							  rdiff(1)

NAME
rdiff - compute and apply signature-based file differences SYNOPSYS
rdiff [options] signature old-file signature-file rdiff [options] delta signature-file new-file delta-file rdiff [options] patch basis-file delta-file new-file USAGE
You can use rdiff to update files, much like rsync does. However, unlike rsync, rdiff puts you in control. There are three steps to updating a file: signature, delta, and patch. DESCRIPTION
In every case where a filename must be specified, - may be used instead to mean either standard input or standard output as appropriate. Be aware that if you do this, you'll need to terminate your options with -- or rdiff will think you are passing it an empty option. RETURN VALUE
0 for successful completion, 1 for environmental problems (file not found, invalid options, IO error, etc), 2 for a corrupt file and 3 for an internal error or unhandled situation in librsync or rdiff. SEE ALSO
librsync(3) AUTHOR
Martin Pool <mbp@samba.org> The original rsync algorithm was discovered by Andrew Tridgell. rdiff development has been supported by Linuxcare, Inc and VA Linux Systems. $Date: 2002/01/25 21:25:34 $ rdiff(1)
All times are GMT -4. The time now is 06:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy