Automating Backup of Config

I'm looking to setup a way to backup the configuration of my C370's.  Currently I know how to do so manually through the GUI.  Is there a way to automate this and back it up through the CLI?  I was searching through the CLI yesterday but I couldn't find what the command was to save the config out.  I would assume if I could find the command I could setup a job through our Kiwi CatTools to do so.  Let me know if anyone knows how to do this or if you've found another way to do this effectively.
Thanks,
Mike

Hi Mike,
There are actually a couple of ways to do this.
You can backup the configuration from the CLI using the command saveconfig. You can load a configuration file using the command loadconfig. I would run those commands first just so you can see the process. Basically you can script something around these commands that would get the job done.
We also have a nice knowledgebase article that covers this subject as well. The approach is a little differnet but the results are the same.
How can I schedule or automate the backup of my appliance's XML  configuration file?  Where does it reside?  How do I do a scheduled  backup of the configuration file from a Windows system?
Environment:
- ESA with AsyncOS 6.x or later.
- A designated host for initiating and storing backups.
NOTES:
Some  familiarity with OS scripting and task scheduling is necessary to  understand and safely implement these tasks.  Please understand that  many of these concepts are outside of the scope of IronPort customer  support and these sample scripts are certainly not supported.  While  these steps have been successfully tested, this article is primarily for  demonstration and illustration purposes.
The configuration file  is dynamically generated when using the save or mail configuration tools  from the CLI or GUI.  To have an effective backup, it's best to  "unmask" the passwords, which allows the appliance to place a hashed  form of the passwords for the local administrative accounts in the  configuration file.  For this reason, we can not simply copy a flat  "running configuration" file from the device.  This method allows us to  first access the appliance, issue a command to dynamically build the  current configuration,  and either save or mail a copy of this file  somewhere remotely, without any user intervention.  Once this is  accomplished, we can then repeat or schedule this task to occur on a  regular basis.
To quickly and automatically backup configuration files with passwords unmasked:
1)  Generate an SSH keypair to use.  Verify that you can access your  appliance via SSH without having to manually enter a password.  Details  on this operation can be found in KB article #283.
2) Create  script to login to the appliance, save the config, and copy it (or mail  it).  Two such simple examples written in BASH:
Example #1: Saving the configuration to a specified host
#! /bin/bash
# this saves the config and then copies it locally via SCP to a directory called ironport/config-backups
HOSTNAME=test.com
USERNAME=admin
FILENAME=`ssh $USERNAME@$HOSTNAME "saveconfig yes" | grep xml | cut -f 3 -d " "`
scp $USERNAME@$HOSTNAME:./configuration/$FILENAME./ironport/config-backups/.
Example #2: Emailing the configuration to an email address
#! /bin/bash
# this mails the config to MAILDEST
HOSTNAME=mx.test.com
USERNAME=admin
[email protected]
ssh $USERNAME@$HOSTNAME 'mailconfig $MAILDEST yes'
NOTE: that similar logic can be applied in any OS scripting language  such as VB or batch scripts for Windows.  These scripts are intended as  rudimentary examples only.
3) Use cron or AT or similar scheduling  tool to kick off the job regularly.  Services like cron or Windows task  scheduler are easy tools that can be used to automate simple jobs like  this.  For instance, the *NIX CRON config file typically follows this  format:
minute (0-59), hour (0-23, 0 = midnight), day (1-31), month (1-12), weekday (0-6, 0 = Sunday), command
So a good example entry to run this script every day at 2:00 AM would look like:
00 02 * * * /location/your_script.sh
Alternatively, here is another method of automating a configuration backup.
How do I do a scheduled backup of the configuration file from a Windows system?
With the following procedure, you can backup the configuration file regularly from a Windows system.
1.  Install the terminal emulator "putty" under C:\
2.  Create a text file with following line and name it "send_config.txt" and place it under C:\ (Change the [email protected] to the email address you would like configuration file to be sent to)
mailconfig [email protected]
3.  Create a text file with following lines and name it "send_config_batch.bat" and place it under C:\
(Change  the "hostname" to the resolvable hostname or the IP address of your  appliance and the "password" to your actual password for admin account.)
C:\putty.exe -ssh hostname -l admin -pw password -m C:\send_config.txt
exit
4.  Add the "send_config_batch.bat" to the Windows' scheduled task.
The Configuration file will be sent to the address specified in the "send_config.txt".
Hope this helps!
Christopher C Smith
CSE
Cisco IronPort Customer Support 

Similar Messages

  • UC560 - Nightly automated backup - Possible?

    Hi,
    I have an UC560 system. I would like to schedule a nightly backup job to backup all configuration and voice mails. Is it possible? Configuration doesn't change much on daily basis but the voicemails do and need a way to back them up unattended.
    Please point me to right direction if you have figured out a good work around or solution.
    Thanks,        

    Hello,
    This is not possible through CCA, but you can use CLI and the CUE web gui to do this. There are also 3rd party tools you can use to do the automated backups.
    See this post for the more info about backups: https://supportforums.cisco.com/thread/2155698
    Here is an example how you would do this in CME:
    kron occurrence monthly at 01:23 june 20 recurring
      policy-list save-config
    kron policy-list save-config
      cli copy system:/running-config tftp://192.168.1.2/router-confg.txt
    In the CUE web GUI under Administration you need to define the backup server. Then you can create a scheduled backup.
    You will need FTP and TFTP servers running somewhere to backup the configurations and data to.
    Hope this helps.
    Thanks,
    -john

  • V12 (GA) switch issues. DB is stuck in creation state, automated backup issues, no monitoring data 1h

    Hi,
    On Friday we have switched databases to V12 version as it was announced that they are now generally available, but I have doubts that everything was tested by Microsoft, as immediately we have several issues:
    1. We had automated backups scheduled on all DB. On Sunday everything started to not work properly. There were more than 10 backup databases created like AutomatedSqlExport_X_20150201T050000Z and emails send that backup cannot be created. We had to
    remove them manually except one.
    2. One of the backup database is still in creating state from yesterday so we cannot remove it.
    3. We have turned off all automated backups in Azure Portal, but I'm not sure if they can be turned on again. I do not want to have 20 DB billed every week as autometed scripts are not working properly.
    4. After switch in Management Portal only last hour metrics are available. Switching to 24h or more returns all zeroes. When do we count on the fix?
    PS. tracking ID of db that is in creating state: 44530DC6-B174-4FAA-A4D6-2C01CA20CB85
    Regards,
    Rafal

    Hi Gluwer,
    Thanks for posting here.
    I suggest you to open a support case as this needs more back-end information which cannot be discussed over the forum.
    Refer: http://azure.microsoft.com/en-us/support/options/
    Girish Prajwal

  • Automated Backups failing since V12 Update

    Hi,
    I recently upgraded my database server to the V12 (GA in my region). I have 3 servers running and configured for an automated backup at 12:00 AM every day.
    This morning I discovered we had 20 additional SQL Servers running, each one with an hourly time stamp from the last which I can only imagine is a re-try of the original export. When trying to delete these databases the portal said "An error occurred
    whilst existing this request, please re-send". I did try to re-send several times for each database and they all failed. Approximately 20 minutes later all the databases started to just disappear on their own (After I had turned off the automated backup
    in the settings).
    I checked over the upgrading documentation and couldn't find any details of problems with the Automated backups post upgrade so I am unsure if this is a bug in the system or a problem on the particular databases?
    I have manually run the backups as indicated in the error email and that worked fine.
    Thanks

    Hello CAWeb,
    My name is Eli Fisher and I am a Program Manager on the SQL DB team. We are aware of the issue you have stated above and there is work being done to fix the issues.
    I would be glad to look into your specific issue for more details. If you would like, you could send your database name and server name to my email address and I could look further into what is happening. My email alias is elfish at Microsoft dot com.  
    Additionally, if you are using automated export for backup purposed, we have built in backups for all Basic, Standard, Premium databases. You can use these backups to restore up to any point in time within your database's backup retention period. Additionally
    a daily backup is made geo-redundant so if there is a regional disaster you would be able to restore your database. If you would like to learn more about these capabilities look here:
    Point in Time Restore Blog http://azure.microsoft.com/blog/2014/10/01/azure-sql-database-point-in-time-restore/
    Geo-Restore Blog http://azure.microsoft.com/blog/2014/09/13/azure-sql-database-geo-restore/
    How-To use the Restore capabilities:
    Geo-Restore: http://azure.microsoft.com/en-us/documentation/articles/sql-database-geo-restore-tutorial-management-portal/
    Point in Time Restore: http://azure.microsoft.com/en-us/documentation/articles/sql-database-point-in-time-restore-tutorial-management-portal/
    Restore a deleted database: http://azure.microsoft.com/en-us/documentation/articles/sql-database-restore-deleted-database-tutorial-management-portal/
    Hope this helps!

  • Time Machine fails during automated backups

    I use a 1.5Tb external drive connected by USB as my backup drive for Time Machine. I reformatted it, and the first backup Time Machine did was successful. However, it can never do the regular automated backups, it keeps saying "Unable to complete backup. An error occurred while creating the backup folder." I tried going into Disk Utility and "repairing disk" and it doesn't help. The only way it works again is if I eject the drive (which it has to be forced to do every time), turn off the drive, and turn on again. It can then usually do an initial backup, and then again it fails the automated backups. I'm beginning to think it is the drive's issue. It is an internal drive that's housed in a external enclosure.

    thatweskid wrote:
    I have a Mac Pro running Mac OS 10.6.4 that freezes during incremental time machine backups. The initial backup will run fine, but during a subsequent backup the machine will always lock up and need to be restarted.
    I've tried repairing the permissions looking for trouble in log files, but haven't had any luck.
    Try verifying your internal HD, per #A5 in Time Machine - Troubleshooting (or use the link in *User Tips* at the top of this forum). If that fails, you'll have to use your Install disc to repair it, per the yellow box there.

  • Automated Backups using Intervals

    Greetings!
    I am seeking for an automated backup solution.
    I want to schedule a backup task on the following pattern.
    1.     On Every Monday:     Full (Level 0) bakup
    2.     From Tuesday-Friday:     Incremental (Level 1 – Differential) Backup
    3.     Saturday-Sunday:     No Backups
    I want to make sure that all the above mentioned backup tasks must be taken automatically, through the scheduler.
    I have tried to schedule it, but I don’t know how to use the rman script in the job-scheduler section in oracle.
    Your advice and solution are solicited...
    Best Regards
    Zeeshan

    You didn't mention your database version.
    If your database is 10g you can use job scheduler.
    Go to this link. It will be helpful.
    http://www.oracle-base.com/articles/10g/Scheduler10g.php
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/scheduse.htm
    Regards
    Asif Kabir

  • How to disable Automated  Backups by EM 11gR2 ?

    Hello
    How to disable automated backups in Oracle 11gR2 by Enterprise Manager?
    I can't find any documentation to do this in 11gR2 and can't find this in EM. Is it possible by EM?
    Thanks in Advance
    Edited by: kozand on 2011-09-20 02:37

    There I can define a new "automated backup" I can't see where I can DISABLE defined "automated backup".

  • Automated backups does not start

    I have upgraded both my Iphone 3gs and my Ipad 1 to IOS 5.
    Everything seems to work ok - However having enabled backup to Icloud I would expect that my devices would once a day be automaticly backed up to the cloud.
    I have now watched both devices for some days, and none of the performs automated backups. 
    I have succeded in performing a manual back-up to Icloud of both the devices - even as the process took quite a while.
    I place them both in the net adapter and both devices are connected to my wifi-network.
    If someone please can tell me if I do anything wrong or help me to a way to get the automated backup to work I would really appreciate it.
    When is the automated backup perfomed? Is the bacup incremental or is it a full backup?
    Thank you in advance
    Henrik

    I have upgraded both my Iphone 3gs and my Ipad 1 to IOS 5.
    Everything seems to work ok - However having enabled backup to Icloud I would expect that my devices would once a day be automaticly backed up to the cloud.
    I have now watched both devices for some days, and none of the performs automated backups. 
    I have succeded in performing a manual back-up to Icloud of both the devices - even as the process took quite a while.
    I place them both in the net adapter and both devices are connected to my wifi-network.
    If someone please can tell me if I do anything wrong or help me to a way to get the automated backup to work I would really appreciate it.
    When is the automated backup perfomed? Is the bacup incremental or is it a full backup?
    Thank you in advance
    Henrik

  • Automated Backup Does Not Seem to be Working

    I tried to set up an automated backup on an Azure Web App. It's on the Standard Plan. It allowed me to configure it and after I did so I got a notification saying it was set up. And I see now that it has a status of "Created". But it does not seem
    to have moved any further -- and it has been about 15 minutes.
    I did successfully get a manual backup of the site to work last night with the same configuration.
    Any ideas as to what I may be doing wrong?
    Thank you.

    Hi,
    I would request you to check under backup options, scheduled backup is on.
    And also please make sure that the Backup and Restore feature requires an Azure storage account and container that must belong to the same subscription as the web app that you are going to back up.
    Do check this and let us know so that we can investigate further.
    Regards,
    Azam khan

  • Automated backups of OSX Server 10.5 with Time Capsule (TC)

    I am running OSX 10.5 Server on a G5. The server is working well. I have the server plugged into a TC. I would like to do automated backups from the server to the TC.
    I can read and write to the TC disk fine from the server.
    When I try to configure Time Machine to do automated backups of the server to the TC it does not work. I set the preferences in TM. It seems to accept them. But the configuration never gets saved, and so TM always complains "Time Machine Error - No backup volume has been selected. To select a backup volume, open System Preferences and choose Time Machine."
    This is of course is what I have just done, but the changes are not getting saved.
    Any ideas?
    Thanks
    A

    jp6940 wrote:
    I only have 16gb of my 120gb? hard drive left to use. Will the Time Capsule "mirror" my hard drive or can I "move" some of my large files (iTunes and iPhoto) over to the TC to free up space on my G4's hard drive?
    If you use Time Capsule with Time Machine, almost all of your computer's disk drive contents (except what you exclude) will be backed up to the Time Capsule disk. If you don't use Time Machine, you can put whatever you want to on the Time Capsule disk.
    You can also attach an external USB drive to your Time Capsule and move anything you want to that.
    I also have an Apple TV. Will this be a problem being connected too?
    No.
    I am a little confused as to how to do this. My G4 is getting pretty sluggish, and I want to clean it up some. What program can use to help get rid of the old programs I have that are not using and trash them? Do I just drag them to the trash?
    For the most part, dragging programs to the trash will eliminate all but "preference" files. To locate those, look in <yourhomefolder>/Library/Preferences.

  • Automated Backup and Backup Jobs

    While I install oracle 11g release 2 the installer asked me :-
    if I want to enable or disable automated backups for my database. if enabled, then the backup jobs uses
    the specified recovery area storage
    Please help me to get knowledge about
    1- the automated backups
    2- the recovery area storage
    Thanks a lot.

    1)If you configure automated backups, oracle will run rman daily backup to backup all datafiles to flash recovery area
    http://docs.oracle.com/html/B14399_01/install_overview.htm
    2)configure flash recovery area using db_recovery_file_dest and db_recovery_file_dest_size.
    Flash recovery area is the area where you can store permanent and transient files (like backups)
    http://docs.oracle.com/cd/B19306_01/backup.102/b14192/setup005.htm

  • Any recommendations for an automated backup application?

    Hi,
    A company that I work for is looking for an automated back up solution.
    Currently, they have Intel iMacs running 10.4.10. They want to have automated backups to their Windows server. The protocol used is Samba, if I am not mistaken. They do not want to back up their entire hard drives, only certain files.
    The dot mac Backup application is not what they want.
    I am not familiar with automated back up solutions in an office environment.
    Any recommendations are appreciated!

    I'm not sure if they want to spend the money on an Enterprise level solution, but if they do then there's one outstanding product: BRU.
    If they are looking for something mainly client oriented but that can backup to a network device then my choice is Synchronize! Pro X because it provides an almost complete backup solution. About the only thing it cannot do is backup across multiple optical media. It supports backup to network devices and will even mount a network device if required. It also supports a fairly easy method of creating backup sets consisting of selected files and/or folders.

  • Automated backup and update of configs after pacman upgrade

    First, after upgrade do
    #updatedb && locate .pacnew >newconfigs
    Then, check entries - read caution below
    Important - remove any entries (e.g., password files) that need careful, individual updating.
    But, for bulk updating these scripts are handy.
    (p.s., thanks for the replies)
    #vi newconfigs
    Make backup directory
    #mkdir -p /home/original_configs
    To backup original(s)
    #for i in $(cat newconfigs |sed 's/.pacnew//'); do cp -v $i /home/original_configs/ ; done
    To overwrite original(s) with <file>.pacnew
    #for i in $(cat newconfigs); do cp -v $i `echo $i |sed 's/.pacnew//'`; done
    You may wish to keep your .pacnew files in their
    (1)respective directories, (2)move them all to a central directory, or, (3)delete them
    (1) do nothing
    (2) choose or make directory to back them up to, say, mkdir -p /home/pacnew_configs,
          then issue this command
         #for i in $(cat newconfigs); do mv -v $i /home/pacnew_configs/; done
    (3) #for i in $(cat newconfigs); do rm -v $i; done
    Last edited by mssgs (2009-11-13 02:37:24)

    I wouldn't like any kind of automated procedure messing around with my system's configuration files. My preferred way of dealing with .pacnew files is using `diff /foo/bar{,.pacnew}' to get an overview of the changes and then either 1) adding the changes to the original config and deleting the .pacnew file, or 2) introducing my modifications to the .pacnew file and moving it to the location of the original file. I'm quite sure there is a better way to handle configuration changes, but the amount of .pacnew files I've dealt with so far is very limited to warrant investigating other ways.
    Your instructions are way too dangerous, in my opinion. Imagine the disaster if you happened to overwrite your /etc/{passwd,shadow} with the one that comes with an update. All user accounts and their passwords would be lost.

  • ACE-20 Module: automated backup of configuration

    Hi All,
    I am currently stuck to setup an automated configuration backup for my ACE Blades.
    I found a script to backup the ACE from the Cisco ANM box but unfortunately I am not very familiar with Linux.
    Has someone a hint or already an automated solution (script) in place, to "pull" the ACE config from a Microsoft system ?
    System State:
    ACE IOS A2.(1).5
    Thanks in advanced for your reply
    Saluti
    Alessandro

    Hello Alessandro,
    If you upgrade to the latest ACE software, which is A2(3.0), you can take advantage of the new backup and restore feature.  With this, the ACE will backup all of the following and add it to a .tgz file:
    Running-configuration files
    Startup-configuration files
    Checkpoints
    SSL certificates
    SSL keys
    Health-monitoring scripts
    Licenses
    You could use an Expect script to periodically log into the ACE, create the backup, and copy it off the ACE.  The backup and restore feature is documented here:
    http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA2_3_0/configuration/administration/guide/managesw.html#wp1244360
    Another option for you would be to use the Application Networking Manager (ANM).  It is a graphical user interface for ACE configuration, management, and monitoring.  It also allows you to perform backups (and restores).
    ANM - Performing Device Backup and Restore Functions
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/application_networking_manager/3.0/user/guide/UG_virtual_contexts.html#wpxref82223
    Hope this helps,
    Sean

  • How to backup CAM config data?

    Hello all!
    From time to time, customers ask me if there is a way to backup/restore CAM config data on the management host. IT is clear, that all the array config is stored on the DACstore at the array itself. But there is some data on the management host only (mail configuration, registered arrays and such). In a big (or complex) environment, customers want to have a backup of the CAM config.
    I searched SunSolve, manuals (CAM release notes, install guide, admin guide) and this forum, but couldn't find anything. I assume, most or even all of the data is located somewhere in the CAM installation tree under /opt, but there is quite a bunch of subdirs and files.
    Can anybody shed some light into this? Thank you.
    wolfgang

    I just checked the Import/Export functionality. Reslt is a XML file with the descripion of the registered storage systems (disks, volumes, profiles, etc.). Since the "Administrator" menu item belongs to a specified storage system, I already expected this behaviour. I have to do an export per registered array.
    What I want, is a backup of users, notification settings, and such. In short: everything, what is available unter "General Configuration". Those paramters are valid for an entire CAM installation and not on a "per storage controller" basis. Of course not only backup but also restore.
    Anybody some more ideas?
    wolfgang

Maybe you are looking for

  • Create single-roles in satellite-system

    Hello everybody, I want to create Single-role´s in a satellite-system over RFC but the Fm´s in the Functiongroup PRGN are not remotable. Is there an alternative way to create these single-roles in a satellite-system? Up-/download and transport functi

  • How do I turn off auto flip on my pictures when I use the front face camera? I dont want it to flip the picture after I take it, I have a 4S

    When I take pictures using the front face camera on my phone it flips them, it didn't use to do that thats why I know there has to be a way to turn it how, but how?

  • Click Wheel does not work

    My ipod turns on, but the click wheel no longer works. Anyone know how to fix that?

  • Price condition rable

    hello Together , i have add the below Tcode ME22 Change Purchase Order, ME22N Change Purchase Order ,ME24 Maintain Purchase Order Supplements ,MEMASSPO - Mass Change of Purchase Orders  but has restrictions and exclusion to Price conditions table and

  • Immediately REquired

    Dear guys, I m smart DBA in my Organisation.I have 800 Clints.I m using on trial basis Ms Windows With Oracle HTTP Apche Server 1.3 . My existing Environment was Two Oracle Names servers 1 Connection Manager Five Oracle Database Servers with 700 Clie