I have searched through the ARDEN documentation and there appears to be no way to backup the node configuration to a PC. Is this something that be added as a feature in future builds? I've had a few times where I had to completely reconfigure a node. I keep a hard copy of each page of my config but restoring from a backup would be a great timesaver.
Charles, K5CS
Charles, K5CS

Orv W6BI
Charles, K5CS
I don't know if this is what Orv was hinting, one way would be
> for node in localnode thisnode thatnode; do
> ssh $node.local.mesh -l root -p 2222 sysupgrade -b - > /where/ever/sysupgrade-b-$node.tar.gz
> done
(with appropriate ssh keys, YMMV, etc)
However, there's no easy way to (auto-)provision a node with an existing backup as far as I know.
vy 73 de Bernhard DM6BS
Orv W6BI
> Backup and restore have been in the nightly builds for quite a few weeks now. You'll find them in the software update area.
Well, yes ... but I usually forget to manually back up things, so I prefer to automate that
(and anyway, it is always better to take 1hr to automate something than 5sec to press a button :-) )
Are backups created via the GUI compatible with 'sysupgrade -b'?
The backup file seems to be a gzipped tar?
mni tnx es vy 73 de Bernhard DM6BS
Orv W6BI
Orv, mni tnx for inquiring.
vy 73 de Bernhard DM6BS
You'll have to set up the ssh stuff manually:
- creating the configbackup key pair (only once)
- installing the public key on the nodes, adding the nodes host keys to known_hosts (once per node)
Also, there's no cleanup of old backups yet, so you have to delete stuff every now and then.vy 73 de DM6BS
#!/bin/sh echo "########## $0 starting at `date -Iseconds`" #set -xv top=/app #top=./ now=`date -Iminutes` key=${top}/.ssh/id_rsa_configbackup kno=${top}/.ssh/known_hosts dir=${top}/node-backups/${now} if [ ! -d ${dir} ]; then mkdir -p ${dir} fi for node in NODE-1 NODE-2 NODE-3; do echo "### Backup ${node} ###" ping -q -c 5 ${node}.local.mesh status=$? if [ ${status} -ne 0 ]; then echo "##### Backup ${node} unknown/offline" else ssh -p 2222 -l root -i "${key}" -o"UserKnownHostsFile=${kno}" ${node}.local.mesh /usr/local/bin/backup \>/dev/null \&\& cat /tmp/node-backup.backup > ${dir}/${node}.tar.gz status=$? if [ ${status} -ne 0 ]; then echo "##### Backup ${node} failed: ${status}" fi fi done echo "########## $0 done at `date -Iseconds`"