GitHub is a free website for storing files. We use it as a private storage locker for your backup. Nobody else can access it. Setup takes about 5 minutes and you only do it once.
Step 1: Create a GitHub account (skip if you already have one)
- Go to github.com/signup
- Enter your email, create a password, and choose a username
- Verify your email when prompted, then come back here
Step 2: Create a private storage folder (called a "repository")
Think of this as a private folder on GitHub where your backup file will live.
- Go to github.com/new (you must be logged in)
- In the Repository name box, type any name, for example:
my-journal-backup
- Under the name box you will see two options: Public and Private. Select Private. This is important. Public means anyone on the internet could see your file.
- Leave everything else as-is and click the green Create repository button at the bottom
- You will land on a page with a URL like
github.com/yourname/my-journal-backup. You need the last two parts: yourname/my-journal-backup. Copy that and paste it into the Repository field below.
Step 3: Create an access key (called a "token")
A token is like a limited-access key card. This one will only allow this app to read and write your one backup folder. It cannot touch anything else on your GitHub account.
- Go to GitHub token settings (you must be logged in)
- In the Token name box, type something like
journal-sync so you remember what it is later
- Under Expiration, click the dropdown and choose Custom. Set the date to about 90 days from today. GitHub will email you a few days before it expires so you can renew it. (A shorter expiry limits the damage if the token is ever stolen.)
- Under Repository access, select Only select repositories, then click the dropdown that appears and choose the backup folder you just created
- Under Permissions, click Repository permissions to expand it. Find Contents in the list and change its dropdown from "No access" to Read and write. You do not need to change any other permissions.
- Scroll to the bottom and click Generate token
- GitHub shows you the token once only. It starts with
github_pat_. Copy it now and save it somewhere safe (your password manager, a secure note, or even a piece of paper in a drawer) before pasting it into the field below. If you lose it you can always generate a new one, but you will need to paste it in here again.
Step 4: Fill in the fields below and push your first backup
- Paste your token into the GitHub personal access token field
- Paste
yourname/my-journal-backup into the Repository field
- Leave File path as
data.enc
- Click Push. If everything is set up correctly you will see a confirmation message.
Using the backup on a second device
- Open this app on the other device and open the Sync panel
- Fill in the same token, repository, and file path
- Click Pull. Your data will be downloaded and applied.
- Go to Security and enter the same password you use on your main device. The backup is encrypted with that password and cannot be read without it.
Renewing your token when it expires
GitHub will email you a few days before expiry. When that happens: go to github.com/settings/personal-access-tokens, find your token, click Regenerate, copy the new token, and paste it into the field below. Everything else stays the same.
Security note: your token gives access to your backup folder on GitHub. The password you set in Security encrypts the backup file itself, so even if someone got the token, they could not read your data without the password too. Keep both safe and do not share them or paste them into any other app.