Topic
5 replies Latest Post - ‏2012-11-29T23:07:33Z by HermannSW
msmps
msmps
138 Posts
ACCEPTED ANSWER

Pinned topic Backup from internal

‏2012-11-24T17:18:22Z |
Is there any way I can do backup the whole device configuration from Log targets or anything?

Or do I need to go with SOMA or Regular python scripts
Updated on 2012-11-29T23:07:33Z at 2012-11-29T23:07:33Z by HermannSW
  • SystemAdmin
    SystemAdmin
    6772 Posts
    ACCEPTED ANSWER

    Re: Backup from internal

    ‏2012-11-26T22:09:13Z  in response to msmps
    > msmps wrote:
    > Is there any way I can do backup the whole device configuration from Log targets or anything?
    Device backup through log target I doubt that you can do like that.
    > Or do I need to go with SOMA or Regular python scripts

    Different ways can be having XML FW service which will be doing the same things as SOMA.
    You can also write script using CLI command backup backup_all using perl, shell or python script.
    • msmps
      msmps
      138 Posts
      ACCEPTED ANSWER

      Re: Backup from internal

      ‏2012-11-27T15:23:24Z  in response to SystemAdmin
      Hi Kumar,
      thanks for reply.
      I'm poor at scripting. It would be great if you could please share a script which I can use it.
      • SystemAdmin
        SystemAdmin
        6772 Posts
        ACCEPTED ANSWER

        Re: Backup from internal

        ‏2012-11-27T15:31:54Z  in response to msmps
        > msmps wrote:
        > Hi Kumar,
        > thanks for reply.
        > I'm poor at scripting. It would be great if you could please share a script which I can use it.

        This thread can help you I believe.

        https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14241587&#14241587
  • msmps
    msmps
    138 Posts
    ACCEPTED ANSWER

    Re: Backup from internal

    ‏2012-11-27T16:13:26Z  in response to msmps
    thanks but my team wants some kind of shell script :(
    • HermannSW
      HermannSW
      2831 Posts
      ACCEPTED ANSWER

      Re: Backup from internal

      ‏2012-11-29T23:07:33Z  in response to msmps
      OK, this is the CLI script you need:
      $ cat backup.cli 
      admin
      password
      backup myBackup
      copy export:///myBackup.zip scp://you@yourSCPaccessibleBox/myBackup.zip
      exit
      $
      


      You can execute it simply (after adjusting "password", "you" and "yourSCPaccessibleBox") by:
      ssh yourDPbox < backup.cli
      


      This executes the commands of "backup.cli", login, full backup, "scp" backup off the device and logout.

       
      Hermann <myXsltBlog/> <myXsltTweets/>
      Updated on 2014-03-25T02:45:15Z at 2014-03-25T02:45:15Z by iron-man