Free, unlimited, automatic backups of Roam Research into GitHub.
If you set up roam-to-git following my old guide, switch to roam2github with these instructions:
Instructions to switch from roam-to-git to Roam2Github
If you already set up roam2github before February 20, 2021, update to unlimited minutes with these instructions:
Roam2Github Update Instructions
If you're starting from scratch, follow below:
<aside>
💡 Screenshots and video of all these steps coming soon eventually
</aside>
Log into GitHub or create a free account
Create a new, private repository
roam-backup
)Add a Personalized Access Token
Go to https://github.com/settings/tokens
Also accessed by going to your account "Settings" (from the dropdown after clicking your profile image in the upper-right), then "Developer settings" in the sidebar, then "Personal access tokens"
Click the "Generate new token" button
(Re-enter GitHub password if asked)
Under "Note", give it a descriptive name, like "Roam backup"
Under "Select scopes", click the checkbox for "repo" (this will also check the 5 boxes indented below it)
Scroll to the bottom and click the green "Generate token" button
You should now see a random string of characters and numbers in a light green background. Click the clipboard icon to copy it. You may want to leave this tab open, just in case you accidentally copy something else. (Because once closed, you'll never see this token again, and have to create a new one.)
Create a new, public repository (same steps as #2 above, but select "Public" if you want unlimited minutes. You can call it something like "roam2github-actions")
This is where the actions will run and save to your private backup repo.
You can make this private. Just be aware of the 2000-minute monthly limit on the free plan. (My medium-sized graph takes about 3 minutes to run each backup, and runs hourly, so this allotment is not enough.) Usage can be monitored under Billing. You can change the public/private setting at any time.
Add Secrets
Go to "Settings" (for the repo, not your account), then "Secrets"
Add "New repository secret" named ACCESS_TOKEN
and paste the random token under Value
Add "New repository secret" named BACKUP_REPO
The value for this will be your GitHub username, a slash, and the name of your private, backup repo (without <>
symbols): <username>/<repo>
For example, mine is: everruler12/roam-backup
Add the following Secrets with appropriate values
ROAM_EMAIL
ROAM_PASSWORD
ROAM_GRAPH
You can add multiple graphs on separate lines.
Add Actions