<p>The snapshot file will be copied to another folder during the insertion process. Then it's safe to delete it to claim more than 50Gi free space.</p>
<p>Thanks</p>

CC BY-SA 4.0
2023-10-24T13:26:55.633Z
2023-10-24T13:26:55.633Z
manhdt
<p>I'm following this guide to restore the latest state of the chain to my local machine
<a href="https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/state-snapshot.md" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/state-snapshot.md</a></p>
<p>while running the restore job as the following command. it consumes significant amounts  of free disk space</p>
<pre><code>PGPASSFILE=config/pgpass-mainnet scripts/postgresql-setup.sh --restore-snapshot /Users/manhdt/Downloads/db-sync-snapshot-schema-13.1-block-9348936-x86_64.tgz /Users/manhdt/ledger-state/mainnet
</code></pre>
<p>Included 53GB of the latest snapshot <a href="https://update-cardano-mainnet.iohk.io/cardano-db-sync/index.html#13.1/" rel="nofollow noreferrer">https://update-cardano-mainnet.iohk.io/cardano-db-sync/index.html#13.1/</a>. My Macbook (32 GB RAM, 512GB SSD) still has over 320GB of free disk space. However, it reduces pretty fast and my Mac runs out of space after a while (approximately 1 -&gt; 2 hours).</p>
<p>Does anyone could help to pass this issue?</p>
<p>Thank you</p>

CC BY-SA 4.0
2023-09-30T05:37:17.993Z
I am not aware of any work around from this other than providing extra disk space. Maybe a temporary (ie, just during the restore operation) external disk may be a solution.
Erik de Castro Lopo
CC BY-SA 4.0
2023-10-24T13:25:14.210Z
Thanks. I've removed the compressed file during the insertion process to claim extra space
manhdt
<cardano-db-sync>
Restore state snapshot running out of disk space
# Restore state snapshot running out of disk space

(Asked by: username_0 on 2023-09-30)

I'm following this guide to restore the latest state of the chain to my local machine
https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/state-snapshot.md
while running the restore job as the following command. it consumes significant amounts  of free disk space
PGPASSFILE=config/pgpass-mainnet scripts/postgresql-setup.sh --restore-snapshot /Users/manhdt/Downloads/db-sync-snapshot-schema-13.1-block-9348936-x86_64.tgz /Users/manhdt/ledger-state/mainnet

Included 53GB of the latest snapshot https://update-cardano-mainnet.iohk.io/cardano-db-sync/index.html#13.1/. My Macbook (32 GB RAM, 512GB SSD) still has over 320GB of free disk space. However, it reduces pretty fast and my Mac runs out of space after a while (approximately 1 -> 2 hours).
Does anyone could help to pass this issue?
Thank you

**Tags:** cardano-db-sync
> **Comments:**
> **username_1**: I am not aware of any work around from this other than providing extra disk space. Maybe a temporary (ie, just during the restore operation) external disk may be a solution.  
> **username_0**: Thanks. I've removed the compressed file during the insertion process to claim extra space  

---

## 1 answers

### Answer by username_0 on 2023-10-24. Score: 1 | Accepted answer

The snapshot file will be copied to another folder during the insertion process. Then it's safe to delete it to claim more than 50Gi free space.

Thanks


---

