Results 1 to 6 of 6

Thread: how to backup a netscreen25

  1. #1
    Brian
    Guest

    how to backup a netscreen25

    Does anyone know how to perform a backup on a netscreen 25 firewall?
    I have some old backups of this firewall, so I know somehow someone
    backed it up, but that person is not with this company any longer and
    I do not know how to make a backup of the firewall.

    I have some big changes to make soon and I would like to backup the
    firewall first. Please let me know if you are familiar with this
    device.

    Thank you,

    B

  2. #2
    Burkhard Ott
    Guest

    Re: how to backup a netscreen25

    On Mon, 26 Jul 2010 09:48:06 -0700, Brian wrote:

    > Does anyone know how to perform a backup on a netscreen 25 firewall? I
    > have some old backups of this firewall, so I know somehow someone backed
    > it up, but that person is not with this company any longer and I do not
    > know how to make a backup of the firewall.
    >
    > I have some big changes to make soon and I would like to backup the
    > firewall first. Please let me know if you are familiar with this
    > device.
    >
    > Thank you,
    >
    > B


    Yep, create a readonly backupuser who is able to login via ssh-key (i
    describe my automatic version I use).

    Now you can scp:$IP:ns_sys_config $TARGET, I've wrote me a script who
    does it every hour, if you interested I'm happy to share it.

    cheers

  3. #3
    Brian
    Guest

    Re: how to backup a netscreen25

    On Jul 26, 6:38*pm, Burkhard Ott <news2...@derith.de> wrote:
    > On Mon, 26 Jul 2010 09:48:06 -0700, Brian wrote:
    > > Does anyone know how to perform a backup on a netscreen 25 firewall? I
    > > have some old backups of this firewall, so I know somehow someone backed
    > > it up, but that person is not with this company any longer and I do not
    > > know how to make a backup of the firewall.

    >
    > > I have some big changes to make soon and I would like to backup the
    > > firewall first. *Please let me know if you are familiar with this
    > > device.

    >
    > > Thank you,

    >
    > > B

    >
    > Yep, create a readonly backupuser who is able to login via ssh-key (i
    > describe my automatic version I use).
    >
    > Now you can scp:$IP:ns_sys_config $TARGET, I've wrote me a script who
    > does it every hour, if you interested I'm happy to share it.
    >
    > cheers


    Yes that would be great, thank you.

  4. #4
    Burkhard Ott
    Guest

    Re: how to backup a netscreen25

    On Wed, 04 Aug 2010 17:33:42 -0700, Brian wrote:


    > Yes that would be great, thank you.


    NP here we go:


    #!/bin/bash

    DATE=`date +%Y%m%d-%H%M%S`
    KEY=<place the key here e.g. path/id_pub.das>
    DST=/mnt/backup/netscreen
    DEBUG=0

    getconfig()
    {
    if [ $DEBUG -eq 1 ];
    then echo scp -i $KEY backup@"$1":ns_sys_config $DST/
    netscreen"-"$DATE.conf;
    scp -i $KEY backup@"$1":ns_sys_config $DST/
    netscreen"-"$DATE.conf;
    else scp -q -i $KEY backup@"$1":ns_sys_config $DST/
    netscreen"-"$DATE.conf;
    fi
    find $DST -type f -mtime +1 -name "*.conf" -exec bzip2 {} \;
    find $DST -type f -mtime +60 -name "*.bz2"| xargs rm -rf
    }

    if [ "$1" == "" ];
    then echo "usage $0 <IP-adddess>";
    exit 1;
    else getconfig $1;
    fi
    exit 0;


    the call is $SCRIPTNAME $IPADDRESS (I have to backup more than one), 60
    days it automatically bzips the files, I use it to archive it to tape.

    If you have problems just let me know.

    cheers

  5. #5
    Junior Member
    Join Date
    Jun 2011
    Posts
    1
    Hi,

    this will sound like a silly question, so my apologies

    The backup script for the netscreen firewalls, where would you run this?

    We have a Solaris server where we want all our netscreens to backup to, and would you know what config work i would need to make on the netscreens to make this work?

    Scripting is not my speciality and could really do with a step by step guide, what i need to do on the Solaris machine and on each netscreen for this to then work

    Please help as no daily backups are being taken and could really do with all the help and step by step guide

    cheers

  6. #6
    Thanks for an useful piece of information.
    Online Diploma

Similar Threads

  1. 802.11n router recommendations and opinons...?
    By Randall in forum alt.internet.wireless
    Replies: 20
    Last Post: 04-22-09, 07:02 AM
  2. No Backup Set in Backup Exec 12
    By themillerj in forum Networking Forum
    Replies: 0
    Last Post: 04-28-08, 09:28 AM
  3. Backup Batch File
    By wch5908 in forum Software Forum
    Replies: 1
    Last Post: 02-09-08, 07:03 PM
  4. Setting Up a Good Backup Job
    By themillerj in forum Networking Forum
    Replies: 3
    Last Post: 07-27-07, 08:53 AM
  5. Umm how does it work?
    By Rivas in forum Console Gaming
    Replies: 17
    Last Post: 05-11-07, 12:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •