## Overview

System backups are set to occur every hour by default. You can customize this schedule by changing the cron environment variable found in the `docker-compose.yaml` file under `backup/environment/cron`. The backup archives are stored in the `/backup` folder.

The backup process protects the cold wallet's configuration and the database's state. However, it does not include the application software binaries. If a restore is required in a new environment, a new cold wallet installation should be completed before performing the restore from the backup.

> 📘  
> ### Note:  
> After resharing the key materials, the previous database backup files can no longer be used with the new batch of database backup files, i.e. the database backup files have to be always restored in sync with each other (from the same batch).

## Ad-Hoc Backup

To perform an ad-hoc backup, follow the steps below:

1. Open a terminal, and use the following command to stop all the services to ensure memory is flushed to disk:
   
   ```undefined
   docker compose stop
   ```

2. Initiate the ad-hoc backup of the state to the `/backup` folder:
   
   ```undefined
   docker compose run backup backup.sh
   ```

3. Start the services back up again by using the following command:
   
   ```undefined
   docker compose start
   ```

## Ad-Hoc Restore

> ❗️  
> ### Important:  
> Please be sure to encrypt the zip file (.tgz) when saving this to external media.

> 📘  
> ### Note:  
> If restoring to a new environment, a **new** cold wallet installation should be completed first.

To perform an ad-hoc restore, follow the steps below:

1. Open a terminal, and use the following command to stop all the services:
   
   ```undefined
   docker compose stop
   ```

2. Initiate the ad-hoc restore and specify the desired file name from the `/backup/` folder:
   
   ```undefined
   docker compose run backup restore.sh backup_<timestamp>.tgz
   ```

3. Start the services back up again by using the following command:
   
   ```undefined
   docker compose start
   ```

# 🗣️We Are Here to Help!

Please contact us via [email](mailto:support@blockdaemon.com) or support chat if you encounter an issue, bug, or need assistance. Don't forget to include any relevant details about the problem. To request a wallet form and Institutional Vault Approver form, please click [here](/content/support/index.html) or contact [our sales team](/content/get-in-touch/?contact-sales/index.html).
