![](https://seccdn.libravatar.org/avatar/41ed85ec60b719fa1654d12375dd9bd6.jpg?s=120&d=mm&r=g)
On Thu, 2005-02-17 at 03:14, Susemail wrote:
On Wed, 2005-02-16 at 20:38, Susemail wrote: <snip> but just commenting out this section doesn't work well. I would like to know how to eliminate this section because that would eliminate the creation of
On Wednesday 16 February 2005 17:20, Ken Schneider wrote: the useless directory. But as I stated in my original email just commenting it out leaves a script that doesn't seem to work as well.
As a work around I changed mkdir to touch. Even though there's nothing to touch, rsync backs up the test file and doesn't create the unwanted folder. This works, but there must be a better, more standard way to do this. Jerome
ps When I change SOURCES="apollo@Linux:Test/" to SOURCES="root@Linux:/" the script doesn't work using the root password for the 'Linux' computer:
Then define a different variable for the directory creation on the destination. Set up ssh keys on both machines and you won't need to supply a password in your script. Check the docs for info on doing this, I don't recall how to as it has been a while. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 * Only reply to the list please* "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge