si_ironport Wed, 04/11/2007 - 22:11
User Badges:

You can script the backup over ssh.

ssh $host saveconfig

unfortunately this wont save all the password information, but at least its better than nothing


jaigill Thu, 04/12/2007 - 21:57
User Badges:
  • Cisco Employee,
bvanzant_ironport Fri, 04/13/2007 - 10:42
User Badges:

The mailconfig batchcommand actually supports reading in the yes/no answer to the password question. So you could do:

ssh "mailconfig [email protected] 1"

The 1 at the end says to send passwords. You can actually put the 1 anywhere on the line or with multiple email addresses.

Being paranoid without knowing the math behind it I probably wouldn't do this though. I would backup the user/password information just once (it probably doesn't change all that often?) and then do normal mailconfigs. In the event that I need to restore from a disaster I can just paste in the user/password to the most recent XML file and loadconfig. This way I don't have password hashes running around the internet each day.
bvanzant_ironport Fri, 04/13/2007 - 10:43
User Badges:

Since other folks are talking about saveconfig, the "1" trick also works there:

saveconfig 1
shannon.hagan Fri, 04/13/2007 - 18:10
User Badges:

If you are doing ssh to do this, you should do ssh -t .

ssh "mailconfig [email protected] 1"


This Discussion