  You're browsing the documentation for an old version of SupportPal. Consider upgrading to the [latest version](https://docs.supportpal.com/current/Backup+And+Restore+Docker). 

# Backup and Restore (Docker)

 **Docker Deployments**  
 This documentation pertains to Docker deployments, all other deployments should read [Backup and Restore (Generic)](Backup+and+Restore+Generic) documentation. 

 Backup and restore functionality in Docker makes use of SupportPal CLI commands, but also handles additional Docker related services data.

## Backup

#### Output Directory

All backups are generated in a `backup` directory where the backup script was run.

#### Usage

###### Monolithic Deployments

Browse to the SupportPal installation directory (where `docker-compose.yml` lives) and then run:

```
bash <(curl -LsS https://raw.githubusercontent.com/supportpal/helpdesk-install/master/templates/docker-monolithic/backup.sh)
```

###### HA Deployments

  Please fetch the latest Git repository changes before running the command (`git pull`). 

 Browse to the SupportPal installation directory (`helpdesk-install/templates/docker-compose`), and then run:

```
make backup
```

---

## Restore

#### Usage

 The restore script searches for the most recently modified file in the backup output directory (specified above). This is determined using `ls -1t app-*.tar.gz`. You can force a file to be the most recently modified using the `touch` command, for example: `touch app-2022-10-31-17-40-58.tar.gz`.

###### Monolithic Deployments

Browse to the SupportPal installation directory (where `docker-compose.yml` lives) and then run:

```
bash <(curl -LsS https://raw.githubusercontent.com/supportpal/helpdesk-install/master/templates/docker-monolithic/restore.sh)
```

###### HA Deployments

  Please fetch the latest Git repository changes before running the command (`git pull`). 

 Browse to the SupportPal installation directory (`helpdesk-install/templates/docker-compose`), and then run:

```
make restore
```