Skip to content

A tiny application to watch directories for changes then upload the files to an S3 compatible service (Cloudflare R2)

Notifications You must be signed in to change notification settings

StephenGilboy/simple-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Backup

Looking for a simple way to watch a directory for changes then upload them to an S3 compatible storage provider? This is the tool for you!

Getting Started

Set the following environment variables:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_SERVICE_URL

Then run the following command:

dotnet run --project src/SimpleBackup/SimpleBackup.csproj --Dir /path/to/watch --Bucket bucket-name

Not Ready for Production Use

It's fine for running on your machine but there is no re-try logic if you're offline and all that good stuff. I'll get around to it someday.

Notes:

I set this up to use Cloudflare R2 storage, but it should work with any S3 compatible storage provider. You just might have to change the DisablePayloadSigning = true in the Daemon.cs file.

It's also using UseSystemd() but you can change that to UseWindowsService() if you're on Windows. https://learn.microsoft.com/en-us/dotnet/core/extensions/windows-service?pivots=dotnet-8-0

About

A tiny application to watch directories for changes then upload the files to an S3 compatible service (Cloudflare R2)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published