Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Using DBAdmin to backup to external FTP server

Hi

I am trying to script an automatic FTP backup of a WCS system using the DBAdmin command from a command line.

As the WCS was previously a WLSE it is running Linux via the WSC conversion part code WCS-WLSE-APB-100, it has then been further upgraded and is running 6.0.170.0 Base. Linux version is: 2.6.18-8.el5 (brewbuilder@ls20-bc2-14.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Fri Jan 26 14:15:21 EST 2007)

When I execute the command I get the following:

[root@WCS bin]# ./dbadmin.sh remotebackup 10.0.0.1 test test

Do you want to backup report history? (y/n) n

Report history will not be backed up.

Exception in thread "main" java.lang.IllegalArgumentException: Path must not be empty

        at org.apache.commons.io.FileSystemUtils.freeSpaceOS(FileSystemUtils.java:190)

        at org.apache.commons.io.FileSystemUtils.freeSpaceKb(FileSystemUtils.java:166)

        at com.cisco.server.util.FreeSpaceChecker.freeSpaceGB(Unknown Source)

        at com.cisco.server.util.FreeSpaceChecker.checkDirectoriesForBackup(Unknown Source)

        at com.cisco.packaging.SelectDirAndBackupDb.backupDatabase(Unknown Source)

        at com.cisco.packaging.SelectDirAndBackupDb.backupDatabase(Unknown Source)

        at com.cisco.packaging.SelectDirAndBackupDb.backupDatabase(Unknown Source)

        at com.cisco.packaging.SelectDirAndBackupDb.remoteDatabaseBackup(Unknown Source)

        at com.cisco.packaging.DBAdmin.remoteBackup(Unknown Source)

        at com.cisco.packaging.DBAdmin.runMain(Unknown Source)

        at com.cisco.packaging.DBAdmin.main(Unknown Source)

[root@WCS bin]#

Any ideas where I am going wrong or could anyone suggest an alternative method of backing up the WCS backups off this appliance to a different host?

Thanks

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Using DBAdmin to backup to external FTP server

Found it.  Works in mine because this bug is in your code .170 and not mine .181.


CSCte81786   dbadmin remotebackup generates errors, does not do ftp backup.

An upgrade should help

4 REPLIES
Cisco Employee

Re: Using DBAdmin to backup to external FTP server

Seems to work fine for me:

nms-xx:/opt/WCS6.0.181.0/bin# ./dbadmin.sh remotebackup 64.x.x.x spschmidt xxxxxx
Do you want to backup report history? (y/n) n
Report history will not be backed up.
Backing up the database ... to Temp/1268245111903
Database backup initiated.
Copying extra files ...
Database backup done.  Taring the backup files ...
Backup succeeded
Backup resides on host=64.x.x.x dir=/remote_nms//opt/WCS6.0.181.0/webnms/Temp/nms_backup_of_wcs.nmsbackup

Can you add a cat of /etc/redhat-release to the post

New Member

Re: Using DBAdmin to backup to external FTP server

Hi

Output of the command you suggested is:

[root@WCS etc]# cat redhat-release
Red Hat Enterprise Linux Server release 5 (Tikanga)
[root@WCS etc]#

Good to hear it works for you as it gives me some hope of finding the solution. All documentation regarding the dbadmin command refers to v4.1 and I was wondering if it had been depreciated from later versions!

Cisco Employee

Re: Using DBAdmin to backup to external FTP server

Found it.  Works in mine because this bug is in your code .170 and not mine .181.


CSCte81786   dbadmin remotebackup generates errors, does not do ftp backup.

An upgrade should help

New Member

Re: Using DBAdmin to backup to external FTP server

Thanks for the answer and quick response. An upgrade appears the way forward.

Kind regards

679
Views
0
Helpful
4
Replies
CreatePlease to create content