Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

Extract and back-up current InterScan Messaging Security Virtual Appliance (IMSVA) configuration to FTP server

    • Updated:
    • 4 Jun 2019
    • Product/Version:
    • InterScan Messaging Security Virtual Appliance 9.0
    • InterScan Messaging Security Virtual Appliance 9.1
    • Platform:
    • N/A N/A
Summary

Learn how to create a backup of the current IMSVA configuration and save it to your FTP server.

Details
Public

The procedure below will make use of the Cron (time based job scheduler) to extract current IMSVA configuration and to run a script to transfer the configuration to your FTP server.

  1. SSH to the IMSVA server and login as "root".
  2. Run the following command to create the ftpshare directory:

    mkdir -p /root/ftpshare

  3. Go to the directory:

    cd /root/ftpshare

  4. Create the script by running this command:

    vi ftpscript.sh

  5. Press the 'I' key to go to the inset mode.
  6. Copy the following script on the "Insert" mode:

    #!/bin/sh

    # Put FTP server details and credentials here
    SERVER="X.X.X.X"
    USERNAME="yourusername"
    PASSWORD="yourpassword"

    cd /root/ftpshare

    # login to remote server
    ftp -n $SERVER EOF
    user $USERNAME $PASSWORD
    binary
    put IMSVAConfigExport`date +\%Y\%m\%d`.dat
    quit
    EOF

    #removes the file from the directory
    rm -f IMSVAConfigExport`date +\%Y\%m\%d`.dat
    cd

  7. Save the changes and quit by pressing the combination of keys in the order they appear:

    [ESC] :wq

  8. Add permission to execute the script. Run the following command:

    cd
    chmod a+x /root/ftpshare/ftpscript.sh

  9. Place scripts needed on the Cron tab to schedule when to run:

    crontab -e

  10. Go to the “Insert” mode by pressing the 'I' key.
  11. Add the following line at the end of all jobs:

    0 5 * * * /opt/trend/imss/script/imp_exp.sh -e /root/ftpshare/IMSVAConfigExport$(date +\%Y\%m\%d.dat) /dev/null 2 &1
    5 5 * * * /root/ftpshare/ftpscript.sh

  12. This will back up the configuration into the /root/ftpshare/ folder every day at 5:00 AM and send the config to the FTP server at 5:05AM. Save the changes and quit by pressing the combination of keys in the order they appear:

    [ESC] :wq

Premium
Internal
Rating:
Category:
Configure
Solution Id:
1122875
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.