Syzygianinfern0 / RClone-Mirror-Manager

☁ Scripts for RClone Mirror Management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RClone Mirror Manager

Description

Put simply, it regularly triggers GitHub Actions to execute a script that pair-wise iterates and runs rclone sync over defined drives.

Dependencies 🧰

  • rclone gclone 🎉
  • python3
  • brain

Usage 👨‍💻

  1. Create an rclone.conf file that complies with RClone.
  2. Host it on some online paste bin. I personally use Secret Gists (yep, I’m obsessed with version control, how’d you guess?).
  3. Fork/mirror this repo.
  4. Go to the actions tab and enable workflows.
  5. Create a GitHub Secret called CONF_URL and set it's value as the link to the rclone config (make sure you copy the link to the "RAW Text").
  6. Edit the from_drives and to_drives in sync.py as you wish.
  7. The script is set to run every day at 6:30 AM UTC. Feel free to modify that under .github/workflows/sync.yaml. If you want to start it manually, check the Notes underneath.
  8. Profit 💯

Using Service Accounts (optional)

  1. Generate the SA jsons and put them in a folder called accounts in your PC.
  2. Zip the folder and name it as accounts.zip.
  3. Upload it somewhere such that you can have a static direct download link (opening this link locally should directly start downloading the zip).
  4. Create a GitHub Secret called SA_ZIP and set it's value as the link to the SA zip.

Notes

  1. The sync.sh file is a bash equivalent of the sync.py. If you want to tinker with this project but you don't like/know Python3, feel free to start there.
  2. If you wanna manually start the sync: actions tab on GitHub > select the RClone Sync workflow > Run workflow > Run workflow.
  3. Raise an issue if you face any issue 😉.

●'◡'●

Please like, share, and subscribe star, fork, and follow if you found this useful.

About

☁ Scripts for RClone Mirror Management


Languages

Language:Python 88.9%Language:Shell 11.1%