<div dir="ltr"><div><div><div>I have the following script that I am working on<br><br>#!/bin/bash<br><br>date=$(date +%F--%T)<br><br>#ssh parameters<br>user=aquj001<br>remotehost=qa4app<br><br>localdir=/home/aquj001/INFENG/scripts<br>

remotedir=/home/aquj001/recievingDir.$date<br><br>linkdest=$(ssh $user@$remotehost /usr/linux/bin/readlink/ /home/aquj001/recievingDir.current)<br><br>rsync -a --compress  --link-dest=$linkdest --out-format='%i %n%L %l %M' --omit-dir-times  "$localdir" "$user@$remotehost:$remotedir"<br>

ssh $user@$remotehost /bin/rm -f /home/aquj001/recievingDir.current<br>ssh $user@$remotehost ln -sf $remotedir $linkdest<br><br></div>now the issue becomes when i run it, I get the following errors.<br><br>rsync: change_dir#4 "/home/aquj001/recievingDir.2013-09-04--15:53:16" failed: No such file or directory (2)<br>

rsync error: errors selecting input/output files, dirs (code 3) at main.c(877) [receiver=3.0.6]<br>rsync: connection unexpectedly closed (9 bytes received so far) [sender]<br>rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]<br>

<br></div>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 appreciated.<br><br></div>This is on an AIX 6.1 system installed from the aix toolbox package.<br>

<div><div><br clear="all"><div><div><br>-- <br>Jonathan Aquilina
</div></div></div></div></div>