Hi Gene,
On 8/30/19 10:16 PM, Gene Heskett wrote:
> I need some ideas on how to separate this into backups that stay with the
> installs.
>
> So how to the rest of you handle this, so in the event of needing to do a
> recovery, one is prevented from mixing up packages between distro's?
>
> Thanks for any good ideas.
My idea would be to separate the OS specific DLE into different amanda
configs, then use eg. "amdump rpi-common" and "amdump rpi-sd1", "amdump
rpi-sd2" and alike.
To make the distinction of -sdX somewhat automatic, I'd probably create
a wrapper script that ssh's into the rpi using the static hostname and
cats some file on the sd, eg.
```
#!/bin/bash
hostname=rpi-3b
config=$("ssh $hostname cat /etc/amanda/config_to_use")
amdump $config
```
With /etc/amanda/config_to_use containing "rpi-sd1", "rpi-sd2" etc. on
the different sd cards.
I imagine this should work right away if you have ssh auth configured
(not too strictly) so amanda user can get to rpi-3b via ssh already
without password or questions.
Another way could be to split OS specific DLE into different hostnames
eg. "rpi-sd1" which you all map to the same ip address as the static
hostname (eg. via /etc/hosts), but you could then use to distinct them
for amanda.
Yours, Uwe