Skip to content

reddit-wiki-backup/reddit-wiki-backup-to-pastebin

Repository files navigation

reddit-wiki-backup-to-pastebin

Purpose

  • Perform regular or one-time backups of subreddit wikis

How to Use

To set this up for subreddit(s) of your choice:

  • Fork this repo.
  • Authorize your Reddit account:
    • Follow the instructions here under the OAuth section.
  • In GitHub repository settings, go to Settings > Secrets > Actions and add the following repository secrets:
    • CLIENT_ID
    • CLIENT_SECRET
    • USERNAME
    • PASSWORD
  • Make a Pastebin account, then go to their Developers API page.
  • In GitHub repository settings, go to Settings > Secrets > Actions and add the following repository secrets:
    • PASTEBIN_DEV_KEY
    • PASTEBIN_USER_KEY -- instructions on how to get this are located on the Developers API page
  • In subreddits.ini, add entries for the subreddits whose wikis you want to back up.
    • The file contains examples.
    • You can only back up wiki pages that are viewable by the authorized account.
  • Run the backup:
    • Run one-time backup: In GitHub repository, go to Actions > Run Backup > Run Workflow > Run Workflow
    • Schedule regular backup: In GitHub repository, go to RunBackup.yml schedule lines. Uncomment these two lines.

Releases

No releases published

Packages

No packages published

Languages