+4
-4
.env.example
+4
-4
.env.example
···
+4
-4
main.go
+4
-4
main.go
······
+21
-1
readme.md
+21
-1
readme.md
···-At the moment it's a one shot style script that backs up the PDS repo and then the blobs but in the future I plan on being able to backup other things (next is my Tangled Knot data).+2: Tangled Knot data - The repositories directory that contains all of the repo data and the directory that contains the SQLite databaseThe PDS repo data is pulled straight from the xrpc endpoint at sent straight to S3. The blob data however is streamed into a zip file and sent to S3 so that not all the data is held in memory while the backup takes place (the minio library will still keep some in memory as a multipart request).It's very hacky right now and needs polishing to use with caution. Although let's face it, the worst it can do at the moment it backup some bad data which is better than no data 🤪+Clone the repo and copy the `.env.example` file to be `.env`. Fill in the `.env` file with you S3 variables.+For Knot data backup you need to ensure that `TANGLED_KNOT_DATABASE_DIRECTORY` and `TANGLED_KNOT_REPOSITORY_DIRECTORY` are populated.