Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Configure a backup for virtual server configration along with setup

THE_BLUE
Cirrostratus
Cirrostratus

i need to take backup of virtual server configuration of specific website for emergency. is it possible ?

1 ACCEPTED SOLUTION

After the command

tmsh load sys config merge from-terminal

You will get a VI like screen where you can past the configuration (remove the create-time line)

The VI screen will tell you to press Ctrl D when finished or Ctrl C to quit.

I would recommend to test this first with the command:

tmsh load sys config merge from-terminal verify

When everything is ok and the new configuration is loaded you can save the configuration with

tmsh save sys config

For more info see https://support.f5.com/csp/article/K81271448

Cheers,

Kees

View solution in original post

6 REPLIES 6

You want to make a backup of 1 virtual server?

With the command

tmsh list ltm virtual "virtual server name"

You can list the complete configuration of a virtual server. Write it to file and save a copy of the file offline.

Cheers,

Kees

So by using above command, i will be able to restore tbe configuration of VS ? Or i have to do it manually?

 

I’m asking that because, let’s say I’ve configured VS with ASM , related profiles ( http, ssl ) and so on , then i need backup for this configuration to be stored office. Incase I changed in VS later on which might cause an issue then i want to restore to the old configuration.. I don’t know if you got my point..

With the above command you list the configuration of the virtual server. You can past it into notepad. (making a backuo)

Later if you want to revert back to it you can use the command:

tmsh load sys config merge from-terminal

Past the old/original configuration and press Ctrl D

Than:

tmsh save sys config

Cheers,

Kees

so i have to write this exact command ?

tmsh load sys config merge from-terminal ( do i have to mentioned the name of VS here) ?

then i will paste the config ration sth like :

 

ltm virtual VS-EXAMPLE_HTTPS-443 {

   creation-time 2021-05-07:00:02:07

..........

 

}

then

 

tmsh save sys config

 

 

After the command

tmsh load sys config merge from-terminal

You will get a VI like screen where you can past the configuration (remove the create-time line)

The VI screen will tell you to press Ctrl D when finished or Ctrl C to quit.

I would recommend to test this first with the command:

tmsh load sys config merge from-terminal verify

When everything is ok and the new configuration is loaded you can save the configuration with

tmsh save sys config

For more info see https://support.f5.com/csp/article/K81271448

Cheers,

Kees

clear , many thanks.