<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/neon-twin-automate-partial-data-dumps-with-postgres-and-github-actions-esgynd1sj" -->

---
title: Neon Twin: Automate Partial Data Dumps with Postgres and...
description: A practical guide to creating a &#x27;Neon Twin&#x27; — a partial copy of a production Postgres database synced to Neon Serverless Postgres via a scheduled GitHub...
canonical: https://daily.dev/posts/neon-twin-automate-partial-data-dumps-with-postgres-and-github-actions-esgynd1sj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Neon Twin: Automate Partial Data Dumps with Postgres and GitHub Actions | daily.dev
og:description: A practical guide to creating a &#x27;Neon Twin&#x27; — a partial copy of a production Postgres database synced to Neon Serverless Postgres via a scheduled GitHub...
og:url: https://daily.dev/posts/neon-twin-automate-partial-data-dumps-with-postgres-and-github-actions-esgynd1sj
og:image: https://api.daily.dev/og/posts/ESGYNd1SJ.png
og:image:alt: Neon Twin: Automate Partial Data Dumps with Postgres and GitHub Actions
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Neon Twin: Automate Partial Data Dumps with Postgres and GitHub Actions

**[Neon](https://daily.dev/sources/neontech)** · 7 min read · 0 upvotes · 0 comments

## Summary

A practical guide to creating a 'Neon Twin' — a partial copy of a production Postgres database synced to Neon Serverless Postgres via a scheduled GitHub Actions workflow. The tutorial covers setting up a cron-based GitHub Action that uses pg_dump to export schema and selected table subsets as CSV files, then restores them to a Neon instance. It also addresses multi-table dumps with foreign key integrity, storing connection strings as GitHub Secrets, and briefly touches on PII concerns with partial data dumps.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://neon.com/blog/automate-partial-data-dumps-with-postgresql-and-github-actions>

---

Tags: [#postgresql](https://daily.dev/tags/postgresql), [#github-actions](https://daily.dev/tags/github-actions)

[View this post on daily.dev](https://daily.dev/posts/neon-twin-automate-partial-data-dumps-with-postgres-and-github-actions-esgynd1sj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Neon Twin: Automate Partial Data Dumps with Postgres and GitHub Actions","url":"https://daily.dev/posts/neon-twin-automate-partial-data-dumps-with-postgres-and-github-actions-esgynd1sj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/neon-twin-automate-partial-data-dumps-with-postgres-and-github-actions-esgynd1sj"},"datePublished":"2026-07-09T06:57:41.986Z","dateModified":"2026-07-09T06:59:59.121Z","description":"A practical guide to creating a 'Neon Twin' — a partial copy of a production Postgres database synced to Neon Serverless Postgres via a scheduled GitHub...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3ff8ab91afc7a29343136deb1a4bcb5b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3ff8ab91afc7a29343136deb1a4bcb5b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Neon","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Neon","logo":"https://media.daily.dev/image/upload/s--65EDghou--/f_auto/v1724339118/logos/neontech","url":"https://daily.dev/sources/neontech"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/neon-twin-automate-partial-data-dumps-with-postgres-and-github-actions-esgynd1sj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"postgresql,github-actions","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Neon","item":"https://daily.dev/sources/neontech"},{"@type":"ListItem","position":3,"name":"Neon Twin: Automate Partial Data Dumps with Postgres and GitHub Actions"}]}
```

