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:
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.
Can you please let me know how can I fix the error ?
Last edited by mohtashims; 02-05-2018 at 11:50 AM..
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT SUSE
rsync_selinux
rsync_selinux(8) rsync Selinux Policy documentation rsync_selinux(8)NAME
rsync_selinux - Security Enhanced Linux Policy for the rsync daemon
DESCRIPTION
Security-Enhanced Linux secures the rsync server via flexible mandatory access control.
FILE_CONTEXTS
SELinux requires files to have an extended attribute to define the file type. Policy governs the access daemons have to these files. If
you want to share files using the rsync daemon, you must label the files and directories public_content_t. So if you created a special
directory /var/rsync, you would need to label the directory with the chcon tool.
chcon -t public_content_t /var/rsync
To make this change permanent (survive a relabel), use the semanage command to add the change to file context configuration:
semanage fcontext -a -t public_content_t "/var/rsync(/.*)?"
This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local:
/var/rsync(/.*)? system_u:object_r:publix_content_t:s0
Run the restorecon command to apply the changes:
restorecon -R -v /var/rsync/
SHARING FILES
If you want to share files with multiple domains (Apache, FTP, rsync, Samba), you can set a file context of public_content_t and pub-
lic_content_rw_t. These context allow any of the above domains to read the content. If you want a particular domain to write to the pub-
lic_content_rw_t domain, you must set the appropriate boolean. allow_DOMAIN_anon_write. So for rsync you would execute:
setsebool -P allow_rsync_anon_write=1
BOOLEANS
system-config-selinux is a GUI tool available to customize SELinux policy settings.
AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
SEE ALSO selinux(8), rsync(1), chcon(1), setsebool(8), semanage(8)dwalsh@redhat.com 17 Jan 2005 rsync_selinux(8)