---
title: "Deploy One Time PostgreSQL S3 Backup"
description: "Backup your PostgreSQL database into a S3 bucket using Railway CRON"
category: "Storage"
url: https://railway.com/deploy/UGKaB8
---

# Deploy One Time PostgreSQL S3 Backup

Backup your PostgreSQL database into a S3 bucket using Railway CRON

**[Deploy One Time PostgreSQL S3 Backup on Railway](https://railway.com/template/UGKaB8)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/UGKaB8/manifest.json

- **Creator:** Mattèo Gauthier's Projects
- **Category:** Storage
- **Total deploys:** 8

## Template content

### onetime-pg-s3-backup

- **Source:** https://github.com/MatteoGauthier/pg-backup-s3-one-time

## Documentation

## Overview

Simple template to backup in one time your PostgreSQL database using the Railway CRON feature. The code is a basic script to dump your PostgreSQL data to a file and then upload the file to S3.

## Highlights

- Runs one time, so the cost is really low
- Use the Railway CRON feature to schedule the backup
- Configure custom S3 URL

## Usage

Fill the template environment variables and configure the CRON job in the service settings.

## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/UGKaB8
