Start a Conversation

Unsolved

This post is more than 5 years old

1202

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.

366 Posts

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.

2 Intern

 • 

20.4K Posts

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.

2 Intern

 • 

20.4K Posts

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.

306 Posts

November 30th, 2009 13:00

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

306 Posts

December 1st, 2009 07:00

Yep, that worked pretty darn well.  Thanks!
No Events found!

Top