> Source: [sk181472](https://support.checkpoint.com/results/sk/sk181472)

# sk181472 - How to to collect backup for VSX gateways from the CLI.

| Property | Value |
|----------|-------|
| Solution ID | sk181472 |
| Date Created | 2023-09-14 |
| Last Modified | 2023-09-14 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R81.20, R81.10 (EOS) |
| OS | Gaia |

## Symptoms

- Gaia OS backup collects VSX configuration on VSX gateway / VSX cluster member.

## Cause

**Important Notes:**   

* When collecting a Gaia OS backup file on a VSX Gateway / VSX cluster member(s), you also must collect a backup file from the Security Management Server / entire Multi-Domain Security Management Server.
* **Clarification:**Since the configuration of VSX Gateway / VSX cluster network object can be stored on several Domain Management Servers, performing a selective backup of specific Domains is not enough - it is necessary to back up the entire Multi-Domain Security Management Server.
* When restoring a backup file on a VSX Gateway / VSX cluster member(s), you also must restore a backup file on the Security Management Server / entire Multi-Domain Security Management Server.
* The only exception is if the configuration of the VSX Gateway / VSX cluster object was not changed since the backup file was collected from the Management Server.
* The backup file collected on a VSX Gateway / VSX cluster member(s) has to be restored only on the same machine - i.e., the backup file is not transferable (for example, the backup file collected on Member_B cannot be restored on Member A).
* if you have multiple VSX gateways in your environment and if you restore your management this impacts all of them.
* Ensure that all gateways are on change freeze and no changes were made to them while you were working on the problematic one.

## Solution

Gateway side:  
To perform the backup action from the CLI please run the following command:  

#backup  

Also, please refer to the --help below to better understand how to use the command:  

backup \[-h\] \[-d\] \[-l\] \[--purge DAYS\] \[--sched \[on hh:mm \<-m DayOfMonth\> \| \<-w DaysOfWeek\>\] \| off\] \[--tftp \<ServerIP\> \[-path \<Path\>\] \[\<Filename\>\]\]  

\[--scp \<ServerIP\> \<Username\> \<Password\> \[-path \<Path\>\] \[\<Filename\>\]\]  

\[--ftp \<ServerIP\> \<Username\> \<Password\> \[-path \<Path\>\] \[\<Filename\>\]\]  

\[--file \[-path \<Path\>\] \[\<Filename\>\]\]  

<br />

where:  

-d Show debug messages  

-l, --logs Back up log files  

-h, --help Show this help information  

-t, --tftp Transfer backup package to TFTP server  

-s, --scp Transfer backup package to SCP server  

-v, --ftp Transfer backup package to FTP server  

-f, --file Specify local backup package filename  

-e, --sched Configure scheduled backup operation  

-p, --purge Purge local backup packages older than DAYS

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
