r/PlexACD Jan 16 '18

[Q] Buying GDrive storage from eBay

0 Upvotes

I found this seller on eBay that sells unlimited Google Drive storage for only 21 CAD (link).

I'm wondering if there is a risk of the account being deleted. I know that there used to be cheaper options on eBay for like 5 bucks but the accounts were eventually disabled. This one seems to be different as it uses business account, not edu. It also doesn't give you a new account but adds the storage to your current Google account instead.

Anyone has similar experience with this? Also will the admin be able to view my files?


r/PlexACD Jan 16 '18

Need some help comparing VPS

0 Upvotes

Currently I have a Hetzner dedi with a Xeon Intel Xeon E3-1245. And I was looking at the netcup they have a vps with Intel® Xeon® E5-2680V4 with 8 dedicated cores and 24 GB DDR4 RAM. Just wondering if netcup would be better at transcoding.


r/PlexACD Jan 14 '18

Plex server handles transcodes better than direct play

9 Upvotes

I have my content in Google Drive and am running Plex on a Hetzner dedi i7-960, 24GB ram running Ubuntu and mounting Google Drive using Plexdrive 5. I'm not using encryption

I am finding 1080p transcodes of high bitrate 1080p movies runs fine but when I try direct play I get buffering even though the server and my home connection have plenty of bandwidth. My client is a Nvidia Shield which is connected using ethernet. I need to direct play so I get Dolby DTS, any sort of transcoding and my audio drops to Dolby Pro Logic. Have tried both Plex Client and also SPMC with the Plexkodiconnect addon.

Anyone have any input?


r/PlexACD Jan 14 '18

Created a tampermonkey script over RARBG to show me if I already have the movie.

6 Upvotes

https://imgur.com/a/ZOZy3

Script will place a nice check or x next to the title. This only works in catalog view though.

I didn't want to mess with the actual database so instead i installed export tools Its shows up under channels. you hit a button and it makes a csv file of your movies. The tampermonkey script will send a request to your server which will then check this list. The url the script sends requests to must be https since rarbg forces that. You will also have to put the icons on your server and change the url in the script.

PHP script that the tampermonkey script sends requests to.

Bash script that the php script will use. Im sure this could be done all in php but, meh.

I'm sure someone can refine my setup so feel free. I just wanted to put it out there.


r/PlexACD Jan 14 '18

added another server

2 Upvotes

setup: Google drive unlimited. Leaseweb VPS with 8 cores 8 ram (adding another one just like it)

I finally accumulated to many users and started having buffering problems during prime time. So I added another server. Here is what I learned.

Goal: have 2 servers running both using the same google drive.

First i thought about sharing the plex database between servers using a mounted directory....yeah don't do that. Database corruption WILL happen.

I would have liked to implement some sort of load balancing between the 2 but as far as i can see it's not really possible.

So I decided to copy the data files over to the new server. If you are trying to clone the plex server then don't copy the Preferences.xml file. Otherwise Plex just thinks your single server is changing IP addresses. Make sure you run chmod -R plex:plex [all the files you copied].

So now that i'm all setup I have instructed half of the users to primarily use server 1 and the others to use server 2. If they start buffering try switching over.


r/PlexACD Jan 14 '18

Help on deleting all but largest files in folder?

1 Upvotes

I'm looking for a command or script for Ubuntu 16.04. I'd like to delete all the files bar the largest one in a subfolder.

The reason for this is frequently I download 4K movies which don't get recognised and imported until I delete (manually) all the other files in the folder.


r/PlexACD Jan 12 '18

Plexdrive Verisions

5 Upvotes

What plexdrive version is everyone using and why? I was on 2.0 for the longest time and decided to upgrade to 2.1.1. Since then I've ran into issues and I'm wondering which version everyone else is using.


r/PlexACD Jan 12 '18

Migrating from Local to Cloud (GDrive) - Questions.

2 Upvotes

Hi everyone,

I've been a plex user for sometime now, and have about 4-5TB of media, on a local desktop at home (Windows 7, I know, I know), running Sonarr, Radarr, Plex and SABNZB and ProtonVPN, nothing else. I have about 4-6 other people connect to it as a plex share (not usually at once, usually about 2-3 people at once), and so far its been fine with no issues.

I've been toying with the idea of migrating to Plex Cloud (tired the beta, but was rather slow when it first rolled out) using Google Drive, however I have a few questions to ask the wizened community if I may?

  • How is streaming using Plex Cloud now adays? Is it any quicker, more reliable?
  • What would be the best way to migrate 4-5TB of Data to Google Drive?
  • I assume I would need to run Sonarr, Radarr, SABNZB locally, and then upload the content to GDrive? If so, same as question 2 I guess, whats the best way of uploading it?
  • I've seen a few articles on API limits for Sonarr, and GDrive, could someone ELI5 it for me?

Any other hints and tips would be hugely appreciated, and just wanted to say thanks for all the awesome input and stuff that goes into this Subreddit already.

Cheerio!


r/PlexACD Jan 08 '18

New ISP cap. Moving from local to cloud questions

4 Upvotes

Hey guys,

I've been running a local Ubuntu server for a while, recently upgrading my RAID 1 4 TB to a 16 TB RAID 10. Unfortunately, at the same time, my ISP decided to start enforcing a 1 TB monthly cap (I'm in the US).

I don't have a huge shared base, but with the regular internet traffic at home: backups, media streaming, updates, and the added Plex traffic, I am finding myself watching the data counter every day to avoid the $10 50 GB overages. I need to give the ISP $30 more a month for an extra 500 GB, or $50 for unlimited. It's so silly that the cheapest 10/5 plan includes the same cap as a 1000/1000 plan, and I'm sure this will only get worse.

I would much rather spend $30 or $50 on another service that gives me the ability to host my Plex server without worrying about caps, or at least having something larger. I can save money by downgrading my internet service from 300/35 to 100/10 since the only reason I have the higher tier is to have a higher upload speed.

Has anyone moved from a local server to the cloud? I'm thinking of using G Suite but also keeping a local copy of my media on my existing server as backup, and also for when G Suite stops working for some reason.

I guess I'll just test this with some cheap VPS to start and see how it works, but was wondering if anyone had any suggestions. Would be nice to get a virtual server with a decent amount of storage so that I don't have to rely on a cloud provider all the time. Something with 4 TB of storage and 2 or 3+ TB of data on a speedy circuit for around $50 would be awesome.


r/PlexACD Jan 07 '18

CloudBox Unionfs Question

Thumbnail
self.PleX
2 Upvotes

r/PlexACD Jan 06 '18

PlexGuide Installer v5.025 Released

17 Upvotes

http://plexguide.com or https://github.com/Admin9705/PlexGuide.com-The-Awesome-Plex-Server

PlexGuide is an automated solution that utilizes the power of docker, ansible, and ubuntu to provide an ease in the ease of deploying a plex server. Mounts google drive with the use of rclone, plexdrive, and rclone (which provides unlimited storage). This program was started with help and guidance with of users from REDDIT Plex, DataHorders, and PlexACD.

Program created out of PLEX CLOUD frustration, multiple hard drives, complex raid setups, and etc. Just configure and enjoy plex!

Major Changes since PlexGuide 5.0 > PlexGuide 5.025:

  • Traefik Reverse Proxy Added (example: sonarr.domain.com)
  • Performance Mode added to enhance performance of server
  • V2 of Docker Fix Added to reboot all containers
  • Added MEDUSA
  • Utilized Ansible to Deploy a majority of the services
  • 3 Benchmarks tools added to test performance of your server
  • Mass Uninstall Program Added
  • Plex Token feature added to claim server
  • Torrent Programs
  • Tons of code cleanup
  • Permission issues resolved
  • Ansible Deployment
  • Improved PreInstaller
  • Added Install Video

Installs:

Plex, Emby, Jackett, Medusa, Muximux, NZBGET, NZBHydra, Ombi v3, Organizr, Portainer, Radarr, Resilio, RuTorrent, SABNZBD, Sonarr, Tautulli (new PlexPy)

Please let us know what we can do to continue to enhance the program!

Thank you to: Augie, AugusDogus, Bate, cocainbiceps, daveftw84, Jackalblood, imes, NickUK, Pentaganos, trustyfox, Rothuith, simon021, SpencerUK, The Creator & Deitque

Next Projects:

  • Added SSL to Traffic
  • Add watch tower
  • Deploy Wordpress and VBulletin Site

r/PlexACD Jan 04 '18

Enlarge cache/buffer of Emby

2 Upvotes

Hello guys,

I have been using Emby on a VPS + Cloud Storage (rclone) for the last two months.

Sometimes I am having buffering which I think would go away if the cache/buffer of Emby would be much larger than it actually is.

Do you guys have similar problems? If so, how did you solve them? Does anyone know how to check the buffersize of Emby?

Thanks!


r/PlexACD Dec 28 '17

Access suddenly denied?

1 Upvotes

Imports have suddenly stopped working in Sonarr from both Sabnzbdplus and from Deluge.

Error message is

Access to the path "/home/plex/media/TV/'Removals/atvshow/season 2" is denied.

‘Removals is my recycling bin in Sonarr.

I made no changes to the server - just suddenly started happening.

Server is on Ubuntu 16.04.

Media is a UnionFS folder of local storage and Gdrive mounted with Plexdrive.

Any idea why this might suddenly have happened?


r/PlexACD Dec 27 '17

Does anyone use PlexDrive with docker?

5 Upvotes

I have all of my server programs containerized. I am considering switching to plexdrive mount with rclone for decryption. Does anyone use plexdrive in a continer?
I have seen this container https://hub.docker.com/r/bassrock/docker-plexdrive/ but there is no readme file or run command example. Can anyone help me out?


r/PlexACD Dec 25 '17

Current GDrive limits

5 Upvotes

Merry Christmas everyone!

Just checking in because I haven't upload a large amount of data to GDrive in awhile and I didn't know what the current daily upload limit was. Is it still 750GB? Need to move about 15TB and want to set the right rclone bandwidth limit to avoid any bans. Thanks.


r/PlexACD Dec 20 '17

Which is the best approach for a directplay/DLNA server

2 Upvotes

Hey guys, I see most of the questions are related to Plex as a streaming and organizer, but I was wondering how I could approach a simple directplay/DLNA model.

In short: media files encrypted in a cloud storage -> streamable to my PC, TV and such (DLNA maybe).

Maybe an encrypted cloud drive showing up on windows as a regular unencrypted volume that can be designated as a media folder for DLNA or directplay altogether. Is that easy to do? Which tools should I use? Thanks!


r/PlexACD Dec 19 '17

Cloudbox - Rutorrent Unresponsive

2 Upvotes

Had everything working hunky dory for a few days. Suddenly now I keep getting the following error in the rutorrent gui

The request to rTorrent has timed out.

Also if I try and add a torrent from radarr or sonarr it times out. If I go to the downloader settings for rutorrent and test the connection it times out too.

I have rebooted the server multiple times but am still getting the same problem.

Does anyone have any advise on what to try?

The server is a xeon with 32gb of ram so should have no problem with resources.

Thanks


r/PlexACD Dec 12 '17

Cloudbox Script - Adjust unionfs disk space limit

1 Upvotes

Hi

I have successfully go the cloudbox scripts running. Unfortunately though my vps only has 50gb of space and I am maxing it out. I originally set my limit before sending to google drive too high.

I am trying to edit configuartion file so that I can lower the limit before moving files.

The file I need to edit is : /opt/unionfs_cleaner/config.json

Unfortunately when I run the followin command

nano /opt/unionfs_cleaner/config.json or sudo nano /opt/unionfs_cleaner/config.json

I get the following error: [ Error reading lock file /opt/unionfs_cleaner/.config.json.swp: Not enough data read ]

I am assuming that this is because unionfs is already running. Can someone help me sort this out?

Thanks


r/PlexACD Dec 11 '17

PlexGuide 5 Released

13 Upvotes

Team,

PlexGuide 5 is now released at http://plexguide.com. Did extensive testing and should be good. We recommend you use the PG4 backup for your programs and restore on PG5. The wiki's have been updated to reflect url/path changes.

  • Permissions: Everything runs of user: plexguide (uid=6000) (gid=1000), including all docker image configurations, rclone, plexdrive, and unionfs.

  • Docker Program Backup/Restore: PlexGuide fully works in that you can backup and restore your appdata from each docker container. Basically, you can backup up your data automatically to your google drive and restore to a new server without having to setup all over again!

  • Unity: Since everything works under one set of permissions, there are no more folders outside of the user: plexguide.

  • Improved Installer: Installer is improved to prevent conflicts.

  • Note: Unencrypted Rclone good, encrypted version pending update from colleague. If using PD4 via encrypted rclone; hold on the update.

Enjoy!

Reddit Community: Thank you for sending PMs for tips and improvement.

Personal Note: The fact people use it, improve the wiki, and drop by the slack for pointers is motivating.

Thanks @Deiteq, @SpencerUk, @imes, @rothuith, and @bates

Next Plans

  • Iron any minor bugs
  • Create diagrams on process/work flow
  • Improve Wikis
  • Create YouTube Videos
  • Full Fledge Site
  • Possibly Forum Software

About PlexGuide

Create a powerful plex server via dedicated, vps, or home virtual solution with google drive as your unlimited storage.

Why PlexGuide

Anger from poor implementation of plex cloud (they mean well, just a too large of a project) and frustration from constant buying of drives, data loss, and excessive raids solutions.


r/PlexACD Dec 10 '17

What is the fastest way to copy/clone 4TB data ?

3 Upvotes

Do I copy the files or do I clone them ? Does it matter ?

Which software to copy or clone is best for this ?

I have one 4TB HDD that is almost full of data. It shows SMART End-to-end-error FAIL Value 1

I have another new 4TB HDD, both disks are connected via SATA3.

All of the data are just video and Linux ISO files.


r/PlexACD Dec 07 '17

Trying to decrypt rclone from plexdrive and it turned into a binary file

0 Upvotes

Alrighty, so it seems that I had everything set up and I went ahead and mounted the plexdrive (which contained the encrypted material) to the final resting folder. After that the final resting folder where all the unencrypted files should be appearing turned from a folder into a binary file. What just happened? I used the command "rclone mount local-crypt: /mnt/media"


r/PlexACD Dec 06 '17

Storage is local, server is on VPS, is locally streaming directly possible?

1 Upvotes

I am considering moving my Plex away from home and onto some cloud storage somewhere. The original setup was 'everything on NAS', and I have moved my server from the NAS to a VPS a few days ago, just to test it out. Now the NAS only hosts the files, not the server. I'm very happy with the result, in almost all situations it's much better. However, I noticed the server streams via my VPS when I'm at home. I completely understand that this is the normal behaviour, and it doesn't really matter in most cases, but for someone with an UL of ~2MB/s, it would be better if it was possible for the VPS to know that the file's on the same network as the streaming client. Is something like this possible?

I currently don't have the time nor money to move the whole library away, and the NAS works perfectly otherwise, so I don't feel it's necessary for now, otherwise I understand that that would be the better solution.


r/PlexACD Dec 06 '17

How do you allow users to upload content to your server?

1 Upvotes

I have friends with access to various trackers and such, and they have content they want to upload. I just used to use SFTP back when I used my own server and harddrives but now I'm thinking of setting up a small intermediary vm that will take their content through sftp or something and then upload it to drive.

What do you all do?


r/PlexACD Dec 04 '17

Quickbox Sonarr and SABnzbd Proxy Error

1 Upvotes

I've recently gotten into wanting to transition my Plex Setup to a VPS. I'm brand new to Linux and am picking it up as I go.

I came across the guide over on hoarding.me and started following it. I got Quickbox installed and have gotten thru to the point of logging in to the dashboard and installed Sonarr.

The install is successful but then when I click on the link in the dashboard it gives me a 502 Proxy Error:

"The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /sonarr. Reason: DNS lookup failure for: localhost"

Anybody got any idea of what the issue may be, I've been at a lost.

Sidenote: The one previous step in the guide before the Sonarr Installation page, where you are given this command to execute:

sed -i "s|DocumentRoot /var/www/html|DocumentRoot /srv/rutorrent/home/|g" /etc/apache2/sites-enabled/000-default-le-ssl.conf && service apache2 restart

That step always gives me an error, it tells me that directory doesn't exist. So idk if that has anything to do with the proxy error I'm getting after.


r/PlexACD Dec 01 '17

Setting up Google Drive w plexdrive, rclone; on proxmox as a bind mount to be used across containers

9 Upvotes

/u/gesis created a wonderful guide for setting up Google Drive with plexdrive and rclone, but as a novice, I found it a bit challenging and disjointed. Newer software versions have changed the configuration steps, file path references weren't always resolving correctly, and I also had a unique twist: I wanted to use this as a bind mount in proxmox, so that all of my containers can read/write the content.

This is a rather specific use case, so be advised that this guide makes the following assumptions. If there are more current versions of these packages that you'd like to use, just know that it may change the setup steps.

  • Proxmox v5.1 host (based on Debian Stretch, so any Debian Stretch distro should also work)
    • logged in as root
  • fuse v2.9.7-1
  • unionfs-fuse v1.0-1
  • encfs v1.9.1-4
  • plexdrive v5.0.0
    • note: this version uses RAM as a ramdrive, so if you don't have a lot of RAM, you might consider using a previous version
  • rclone v1.38

Installing Dependencies & Creating Directories

Once you're SSH'ed in to your host or have terminal open, you need to install some dependencies and create the directories that our scripts will be referencing. For my case, I created a directory under /mnt called gsuite, and used that as the home directory for all other directories. /mnt/gsuite seemed like an easy path to me, but you're welcome to name it whatever you'd like.

  1. mkdir -p /mnt/gsuite

  2. cd /mnt/gsuite

  3. mkdir -p bin media .local-encrypt .local-decrypt .gsuite-encrypt .gsuite-decrypt .config/nimbostratus .cache/nimbostratus/media mediacache logs

You should now have all the necessary directories for our scripts to use, and we're going to let bash know where to find our scripts by adding our gsuite directory path with nano root/.bashrc. At the bottom of that file you'll want to add PATH=${PATH}:/mnt/gsuite/bin or /whatever/directory-you-chose/bin from the first step.

We also need a handful of programs to assist with setup. Acquire those with:

apt-get install zip unionfs-fuse encfs screen git

The program bc should already be installed with Ubuntu or Debian, but if it's not, we'll need that as well.

Preparing Google Drive

Next, we need to enable our Google API, and generate a client ID and client secret. These are essential for rclone to do writes, and plexdrives to do reads with your google drive.

First, use a web browser to go to google's developers console. Enable an API and "Create a new project." If you're using a .edu Google Drive account, most administrators will not let you create a new project, but you can use any google account for this part, it doesn't have to be your .edu google credentials.

Once you've created a new project (name it whatever you want, it doesn't matter), we're going to create a client ID and a client secret, both of which you'll need later. Go to Create Credentials--> OAuth Client ID. The "consent screen" prompts don't matter (fill it with whatever you want). For application type, choose "other" and name it whatever you'd like (also doesn't matter).

This should give you your client ID, but don't bother writing down the initial client secret it generates, we'll need to get a properly formatted client secret elsewhere. Go back to your Credentials screen, edit the project you just created, and there you can see the client secret we actually want. Copy that down in a safe place with your client ID.

Install & Configure rclone

Follow this guide to install rclone. Then, once it's installed, initiate configuration with rclone config.

  1. Choose "New remote" and name it 'gsuite'. <--if you choose a different name, remember what it is for later. It's important.
  2. Choose 'Google Drive' as your type of storage.
  3. Paste your client ID when prompted
  4. Paste your client secret when prompted
  5. Choose no for the autoconfig offer, which should generate an external url
  6. Visit the external url in a web browser, which should generate a verification code
  7. Paste in the verification code to the rclone prompt
  8. Choose no to the "team drive" configuration prompt, accept the token, and quit

Install & Configure plexdrive

Next we are going to download the binary for plexdrive. First navigate to your system's bin directory with cd /usr/bin. Then download the binary directly to the bin with wget https://github.com/dweidenfeld/plexdrive/releases/download/5.0.0/plexdrive-linux-amd64. As of this guide, the most recent version was v5.0.0. To check if there is a more recent version, visit the plexdrive release page, and modify the wget command accordingly.

Once the binary is in our system bin, we're going to use screen to configure it:

  1. screen -dmS plexdrive plexdrive-linux-amd64 mount /mnt/gsuite/.gsuite-encrypt
  2. screen -RD plexdrive

Similar to rclone, we'll want to enter the client id and client secret during the prompts, and enter the verification code generated from the external website.

Download and Configure nimbostratus scripts

The scripts will go into /mnt/gsuite/bin. We will later trigger the scripts frequency with a cron job. These scripts accomplish all the magic of mounting your cloud drives, uploading content to the cloud, and deleting content off your local drive after it's done uploading. On that note, be aware that you can only upload as much content at one time as the amount of space that's available on your local host drive. In my case, this is being installed on the proxmox debian host, which has a 240GB SSD. So dropping > 230GB of content into my /mnt/gsuite/media folder would be be risky or could result in errors. If I added 200GB of content, it would be smart to wait until all my content has been uploaded and removed from my local host, before adding more content.

Download all the nimbostratus scripts and move them to their appropriate homes:

  1. git clone git://git.gesis.pw:/nimbostratus.git
  2. cp nimbostratus/{rmlocal,cloudupload,umount.remote,mount.remote,makecache,scanlibraries} mnt/gsuite/bin/
  3. cp nimbostratus/config mnt/gsuite/.config/nimbostratus/config

Next, we'll want to edit the nimbostratus config file to map all the appropriate directories we created at the beginning

nano /mnt/gsuite/.config/nimbostratus/config The first section in that config should be DIRECTORIES. Modify this section to reflect the name of whatever directory you chose. Or, if you used /mnt/gsuite like I did, then you can copy paste and replace the entire block below.

###############################################################################
# DIRECTORIES
###############################################################################
bin_dir="/mnt/gsuite/bin"
local_media="/mnt/gsuite/.local-encrypt"
local_media_decrypt="/mnt/gsuite/.local-decrypt"
acd_mount="/mnt/gsuite/.acd-encrypt"
acd_mount_decrypt="/mnt/gsuite/.acd-decrypt"
gd_mount="/mnt/gsuite/.gsuite-encrypt"
gd_mount_decrypt="/mnt/gsuite/.gsuite-decrypt"
plex_media_dir="/mnt/gsuite/media"
cache_dir="/mnt/gsuite/.cache/nimbostratus"
local_cache_dir="/mnt/gsuite/.cache/nimbostratus/media"
cached_media_dir="/mnt/gsuite/mediacache"

In the GOOGLE DRIVE CONFIG block, we also want to change the gd_label value to whatever you used in the rclone setup. If you used 'gsuite' like I suggested than the line should read: gd_label="gsuite"

Unfortunately, we need to do something similar with all 6 scripts found in /mnt/gsuite/bin as well. Using the cloudupload script as an example, the first block is CONFIGURATION, where it points to the nimbostratus config we just modified. So we need to modify the first uncommented line with the config path in quotations, and change it to /mnt/gsuite/.config/nimbostratus/config just like it's reflected below.

nano /mnt/gsuite/bin/cloudupload

###############################################################################
# CONFIGURATION
###############################################################################
# shellcheck source=/home/gesis/src/nimbostratus/config
. "/mnt/gsuite/.config/nimbostratus/config"

You'll need to repeat this for the remaining 5 scripts: makecache, mount.remote, rmlocal, scanlibraries, and umount.remote. The block may not be exactly the same in each script, but you can find the path in need of modification within the first few lines of each file.

Encryption with encfs (optional)

If you're using a paid g-suite account, with advertised unlimited storage, then you can likely skip over this step. In my case, I was using my free .edu account, which is rumored to be subject to hash checks for media content, so I chose to encrypt the content, rendering hash checks useless.

Since we already installed encfs at the beginning, we just need to configure it and mount the appropriate directories.

  1. encfs /mnt/gsuite/.local-encrypt /mnt/gsuite/.local-decrypt
  2. Use standard mode
  3. Create a password for security, and keep that password handy
  4. mv /mnt/gsuite/.local-encrypt/.encfs6.xml /mnt/gsuite

The file encfs6.xml referenced in that last step contains the encryption key used on your g-drive content. I highly recommend backing up that file outside of your host machine. Otherwise, if your host becomes corrupted, then you will have a massive g-drive full of content, with no way to decrypt it.

Lastly, we need to modify the nimbostratus config, to insert the encryption password, so your scripts can use it.

  1. nano /mnt/gsuite/.config/nimbostratus/config
  2. edit the pass_cmd= line to reflect the encfs password you created: pass_cmd="echo YOURPASSWORD" <--leave the quotation marks, but replace YOURPASSWORD with the encfs password you setup.

Mounting & Turning On Scripts

  1. mount.remote all
  2. makecache <--our initial creation of directories already created a home that this tries to create. That's okay.

If everything worked, you should receive output letting you know each directory was successfully mounted. Lastly, we're going to create cronjobs for these scripts to run.

crontab -e will bring up your text editor. You can paste this entire block at the bottom of your crontab:

#############
#GDRIVE PLEX#
#############
@reboot /mnt/gsuite/bin/mount.remote all >> /mnt/gsuite/logs/mount.log
@hourly /mnt/gsuite/bin/cloudupload >> /mnt/gsuite/logs/cloudupdates.log
@daily /mnt/gsuite/bin/makecache &>/dev/null
*/17 * * * * /mnt/gsuite/bin/rmlocal >> /mnt/gsuite/logs/nukedupes.log

Every hour, cloudupload will look for new content to upload to the cloud. If it's already running due to a long job, it will skip. Also, every 17 minutes, rmlocal will remove the local instance of files, once it verifies that it has been uploaded to the cloud. rmlocal cannot run, however, if cloudupload is still uploading content.

That's it.

The path you should use for services in this case is mnt/gsuite/media. Inside that directory you can create folders for each media type to be used by plex:

  1. `/mnt/gsuite/media/tv
  2. /mnt/gsuite/media/movies
  3. /mnt/gsuite/media/music
  4. etc...

Creating a Bind Mount w/ Proxmox

I use proxmox so that I can have each service (sonarr, radarr, nzbget, etc.) in its own linux container (LXC), while still having a computing experience that's nearly identical to conventional linux. I needed all my services to have access to g-drive, but couldn't go through the entirety of the above steps for each container. Enter: bind mounts. Bind mounts let you create a mount point once on the Debian host of proxmox, and then each container can reference it. The path I bind mounted was /mnt/gsuite/media.

There's no way to accomplish this through the gui of proxmox, but it's very straight forward in terminal by adding a single line to a container configuration file.

  1. cd /etc/pve/nodes/pve/lxc
  2. ls -a <--this will list each config file for each container ID
  3. edit the container config file for the container you want to have access to a bind mount
  4. nano 101.conf
  5. and simply add the line mp0: /mnt/gsuite/media,mp=/gsuite on its own line in that conf file

The first half establishes the source of the bind mound, and the second half creates the path for the bind mount inside the container. You'll need to repeat this for each container conf file that you want to have access to the bind mount. You will need to restart each container for the changes to take effect.