UNSOLVED

DHoffman2

updated

17 years ago

D

DHoffman2

2 Intern

•

306 Posts

0

1232

September 24th, 2009 06:00

How to script a NASDB backup?

How can a script be created to backup the NAS DB files to a FTP server?

I have VERY little scripting experience so any help is appreciated.

Thanks.
  • gbarretoxx1

    2 Intern

    •

    366 Posts

    516

    0

    Posted September 24th, 2009 10:00

    Hi,

    the nasdb backup is already done via cron job.

    /nas/site/cron.d/nas_sys :

    1 * * * * nasadmin /nas/sbin/nasdb_backup /nas /celerra/backup 1 &>/dev/null

    The location of the backup file depends on the NAS code version, but it can be on /celerra/backup or /nas/var/backup.

    So, you just need to copy these files out of the Control Station.


    Gustavo Barreto.
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    516

    0

    Posted September 24th, 2009 11:00

    do you have to ftp the file? You can grab it from control station using pscp running on a windows system.
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    516

    0

    Posted November 30th, 2009 13:00

    pscp.exe nasadmin@CelerraControlStation_IP:/home/nasadmin/nas_backupfile.tgz .

    this will prompt you for nasadmin password, search google on how to setup public key authentication so you don't get prompted for password.

  • DHoffman2

    2 Intern

    •

    306 Posts

    516

    0

    Posted November 30th, 2009 13:00

    I've downloaded pscp, can you give me an example of the syntax to use?

  • DHoffman2

    2 Intern

    •

    306 Posts

    516

    0

    Posted December 1st, 2009 07:00

    Yep, that worked pretty darn well.  Thanks!