### Keeping TailStatic Current

Regular updates to TailStatic ensure that you have the latest features, performance improvements, and security patches. Because TailStatic is containerized, the upgrade process is straightforward.

### Safe Upgrade Order

To update your TailStatic installation:

1. **Back up your data:** Always create a fresh [Backups and Restore](/docs/backups-and-restore) of the [Persistent Storage Layout](/docs/persistent-storage-layout) before upgrading.
2. **Pull the latest images:**
   ```bash
   docker compose pull
   ```
   (See the [official Docker docs](https://docs.docker.com/reference/cli/docker/compose/pull/))
3. **Restart the services:**
   ```bash
   docker compose up -d
   ```
   (See the [official Docker docs](https://docs.docker.com/reference/cli/docker/compose/up/))

Docker will automatically stop the old [Docker Images and Service Roles](/docs/docker-images-and-service-roles) and start new ones. Your data in the mounted volumes will remain untouched. For a fresh start, see [Docker Quickstart](/docs/docker-quickstart).

### Health Checks After Upgrading

After an upgrade, verify that the system is functioning correctly:
* Check the [Analytics and Logs](/docs/analytics-and-logs) for any migration errors.
* Verify the connection to [TailStatic-Tools and Processing Jobs](/docs/tailstatic-tools-and-processing-jobs) in the [Application Settings](/docs/application-settings).
* Perform a [Preview Workflows](/docs/preview-workflows) of one of your sites to ensure the rendering engine is working as expected.

### Routine Maintenance

To keep your server running smoothly, perform these periodic tasks:

#### 1. Docker Cleanup
Remove old, unused Docker images and volumes to free up disk space.

#### 2. Log Rotation
TailStatic automatically prunes old application logs, but you should monitor the `/app/data/tailstatic/jobs` folder in the [Persistent Storage Layout](/docs/persistent-storage-layout).

#### 3. Site History Pruning
If you have a site with a very long [Versioning and History](/docs/versioning-and-history), the local Git repository may grow in size. You can perform a manual "Maintenance" task from the site dashboard.

#### 4. Checking SSL Certificates
If you are using a [Reverse Proxy and HTTPS](/docs/reverse-proxy-and-https), ensure that your SSL certificates are renewing correctly. Check your [Network and Domain Planning](/docs/network-and-domain-planning).

### Next Steps

Regularly review your [Create and Manage Sites](/docs/create-and-manage-sites) to ensure they are up to date. If you encounter issues during maintenance, refer to [Troubleshooting TailStatic](/docs/troubleshooting-tailstatic). For a quick path map, see the [Directory Reference](/docs/directory-reference).

### See Also

* [Backups and Restore](/docs/backups-and-restore)
* [Analytics and Logs](/docs/analytics-and-logs)
* [Versioning and History](/docs/versioning-and-history)
* [Troubleshooting TailStatic](/docs/troubleshooting-tailstatic)
