Need to know a Google Drive long term solution

headspace

Newbie
Joined
Jun 20, 2017
Messages
44
Reaction score
5
So I'll be upfront about all this and I'm sure it can help people here. This mainly goes for people hosting VIDEO STREAMING Websites in any nature and use google drive.

As my site grows larger I worry that one day my drive will be deleted. All of my links on my sites go something like this

https://drive.google.com/open?id=0123456orV-ABCDEFGHIJK

So lets say it gets deleted and now I have to reupload>> thats easy using "gdrive upload" in linux CLI, but now all my URLs have changed

https://drive.google.com/open?id=0B0000orV-XXXXYYYYZZZ

What are all of you doing to solve this time consuming issue. Because if your doing this then you will have to update hundred or thousands of pages/URL manually on your site?

my idea is to host on Amazon S3 AWS. there is one BIG CON at the end I'll explain.

I upload my videos to AWS Cloudfront and create a domain like

stream.ssdfame.com.s3.amazonaws.com/file1.mp4
stream.ssdfame.com.s3.amazonaws.com/file2.mp4
stream.ssdfame.com.s3.amazonaws.com/file3.mp4

now on my actual domain/site/DNS i create a CNAME
stream.ssdfame.com

now videos will be
stream.ssdfame.com/file1.mp4
stream.ssdfame.com/file2.mp4
stream.ssdfame.com/file3.mp4

if my files get deleted then all I would have to do is just upload them again and point the CNAME to a new host. basicly pointing to a new repository. An I don't have to change anything on my site.

SIDE QUESTION can you resolve the url stream.ssfdfame.com to the amazon AWS..? When I watch the file being downloaded via console view in google chrome it just shows stream.ssdfame.com/file1.mp4 . which is what i want. FYI no URL's are real in this post.

the big problem with AWS is uploading. There is no fast way to go about it with AWS. with google drive i never even download the files to my computer. they just get transferred from server to server to new server to new googledrive. Its beautiful seeing all those gigs gets downloaded in seconds. =) but because googledrive encrypts their url i had to come up with this solution...maybe

AWS u actually have to click, drag and drop your files. I've been looking for an API and I'm even willing to pay. AWS S3 is not user friendly. If you are not server sysadmin type it can be difficult to setup and all the videos are outdated and use a different GUI with different options.

option 3?

new google drive created new files uploaded in just a few minuets. get all shared URL's
open excel.
filename oldURL1 new URL1
filename oldURL 2 new URL2
filename oldURL 3 new URL3

Then pull your MYSQL database CTRL+F the old URL and replace with the NEW until complete then re upload.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any thoughts? How are you all doing this? I think I'm over doing it... ^_^
 
FYI AWS allows you to stream files, big files even live stream. It was made with that in mind and has options for that service. its also uploads itself to other server's around the world so faster streaming of your files. its a big win if I can get the uploading issue fixed. my next step is to try the "instance Creation " in AWS S3. Also with AWS you wont get shutdown for misuse because it was made for streaming.
 
You can download a script to search/regex the links you want to update.

You can also make SQL queries to search/regex your links in your database.
 
Back
Top