WARNING: This may be broken n 6.1.0h firmware. I’m looking into it. For now, I’m running an expect script from a remote host to do these backups.
The following will backup your switch config over FTP to a remote server daily. If you have to replace your switch, you can just do a configdownload after getting it on the network to restore all your settings.
To make this happen, I created a short shell script to upload into the cron directory on the switch. You can transfer this file via SCP. I had problems with FileZilla’s SCP, so I copied it from another host, which worked fine. Just put this in a file and upload it to /etc/cron.daily/ on the switch.
#!/bin/sh
# configbackup
#
# Author: Patrick Vaughan - 7-1-09
#
# Purpose:
# Do a configupload to a remote FTP server. This process does a backup
# from AD 255, so as to get all the Zoning configuration.
#
# Change Log:
#
# License:
# Copyright (C) 2009 Patrick Vaughan
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
DEST_HOST="192.168.1.1"
DEST_USER="ftp_user"
DEST_DIR="/export/sansw"
HOSTNAME=`/bin/hostname`
PASSWORD="password"
/fabos/link_abin/ad --exec 255 "/fabos/link_sbin/configupload -p ftp "$DEST_HOST","$DEST_USER","$DEST_DIR/$HOSTNAME.cfg","$PASSWORD"" > /dev/null
exit