#! /bin/bash # make a copy of opt, etc and root, and put it in /home/system rsync -a --delete /opt /etc /root /home/system/ # get a copy of all router configs, and put it in /home/routers # get router configurations. NOTE: we really only need the backups directory # but by getting ethernet we also have the network configuration, and by # getting ovpn, we have the certs. So, we just get the whole thing. for router in 'remote-router' router do /opt/camp/rsbackup/rsbackup_p2p/scripts/routers $router done # get a copy of all Debian package selections and put in # wipl-server.selections dpkg --get-selections > /home/system/server.selections exit 0;