<div dir="ltr"><div>Hey Kevin<br><br></div>The path works as it is after i recreated the .current directory but im still having the issue of a directory on the remote being created with too many symbolic links in it and no files.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 4, 2013 at 8:27 PM, Kevin Korb <span dir="ltr"><<a href="mailto:kmk@sanitarium.net" target="_blank">kmk@sanitarium.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
> linkdest=$(ssh $user@$remotehost /usr/linux/bin/readlink/<br>
/home/aquj001/recievingDir.current)<br>
<br>
There probably shouldn't be a trailing / on the readlink command.<br>
<br>
If that doesn't settle it is the path in the error message the target<br>
or the link-dest?<br>
<br>
If it is the target try sending a mkdir first.<br>
<br>
On 09/04/13 09:56, Jonathan Aquilina wrote:<br>
> I have the following script that I am working on<br>
><br>
> #!/bin/bash<br>
><br>
> date=$(date +%F--%T)<br>
><br>
> #ssh parameters user=aquj001 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/<br>
> /home/aquj001/recievingDir.current)<br>
><br>
> rsync -a --compress  --link-dest=$linkdest --out-format='%i %n%L %l<br>
> %M' --omit-dir-times  "$localdir" "$user@$remotehost:$remotedir"<br>
> ssh $user@$remotehost /bin/rm -f<br>
> /home/aquj001/recievingDir.current ssh $user@$remotehost ln -sf<br>
> $remotedir $linkdest<br>
><br>
> now the issue becomes when i run it, I get the following errors.<br>
><br>
> rsync: change_dir#4<br>
> "/home/aquj001/recievingDir.2013-09-04--15:53:16" failed: No such<br>
> file or directory (2) rsync error: errors selecting input/output<br>
> files, dirs (code 3) at main.c(877) [receiver=3.0.6] rsync:<br>
> connection unexpectedly closed (9 bytes received so far) [sender]<br>
> rsync error: error in rsync protocol data stream (code 12) at<br>
> io.c(600) [sender=3.0.6]<br>
><br>
> It still creates the directory on the remote machine but its empty<br>
> and nothing but sym links. Any ideas as to what th eissue is would<br>
> be greatly appreciated.<br>
><br>
> This is on an AIX 6.1 system installed from the aix toolbox<br>
> package.<br>
><br>
><br>
> -- Jonathan Aquilina<br>
><br>
><br>
<br>
- --<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
        Kevin Korb                      Phone:    (407) 252-6853<br>
        Systems Administrator           Internet:<br>
        FutureQuest, Inc.               Kevin@FutureQuest.net  (work)<br>
        Orlando, Florida                <a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a> (personal)<br>
        Web page:                       <a href="http://www.sanitarium.net/" target="_blank">http://www.sanitarium.net/</a><br>
        PGP public key available on web site.<br>
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.20 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iEYEARECAAYFAlIne4cACgkQVKC1jlbQAQed9gCg4KlTQELztwUE3UBbGv8mZ993<br>
r0EAnRO/fsN7wgulW4S/kRKdvdCdWchH<br>
=VNAw<br>
-----END PGP SIGNATURE-----<br>
<span class="HOEnZb"><font color="#888888">--<br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Jonathan Aquilina
</div>