Skip to content

RClone & UnionFS

Admin9705 edited this page Feb 22, 2019 · 34 revisions

OLD

The following information is important to understand because these are the mounts that enable the reading, movement, and enablement of your data hoarding collection.

Page Table of Contents

In this section, we will discuss the following mounts:

To Encrypt or Not To Encrypt

It is very important to decided which route to go based on what you want to do. Be aware that if you switch versions, you have to download all of your data and either encrypt it or unencrypt your data... again. This is the painful part. Below are some reasons for either case (I would recommend unencrypted):

Unencrypted:

  • Easiest to Setup
  • Easiest to Troubleshoot
  • No problems ever reported (It's a paid Google Drive for Privacy)
  • Mostly supported and focused by PG for the newest features
  • Can access your data everywhere, including through the use of the Browser and Google File Stream

Encrypted:

  • More difficult to Setup
  • Problematic when troubleshooting UNLESS you are an experienced PRO
  • No problems ever reported (It's a paid Google Drive for Privacy)
  • Less supported and focused on by PG for the newest features (due to it's hard to work with)
  • Cannot access your data easily everywhere.

Unencrypted RClone

When you deploy the unencrypted portion of the program for the FIRST TIME, you should see RClone complaining about a file missing. Basically, you are creating a file for the first time.


Demo Picture: New RClone Start Configuration

  • Type the Letter "N" to create a NEW Remote for RClone.

Next, call the remote "gdrive" <<< case sensitive

  • Drive Type: Select Option #11 for GDrive (Version RClone 1.40)
  • Google Client ID: LEAVE BLANK and Press ENTER
  • Google Client Secret: LEAVE BLANK and Press ENTER

  • Drive Scope: Select Option Number 1 (From the Picture Above)
  • Root Folder ID: Just Press [ENTER]
  • Service Account File: Just Press [ENTER]
  • Asks you About Config?
  • Y only if you are physically on the machine (rarer these days)
  • Login with the CORRECT Google Account and Copy the Code
  • N if using remotely, somewhere else and etc (most cases these days)
  • Copy the link & Paste it into your Browser
  • Login with the CORRECT Google Account and Copy the Code.
  • Paste the Code into Terminal and Press Enter
  • Enter the code back into the terminal.
  • Yes this is OK
  • Now Quit!

Encrypted RClone

Configure Encrypted RClone

Part 1 of 3


Demo Picture: New RClone Start Configuration

  • Type the Letter "N" to create a NEW Remote for RClone.

Next, call the remote "gdrive" <<< case sensitive

  • Drive Type: Select Option #11 for GDrive (Version RClone 1.40)
  • Google Client ID: LEAVE BLANK and Press ENTER
  • Google Client Secret: LEAVE BLANK and Press ENTER

  • Drive Scope: Select Option Number 1 (From the Picture Above)
  • Root Folder ID: Just Press [ENTER]
  • Service Account File: Just Press [ENTER]
  • Asks you About Config?
  • Y only if you are physically on the machine (rarer these days)
  • Login with the CORRECT Google Account and Copy the Code
  • N if using remotely, somewhere else and etc (most cases these days)
  • Copy the link & Paste it into your Browser
  • Login with the CORRECT Google Account and Copy the Code.
  • Paste the Code into Terminal and Press Enter
  • Enter the code back into the terminal.
  • Yes this is OK
  • Do Not Quit!

Part 2 of 3

This encrypted mount will be used for the move-en.sh to upload stuff to your Google Drive.

  • N < For New remote
  • gcrypt < for the name
  • 8 < For Encrypt/Decrypt (double check the number select in case)
  • gdrive:/encrypt (encrypt being the name of the rclone encrypted folder within your gdrive)
  • 2 < Encrypt standard
  • 1 < Turn on Directory Encryption
  • Y < type your own password (make up a secure one and write it down somewhere safe otherwise use the one from before if you already created it for whichever original encrypted folder you want to use - for example DTHBCH434G45)
  • Y < type your own salt password (make up a different secure one and write it down somewhere safe otherwise use the one from before if you already created it for whichever original encrypted folder you want to use - for example ER7UNK7UB6C44)

Should see something like this:

[N|Demo]

Part 3 of 3

This encrypted mount will be for unionfs-encrypt.service to avoid bans as it will use plexdrive.

  • N < For New remote
  • crypt < for the name
  • 8 < For Encrypt/Decrypt (double check the number select incase)
  • /mnt/plexdrive/encrypt (encrypt being the name of the rclone encrypted folder within your gdrive)
  • 2 < Encrypt standard
  • 1 < Turn on Directory Encryption
  • Y < type your own password (use the same password as above for gcrypt - for example DTHBCH434G45)
  • Y < type your own salt password (use the same SALT password as above for gcrypt - for example ER7UNK7UB6C44)

Should see something like this:

[N|Demo]

*********** It is recommended that you restart after this ***********

UnionFS

UnionFS is the only directory you should be using, it combines /mnt/move and /mnt/plexdrive (or /mnt/encrypt) together so that as soon as you've downloaded a file you shouldn't need to wait for it to be uploaded to your Google Drive account for Plex to see it.

NOTE - Point your Plex libraries and Manager's (Sonarr, Radarr, etc.) download locations to their corresponding folders in /mnt/unionfs. DO NOT change the default complete/incomplete folders in NZBGet/SABNZBd.

List of what each /mnt directory is for:

  • /mnt/gdrive = Direct link to your Google Drive
  • /mnt/.gcrypt = Direct link to your Encrypted folder on Google Drive
  • /mnt/plexdrive = Mount to your Google Drive but with PlexDrive to avoid bans (for use by apps like Plex ) - This is Read-Only
  • /mnt/encrypt = The Encrypted mount of PlexDrive (/mnt/plexdrive/encrypt) - This is Read-Only
  • /mnt/move = This is the folder that will get it's contents uploaded to your Google Drive (apps like Sonarr & Radarr will place their completed files here)
  • /mnt/unionfs = This is a combination of /mnt/move & /mnt/plexdrive or /mnt/encrypt (most apps like Plex, Sonarr & Radarr should point to this location)
  • The UnionFS service is automatically installed during the RClone setup process. No need to configure it!

Troubleshooting

  • Verify if the RClone mount is working
  • Type: ls /mnt/gdrive for RClone. You should see "Getting Started" (assuming you didn't delete it) and your other Google Drive files if you have any.

Verify if UnionFS is working

Only can truly be tested if you have setup PlexDrive already (and rebooted). UnionFS is a psuedo filesystem mount that combines two directories: /mnt/plexdrive (or /mnt/encrypt) and /mnt/move.

If you type in ls /mnt/unionfs, you should see three directories: movies, tv and music, along with the "Getting started" file from Google. If you have other files already on Google Drive, they will also show up here.

Service Status Checking

Go to the PlexGuide menu > Server Information > View Services
See our guide HERE for more detail

Or type: sudo service unionfs status for UnionFS service

Type: sudo service unionfs-encrypt status for UnionFS Encrypted service

Type: sudo service rclone status for RClone service

Type: sudo service rclone-encrypt status for RClone Encrypted service

Restart UnionFS

Type: sudo service unionfs restart

Restart UnionFS Encrypt

Type: sudo service unionfs-encrypt restart

Restart RClone

Type: sudo service rclone restart

Restart RClone Encrypt

Type: sudo service rclone-encrypt restart


Visit our Website by Clicking the Picture Below!

N|Demo

N|Solid N|Solid

http://PGBlitz.wiki

Useful Starter Links

  1. Introduction
  2. Blitz YouTube Channel
  3. G-Suite Signup
  4. Recommended NewsHosts

Prior Planning 101

  1. Recommended Pre-Reading
  2. Server - Storage Planning
  3. Usenet or BitTorrent
  4. PG Editions
  5. PGBlitz Repos
  6. Common Issues

Deploy & Config

PGBlitz
  1. SSH Server Access
  2. Create a SUDO User
  3. Install PGBlitz
  4. WatchTower
  5. Remote Path Mappings

Data Transport
  1. PG Clone
    1. Google OAuth Keys
    2. PG Move
    3. PG Blitz
    4. 2nd HD Option

Key Components

  1. Traefik
  2. Port Guard
  3. PG Shield
  4. PG Press
  5. Google Cloud - GCE
    1. Automated setup
  6. Hetzner Cloud
  7. PG Fork
  8. Extra PG Commands

Blitz App Info

  1. Accessing PG Apps
  2. App Port Scheme
  3. Trigger Plex autoscan with Sonarr and Radarr

Tools & Services

Core Apps [Expand]
  1. Emby
  2. Jackett
  3. Jellyfin
  4. LazyLibrarian
  5. Lidarr
  6. Netdata
  7. NZBGet
  8. Ombi
  9. Plex
  10. Portainer
  11. qBittorrent
  12. Radarr
  13. RuTorrent
  14. SABNZBD
  15. Sonarr
  16. Tautulli
Community Apps [Expand]
  1. AirSonic
  2. AllTube
  3. Bazarr
  4. Beets
  5. Bitwarden
  6. BookSonic
  7. cAdvisor
  8. Cloud Commander
  9. DDClient
  10. Deezloaderremix
  11. Deluge
  12. DelugeVPN
  13. Dozzle
  14. Duplicati
  15. EmbyStats
  16. FlexGet
  17. Gazee
  18. Gitea
  19. Handbrake
  20. Headphones
  21. Heimdall
  22. HomeAssistant
  23. HTPCManager
  24. JDownloader2
  25. jd2-openvpn
  26. Kitana
  27. Logarr
  28. MakeMKV
  29. MariaDB
  30. McMyadmin
  31. MEDUSA
  32. Mellow
  33. Monitorr
  34. Muximux
  35. Mylar
  36. NextCloud
  37. NowShowing
  38. NZBHydra2
  39. NZBThrottle
  40. Organizr
  41. pyLoad
  42. qBittorrent
  43. Radarr4k
  44. Resilio
  45. rflood-openvpn
  46. rutorrent-openvpn
  47. ShareSite
  48. Shoko Anime Server
  49. SpeedTest
  50. SyncLounge
  51. Syncthing
  52. The Lounge
  53. Transmission
  54. Trakt.or
  55. Ubooquity
  56. vnc-xfce
  57. x TeVe
  58. Zammad

Misc Info & Articles

  1. Change Server Time
  2. Fail2Ban
  3. Custom Containers
Scripts
  1. Scripting Area
    1. Auto Upload for Sonarr and Lidarr
    2. Auto Delete Log
    3. Plex Plugin DB Backup
    4. Plex fast BACKUP
Clone this wiki locally
You can’t perform that action at this time.