From 1ec1e380624fa626175cba166155f37c487d67bb Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sat, 30 Aug 2025 18:44:28 -0700 Subject: [PATCH] :memo: Made note on how to backup forgejo --- self_host/forgejo/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/self_host/forgejo/README.md b/self_host/forgejo/README.md index 1b24c55d..a9e277b4 100644 --- a/self_host/forgejo/README.md +++ b/self_host/forgejo/README.md @@ -295,6 +295,27 @@ through which you will mainly be pushing changes via ssh. --- +## A word on backing up your Forgejo + +Eventually you'll want to backup your Forgejo for various reasons. Firstly just +because it's a good idea to back up pretty much anything. But additionally +eventually your little $5 per month VPS might be too small for all the repos you +could be potentially adding to this. + +In order to backup your forgejo, you'll want to use `scp`. Make sure you know +the path to your forgejo (just the path of where you initialized the docker +container) and of course you'll need to know the username and password that can +SSH into your VPS. On your home device, just invoke: + +```sh +scp myusername@:/path/to/forgejo path/on/myhostmachine +``` + +And this will copy all the files in your forgejo to your home machine for you to +have as a backup. + +--- + ### Conclusion And that's it! My apologies if this document feels a bit off the cuff, but as I