Hi all,
Since I don't want to re-invent the wheel,
is there a way to rsync remote alpine boxes ??? ( the alpine way :-) )
Is there a package that does that ???
Their configuration lies on usb sticks, ie not mounted constantly..
Thanks,
Harry.
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
Hi Harry,
> Since I don't want to re-invent the wheel,> is there a way to rsync remote alpine boxes ??? ( the alpine way :-) )> Is there a package that does that ???> > Their configuration lies on usb sticks, ie not mounted constantly..>
Natanael is the authority on "the alpine way"... but here's one way
(you'll need 1.7.29 or higher, there was a bug in lbu writing to stdout
before that)
ssh root@remotebox "lbu package -" >remotebox.apkovl.tar.gz
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
Hi Harry,
> >> Natanael is the authority on "the alpine way"... but here's one way >> (you'll need 1.7.29 or higher, there was a bug in lbu writing to >> stdout before that)>>>> ssh root@remotebox "lbu package -" >remotebox.apkovl.tar.gz>>>>> Thank's Nathan,> > I did it the opposite way,> > Thus,> > a remote server pulling and storing the config.> > Harry.> >
That's what the above does.. I can back up your box to my box with the
above command.
natebox#ssh root@harrybox "lbu package -" >harrybox.apkovl.tar.gz
I log into your box, run "lbu package -" on your machine, (the - writes
the lbu archive to stdout) which I then redirect to the file
harrybox.apkovl.tar.gz on my machine.
I now have a local copy of the remote machine's config.
From your box's perspective a remote machine pulled and stored your
config.
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
> Natanael is the authority on "the alpine way"... but here's one way > (you'll need 1.7.29 or higher, there was a bug in lbu writing to > stdout before that)>> ssh root@remotebox "lbu package -" >remotebox.apkovl.tar.gz>>
Thank's Nathan,
I did it the opposite way,
Thus,
a remote server pulling and storing the config.
Harry.
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
>> That's what the above does.. I can back up your box to my box with > the above command.>
That is correct --- Sorry!!
> natebox#ssh root@harrybox "lbu package -" >harrybox.apkovl.tar.gz>> I log into your box, run "lbu package -" on your machine, (the - > writes the lbu archive to stdout) which I then redirect to the file > harrybox.apkovl.tar.gz on my machine.>> I now have a local copy of the remote machine's config.>> From your box's perspective a remote machine pulled and stored your > config.>
Instead I used rsync ...
a) mount remote usb via
#ssh root@nathans-box "mount /media/usb"
b) rsync -az -e ssh root@nathans-box:/media/usb /this/directory
c) umount remote via
#ssh root@nathans-box "umount /media/usb"
Your opinion ???
As U understand I have this as cron job.....
that way I won't pull the config if it's not changed ....
of course some ping checks are performed beforehand, to see that the
host is alive and some return values are checked etc... bla bla bla ....
The thing is I don't have 1.7.19+ on the boxes + the boxes won't boot
with the default alpine image ( kernel modules + scd0 links are required
) ....
+ the boxes are now installed 500 Km away ....
Thanks again Nathan.
Harry.
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---