# Can you run scripts pre/post backup?

**URL:** <https://meta.discourse.org/t/can-you-run-scripts-pre-post-backup/163025>\
**Category:** Product Support\
**Created:** [September 4, 2020, 11:29am UTC](https://meta.discourse.org/t/can-you-run-scripts-pre-post-backup/163025 "2020-09-04T11:29:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![knewt](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@knewt](https://meta.discourse.org/u/knewt)\
**Post date:** [September 4, 2020, 12:41pm UTC](https://meta.discourse.org/t/can-you-run-scripts-pre-post-backup/163025/3 "2020-09-04T12:41:47Z")

</div>

Well, I keep running out of space during the backups - wouldn’t be so bad if it didn’t create the backup and _then_ compress it but, but oh well. But I really don’t want to keep the necessary disk space around at all times because that costs money. All backups go to S3 and don’t stick around once done.

So I’d like to run a pre script that creates a volume and attaches it to my vm mounted to the relevant path. Then once the backup is completed, a post script should run to unmount the volume, then detach and delete. That way I’m only paying for the space for the duration of the backup. I don’t see any options in the settings page for pre and post scripts though?

---

_[View the full topic](https://meta.discourse.org/t/can-you-run-scripts-pre-post-backup/163025)._
