# Export All Documents

Here's how to export all of your Team’s Productions, and the Documents they contain.

After downloading, a copy of the most recent version of each Document is made available for use outside Postlab.

## How It Works

{% hint style="info" %}
This feature is only available to the primary Team Owner.
{% endhint %}

1. Before downloading all productions, demote all Team Members to the guest role, so no further changes can be uploaded. This prevents work to be uploaded to Postlab after you've downloaded all your data.
2. Hit the Action button under `Preferences` > `Teams` > Your Team
3. Click `Download all Productions`
   * You’ll be prompted to select the location to store the downloaded Productions.

<figure><img src="/files/xAh4zYy0cXcSdZFNyNhg" alt="" width="563"><figcaption></figcaption></figure>

3. You’ll be prompted to select the location to store the downloaded Productions.

{% hint style="info" %}
As all historical versions of all Documents will be downloaded, this can take up a sizeable amount of space. Make sure to select a location with sufficient free space!
{% endhint %}

<figure><img src="/files/HFOcr7XfoMXQzlmBhiLp" alt="" width="563"><figcaption></figcaption></figure>

4. After selecting the location, a download task will be started in a Terminal window:

<figure><img src="/files/L8EM33QMNZI8VCrUtTjK" alt="" width="563"><figcaption></figcaption></figure>

5. When the task is done, it'll tell which Productions or Documents it wasn’t able to download.

<figure><img src="/files/dZ60UkvhAD6FI8rQNd6f" alt="" width="375"><figcaption></figcaption></figure>

6. In Finder, you’ll see Productions in the folder structure as set up for your Team in Postlab. Besides that, all of a Production’s Documents are stored in a folder with the name of the Production.

{% hint style="info" %}
The download task stores a log file in the root of the download folder. In case of errors, please send this log file to us at <postlab@hedge.video> .
{% endhint %}

<figure><img src="/files/3mBJbfMwpeUEowdYt4V6" alt="" width="375"><figcaption></figcaption></figure>

## Export all revisions of all Documents from a downloaded Production

In case you want to retrieve all revisions of all Documents within one PostLab Classic Production, you can use this script:

{% file src="/files/oW4KBm3aLS1Gi80XjRdF" %}

* Download and unzip the file `exportAllDocumentVersions.sh.zip`
* Run the script:
  * Open a macOS Terminal window
  * Drag the unzipped `.sh` file to the Terminal window
  * Drag a `.postlab` Production bundle to the Terminal window
  * Click the Terminal window once, so it captures your keyboard
  * Hit the `return` key on your keyboard
* This script does the following:
  * Search the .postlab bundle for Documents
  * Export all revisions of these Documents that are stored within the bundle
  * Export the activity log for each Document in a .csv file

All files will be written in a folder with the same name as the Production.

<figure><img src="/files/eaghbIGvjDNZExLObNqt" alt=""><figcaption></figcaption></figure>

## Export the activity of all Documents from all downloaded Productions

You may still want to have an overview of who did what at which moment:

<figure><img src="/files/7lQCUyFz1AiGg05Jv3WI" alt=""><figcaption><p>The historical overview of a Document in PostLab Classic</p></figcaption></figure>

If you haven't deleted the .postlab bundles that were downloaded when exporting your data, you can export the activity for your Documents using this script:

{% file src="/files/gTDsthMlQsMy1T2PQbfd" %}

### How it works&#x20;

* Download and unzip the file `exportActivityLogs.sh.zip`
* Put the unzipped script in your exports folder, which starts with `Postlab-downloads-`

<figure><img src="/files/pwfHgjs9FqNpmS7GiYAf" alt=""><figcaption></figcaption></figure>

* Open a Terminal window
* Drag the script `exportActivityLogs.sh` from Finder to the Terminal window
* Click the Terminal window to activate it, and hit `Enter` to run the script
* The script does the following:
  * Traverse into all the .postlab bundles within that folder and its subfolders
  * Get the Activity Logs for each Document
  * Write the Activity Logs as CSV files in the folders next to the .postlab bundles

<figure><img src="/files/3NOUDH5Ugp1H1qKtEnN2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hedge.video/postlab-classic/documents/export-all-documents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
