How to automate the process of taking a Full Server Backup (FSB) of a TIBCO Data Virtualization Server?

How to automate the process of taking a Full Server Backup (FSB) of a TIBCO Data Virtualization Server?

book

Article ID: KB0070103

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization TIBCO Data Virtualization 8.0.0 and higher

Description

To take a backup or an FSB of a TIBCO Data Virtualization Server via the command line, the backup_export utility is used.
For example:
 <TDV install dir>/bin/backup_export.sh -server xxx.xx.x.xx -port 9400 -pkgfile /home/backup_export_test/FullServerBackup.car -user admin -password admin -verbose -encryptionPassword 123456
Now, every time in order to generate the FSB the user has to manually run the command, but what if there is a business requirement to take a backup every day or every week. In such a case, this process can be automated like below.

Issue/Introduction

This article will mention the method to automate the task of taking an FSB of a TIBCO Data Virtualization Server.

Environment

All supported environments.

Resolution

The utility backup_export.bat (on Windows) or backup_export.sh (on Unix) is located under <install directory>\bin. Since this utility doesn't have any scheduling options, a custom scheduling program is required.

For Linux: "Cron"

Follow these steps:
1. Open the terminal or command prompt.
2. Type crontab -e and press Enter. This will open the cron table for editing.
3. If prompted, choose an editor (for example Nano) and add a new line at the end of the file to specify the cron job as below:
 0 0 * * * <TDV install dir>/bin/backup_export.sh -server xxx.xx.x.xx -port 9400 -pkgfile /home/backup_export_test/FullServerBackup.car -user admin -password admin -verbose -encryptionPassword 123456
This cron job will run the command_to_run at 12:00 AM (midnight) every day.
4. Now press "Ctrl+X" and enter "Y" to save the file before exiting.

For Windows: Using "Task Scheduler"

1. Click on Start and search for "Task Scheduler".
2. Open it and click on "Create Basic Task" and enter all the details and create the task. The summary page will look as below:
3. Click "Finish".

User-added image