This is a discussion on suggestion for rsync syntax/quoting issue within the Rsync forums, part of the Networking and Network Related category; --===============1496357658== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="osLbd2FG4D+PqvuH" Content-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1496357658== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="osLbd2FG4D+PqvuH" Content-Disposition: inline --osLbd2FG4D+PqvuH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable http://www.mail-archive.com/rsync@li.../msg21380.html I ran into the same issue a few years ago, solved it, forgot the solution a= nd then rediscovered it this evening. I think my solution is actually a little simpler and easier to follow than the arrays proposed by a couple of other list members, so I thought I'd pass it on. I'm not subscribed to the list, = but it looks like non-subscribers can still post (if this gets bounced, I guess= I will know I was incorrect in that assessment!) ... ---- #!/bin/sh HOST=3Dmachine1 MIRROR=3Dmachine2 SRCDIR=3D/path/to/data DSTDIR=3D/backups/path/to/data SSH=3D'/usr/bin/ssh -c blowfish' RSYNC=3D'/usr/bin/rsync -Lavz' $RSYNC -e "$SSH" $HOST:$SRCDIR $MIRROR:$DSTDIR ---- I'm sure you've probably solved it and moved on, but I wanted to pass this = on anyway in the hopes that it's useful (or at least interesting :)). You can wrap other problematic arguments in the same way as $SSH above and pass them as well. As of version 3.0.0, rsync supports a -s flag that supposedly mitigates some or all of these kinds of issues by bypassing remote shell interpolation altogether. Dunno how well it works, because I haven't had a chance to test with 3.x yet. cheers, --=20 Scott Francis | darkuncle(at)darkuncle(dot)net | 0x5537F527 Less and less is done until non-action is achieved when nothing is done, nothing is left undone. -- the Tao of Sysadmin --osLbd2FG4D+PqvuH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (OpenBSD) iD8DBQFIIpIMWaB7jFU39ScRAhcfAJ9N/IPs+3MuEOArjKRyRIe6N2OeIQCfUN3y TqUHrOstXmT41P0E7FwVY5Y= =Sg9e -----END PGP SIGNATURE----- --osLbd2FG4D+PqvuH-- --===============1496357658== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- 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 --===============1496357658==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|