~alpine/devel

4 2

[alpine-devel] Backup Confing from remote alpine boxes ....

Harry Lachanas <grharry@freemail.gr>
Details
Message ID
<496F6FEC.60708@freemail.gr>
Sender timestamp
1232039916
DKIM signature
missing
Download raw message
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
---
Nathan Angelacos <nangel@nothome.org>
Details
Message ID
<496F7CFB.701@nothome.org>
In-Reply-To
<496F6FEC.60708@freemail.gr> (view parent)
Sender timestamp
1232043259
DKIM signature
missing
Download raw message
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
---
Nathan Angelacos <nangel@nothome.org>
Details
Message ID
<497084AB.2030105@nothome.org>
In-Reply-To
<497067B2.4030708@freemail.gr> (view parent)
Sender timestamp
1232110763
DKIM signature
missing
Download raw message
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
---
Harry Lachanas <grharry@freemail.gr>
Details
Message ID
<497067B2.4030708@freemail.gr>
In-Reply-To
<496F7CFB.701@nothome.org> (view parent)
Sender timestamp
1232103346
DKIM signature
missing
Download raw message
> 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
---
Harry Lachanas <grharry@freemail.gr>
Details
Message ID
<497091CE.8080003@freemail.gr>
In-Reply-To
<497084AB.2030105@nothome.org> (view parent)
Sender timestamp
1232114126
DKIM signature
missing
Download raw message
>
> 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
---
Reply to thread Export thread (mbox)