issues syncing between one host and another

Jonathan Aquilina eagles051387 at gmail.com
Thu Sep 5 06:54:18 CEST 2013


Hey Kevin

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.


On Wed, Sep 4, 2013 at 8:27 PM, Kevin Korb <kmk at sanitarium.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> > linkdest=$(ssh $user@$remotehost /usr/linux/bin/readlink/
> /home/aquj001/recievingDir.current)
>
> There probably shouldn't be a trailing / on the readlink command.
>
> If that doesn't settle it is the path in the error message the target
> or the link-dest?
>
> If it is the target try sending a mkdir first.
>
> On 09/04/13 09:56, Jonathan Aquilina wrote:
> > I have the following script that I am working on
> >
> > #!/bin/bash
> >
> > date=$(date +%F--%T)
> >
> > #ssh parameters user=aquj001 remotehost=qa4app
> >
> > localdir=/home/aquj001/INFENG/scripts
> > remotedir=/home/aquj001/recievingDir.$date
> >
> > linkdest=$(ssh $user@$remotehost /usr/linux/bin/readlink/
> > /home/aquj001/recievingDir.current)
> >
> > 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) [sender=3.0.6]
> >
> > 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.
> >
> > This is on an AIX 6.1 system installed from the aix toolbox
> > package.
> >
> >
> > -- Jonathan Aquilina
> >
> >
>
> - --
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
>         Kevin Korb                      Phone:    (407) 252-6853
>         Systems Administrator           Internet:
>         FutureQuest, Inc.               Kevin at FutureQuest.net  (work)
>         Orlando, Florida                kmk at sanitarium.net (personal)
>         Web page:                       http://www.sanitarium.net/
>         PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.20 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlIne4cACgkQVKC1jlbQAQed9gCg4KlTQELztwUE3UBbGv8mZ993
> r0EAnRO/fsN7wgulW4S/kRKdvdCdWchH
> =VNAw
> -----END PGP SIGNATURE-----
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>



-- 
Jonathan Aquilina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20130905/334eb937/attachment.html>


More information about the rsync mailing list