Re: Invoking rsync from a script with null parameters

2012-11-04 Thread Joe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 No. I traced the heck out of it (bash -vx ...) and I was actually sending a null parameter as the first argument to rsync and that made it get out of bed on the wrong side. Here are some more details as to what happened: http://askubuntu.com/questi

Re: Invoking rsync from a script with null parameters

2012-11-04 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I suspect you are missing a space somewhere and are ending up with 2 parameters stuck together. You can have bash output the rsync command line it intends to run to make sure or you can just use " " instead of "" as extra spaces between parameters will

Invoking rsync from a script with null parameters

2012-11-04 Thread Joe
I'm working on a bash backup script using rsync. (kubuntu precise 12.04, rsync 3.0.9-1ubuntu1) To avoid having a number of slightly different rsync commands, I would like to use shell variables as part of the rsync command. I.e.: DRYRUN="-n" rsync "${DRYRUN}" more parameters ... This does not wo