issues syncing between one host and another

Jonathan Aquilina eagles051387 at
Wed Sep 4 15:56:43 CEST 2013

I have the following script that I am working on


date=$(date +%F--%T)

#ssh parameters


linkdest=$(ssh $user@$remotehost /usr/linux/bin/readlink/

rsync -a --compress  --link-dest=$linkdest --out-format='%i %n%L %l %M'
--omit-dir-times  "$localdir" "$user@$remotehost:$remotedir"
ssh $user@$remotehost /bin/rm -f /home/aquj001/recievingDir.current
ssh $user@$remotehost ln -sf $remotedir $linkdest

now the issue becomes when i run it, I get the following errors.

rsync: change_dir#4 "/home/aquj001/recievingDir.2013-09-04--15:53:16"
failed: No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at
main.c(877) [receiver=3.0.6]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600)

It still creates the directory on the remote machine but its empty and
nothing but sym links. Any ideas as to what th eissue is would be greatly

This is on an AIX 6.1 system installed from the aix toolbox package.

Jonathan Aquilina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list