8 Krypton

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.
Tags (2)
0 Kudos
5 Replies
8 Krypton

Re: How to script a NASDB backup?

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.
0 Kudos
8 Krypton

Re: How to script a NASDB backup?

do you have to ftp the file? You can grab it from control station using pscp running on a windows system.
0 Kudos
8 Krypton

Re: How to script a NASDB backup?

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

0 Kudos
8 Krypton

Re: How to script a NASDB backup?

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.

0 Kudos
8 Krypton

Re: How to script a NASDB backup?

Yep, that worked pretty darn well.  Thanks!
0 Kudos