rsync - new directory if one exists on the remote host
am 23.10.2007 22:07:31 von RocketMan
This:
rsync -avx -e ssh ./filename
DestinationHostUserName@DestinationHost:directory/
will put filename into that directory and make one if its not already
there. HOWEVER, I'd like to make a directory-1, etc until a
directory is not on there THEN create it.
I bet rsync doesn't do this but please prove me wrong...or show me how
to do this via ssh I guess..
THANKS
Re: rsync - new directory if one exists on the remote host
am 24.10.2007 01:33:00 von Miles
On Oct 23, 3:07 pm, RocketMan wrote:
> This:
> rsync -avx -e ssh ./filename
> DestinationHostUserName@DestinationHost:directory/
>
> will put filename into that directory and make one if its not already
> there. HOWEVER, I'd like to make a directory-1, etc until a
> directory is not on there THEN create it.
>
> I bet rsync doesn't do this but please prove me wrong...or show me how
> to do this via ssh I guess..
>
> THANKS
I'm trying to understand the purpose of this. Do you want to keep the
old versions around?
Miles
Re: rsync - new directory if one exists on the remote host
am 24.10.2007 16:40:19 von RocketMan
On Oct 23, 5:33 pm, Miles wrote:
> On Oct 23, 3:07 pm, RocketMan wrote:
>
> > This:
> > rsync -avx -e ssh ./filename
> > DestinationHostUserName@DestinationHost:directory/
>
> > will put filename into that directory and make one if its not already
> > there. HOWEVER, I'd like to make a directory-1, etc until a
> > directory is not on there THEN create it.
>
> > I bet rsync doesn't do this but please prove me wrong...or show me how
> > to do this via ssh I guess..
>
> > THANKS
>
> I'm trying to understand the purpose of this. Do you want to keep the
> old versions around?
>
> Miles
In a way. If this script is run, I want it to be obvious where in the
morass of directories where everything went. If there is already
something there, it has other files for a similar purpose and these
new files should not be intermixed.