Uploading folders for users

1,103 views
Skip to first unread message

Richard Walter

unread,
May 6, 2015, 11:25:04 AM5/6/15
to google-ap...@googlegroups.com
Hello All,
I am looking into creating a script to upload our users windows home directories to a folder in their google drives, since this summer we are most likely getting rid of our desktop computers. Is there a gam command I am missing that could upload an entire folder's contents or am I going to need to do this file by file? Has anyone tried doing this?
All in all, I would want to create the structure they have in their current h drive, inside a folder in google drive labeled something like "From H Drive".

Ricardo Ardila Vetrovec

unread,
May 6, 2015, 11:31:15 AM5/6/15
to google-ap...@googlegroups.com
Hello, this is my experience

I currently using google drive to backup data...

You need tu septup oauth2service.json (https://github.com/jay0lee/GAM/wiki/CreatingClientSecretsFile section Creating Your Own OAuth2service.json)

Then i make a tar.gz file (in your case a zip o rar file) and uploading to a specific folder in the gdrive user account with this command

python /GAM-3.45/gam.py user USER EMAIL add drivefile localfile DIRECTORY/FILE.TAR.GZ parentid ID OF THE FOLDER

if you don't want to upload on an specific directory ignore parentid then this upload to the root directory of the user.


Hope other users of this group can help us with de directory upload at once doubt



--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/2865ec71-bf5b-44c2-b473-96cee290f46c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--------------------------------------------------------------------------------------------------------



Jefferson Davis

unread,
Jan 30, 2017, 2:23:45 PM1/30/17
to GAM for G Suite
I too have been looking for a "clean" way to do this, no duplicates, update existing, etc.  So far, very little info available outside of "have the users do it themselves"...  While some will, many will not.

Also, moving large numbers of files/large amounts of data frequently fails or times out, possibly due to google throttling uploads.


On Wednesday, May 6, 2015 at 8:31:15 AM UTC-7, Ricardo Ardila Vetrovec wrote:
Hello, this is my experience

I currently using google drive to backup data...

You need tu septup oauth2service.json (https://github.com/jay0lee/GAM/wiki/CreatingClientSecretsFile section Creating Your Own OAuth2service.json)

Then i make a tar.gz file (in your case a zip o rar file) and uploading to a specific folder in the gdrive user account with this command

python /GAM-3.45/gam.py user USER EMAIL add drivefile localfile DIRECTORY/FILE.TAR.GZ parentid ID OF THE FOLDER

if you don't want to upload on an specific directory ignore parentid then this upload to the root directory of the user.


Hope other users of this group can help us with de directory upload at once doubt


2015-05-06 10:54 GMT-04:30 Richard Walter <richard...@ecsdm.org>:
Hello All,
I am looking into creating a script to upload our users windows home directories to a folder in their google drives, since this summer we are most likely getting rid of our desktop computers. Is there a gam command I am missing that could upload an entire folder's contents or am I going to need to do this file by file? Has anyone tried doing this?
All in all, I would want to create the structure they have in their current h drive, inside a folder in google drive labeled something like "From H Drive".

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.



--

--------------------------------------------------------------------------------------------------------



Jefferson Davis

unread,
Jun 7, 2017, 5:35:24 PM6/7/17
to GAM for G Suite
Uh, bump?  Nobody has successfully tackled this yet?

Jefferson Davis

unread,
Jun 7, 2017, 5:39:31 PM6/7/17
to GAM for G Suite
I just found this on github.  May be exactly what we're looking for :D



On Wednesday, May 6, 2015 at 8:25:04 AM UTC-7, Richard Walter wrote:

Ian Crew

unread,
Jun 7, 2017, 5:49:43 PM6/7/17
to 'Jordan Tinsley' via GAM for G Suite
There are also commercial products like SkySync and Cloud Fast Path that are designed to facilitate bulk uploads to Drive (and other EFSS solutions), doing stuff like mapping permissions and so forth.

Hope that helps,

Ian

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
___
Ian Crew

IST-Architecture, Platforms and Integration (API)
Earl Warren Hall, Second Floor
University of California, Berkeley

+KimNilsson

unread,
Jun 8, 2017, 5:32:51 AM6/8/17
to GAM for G Suite
Please, let us know how you did when you're successful.

Jefferson Davis

unread,
Jun 8, 2017, 7:38:41 PM6/8/17
to Google Apps Manager
So far various unresolved errors.  Hope to have some more time to monkey with it tomorrow.

On Thu, Jun 8, 2017 at 2:32 AM, +KimNilsson <there.is.no...@gmail.com> wrote:
Please, let us know how you did when you're successful.

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/xL7cAlL6Ryg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.



--
Please note my new email address: jda...@standardschools.net

Jefferson K Davis,
Director, Technology and Information Systems

Standard School District
1200 North Chester Ave  Bakersfield, CA 93308

661.392.2110 ext 120 (office)

http://district.standard.k12.ca.us 

District Users:  Click here to report technology issues
"Proper Prior Planning Promotes Peak Performance"

Mark Ryan

unread,
Jun 11, 2019, 11:12:49 AM6/11/19
to GAM for G Suite
Hi Jefferson,

Reviving an old post here...I was wondering if you ever had any success getting this Perl script to work for you. Like others in this thread, we have several home folders left on our Windows file servers when students and/or employees leave and I'd love to be able to upload all of that stuff to their Google Drive. I've been playing with the script (no prior experience with Perl!) and not getting all that far...

Thanks!
Mark

On Thursday, June 8, 2017 at 7:38:41 PM UTC-4, Jefferson Davis wrote:
So far various unresolved errors.  Hope to have some more time to monkey with it tomorrow.
On Thu, Jun 8, 2017 at 2:32 AM, +KimNilsson <there.is....@gmail.com> wrote:
Please, let us know how you did when you're successful.

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/xL7cAlL6Ryg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

Jefferson Davis

unread,
Jun 11, 2019, 1:03:54 PM6/11/19
to Google Apps Manager
Sadly, no.  We ended up doing it manually.

On Tue, Jun 11, 2019 at 8:12 AM Mark Ryan <mr...@laurelschool.org> wrote:
Hi Jefferson,

Reviving an old post here...I was wondering if you ever had any success getting this Perl script to work for you. Like others in this thread, we have several home folders left on our Windows file servers when students and/or employees leave and I'd love to be able to upload all of that stuff to their Google Drive. I've been playing with the script (no prior experience with Perl!) and not getting all that far...

Thanks!
Mark

On Thursday, June 8, 2017 at 7:38:41 PM UTC-4, Jefferson Davis wrote:
So far various unresolved errors.  Hope to have some more time to monkey with it tomorrow.
On Thu, Jun 8, 2017 at 2:32 AM, +KimNilsson <there.is....@gmail.com> wrote:
Please, let us know how you did when you're successful.

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/xL7cAlL6Ryg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--
Please note my new email address: jda...@standardschools.net

Jefferson K Davis,
Director, Technology and Information Systems

Standard School District
1200 North Chester Ave  Bakersfield, CA 93308

661.392.2110 ext 120 (office)

http://district.standard.k12.ca.us 

District Users:  Click here to report technology issues
"Proper Prior Planning Promotes Peak Performance"

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/xL7cAlL6Ryg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.


--

Jefferson K Davis,
Director, Technology and Information Systems

Standard School District
1200 North Chester Ave  Bakersfield, CA 93308

661.392.2110 ext 120 (office)

Mark Ryan

unread,
Jun 11, 2019, 1:05:31 PM6/11/19
to google-ap...@googlegroups.com
Bummer...thanks for the reply.

Mark Ryan
Systems Analyst

mR...@LaurelSchool.org
Direct: 216.455.3052
Laurel School
One Lyman Circle
Shaker Heights, OH 44122




You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Mark Ryan

unread,
Jun 11, 2019, 1:43:46 PM6/11/19
to google-ap...@googlegroups.com
Came across this while doing some more searching on the subject:

We are a G Suite for Education school (non-Enterprise) so we don't qualify right now but it might be something to keep an eye on.

Mark Ryan
Systems Analyst

mR...@LaurelSchool.org
Direct: 216.455.3052
Laurel School
One Lyman Circle
Shaker Heights, OH 44122



Ross Scroggs

unread,
Jun 11, 2019, 1:59:25 PM6/11/19
to google-ap...@googlegroups.com

Andrew Birchler (Five-Star Technology)

unread,
Jun 11, 2019, 2:51:12 PM6/11/19
to GAM for G Suite
We use Rclone for things like this. You can setup service accounts and do user impersonation. 
We actually have been using it to mass migrate data to Team (Shared) Drives and My Drives for our education clients. Huge cost savings compared to Migration tools and almost as easy to setup and use if you can write some decent powershell to deal with errors and logging. 

--Andrew 
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--
Please note my new email address: jda...@standardschools.net

Jefferson K Davis,
Director, Technology and Information Systems

Standard School District
1200 North Chester Ave  Bakersfield, CA 93308

661.392.2110 ext 120 (office)

http://district.standard.k12.ca.us 

District Users:  Click here to report technology issues
"Proper Prior Planning Promotes Peak Performance"

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/xL7cAlL6Ryg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.


--

Jefferson K Davis,
Director, Technology and Information Systems

Standard School District
1200 North Chester Ave  Bakersfield, CA 93308

661.392.2110 ext 120 (office)


District Users:  Click here to report technology issues
"Proper Prior Planning Promotes Peak Performance"

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.


--
Ross Scroggs

Kim Nilsson

unread,
Jun 12, 2019, 7:49:10 AM6/12/19
to Google Apps Manager
Andrew,

Are you perhaps able to share examples of "decent powershell to deal with errors and logging"? :-)
Maybe even rclone settings/configs, unless they are part of the PS scripts.
Anonymised, of course. If it's documented, even better.

/Kim

Andrew Birchler (Five-Star Technology)

unread,
Jun 12, 2019, 8:39:44 AM6/12/19
to GAM for G Suite
Kim, 

Unfortunately I can't share our Powershell scripting. Company policy on our internal developed tools and such. 

The documentation for all the parts needed is really solid https://rclone.org/drive/. You just need to put the parts together. Service accounts & the account impersonation are the ones you need to focus on that aren't really in any of the How to guides I have read. 
Rclone has a good forum as well so you can get assistance with anything over there easy enough. 

--Andrew

Kim Nilsson

unread,
Jun 12, 2019, 9:34:56 AM6/12/19
to Google Apps Manager
Shame, but thanks for letting us know.

Mark Ryan

unread,
Jun 21, 2019, 9:34:29 AM6/21/19
to google-ap...@googlegroups.com
Andrew and Ross,

Just wanted to say thank you for pointing me in the direction of Rclone. After working through the documentation and a little help from the Rclone forum, I've been able to upload files and folders from our file server into students' Google Drives. It really is a great tool.

Thanks,

Mark Ryan
Systems Analyst

mR...@LaurelSchool.org
Direct: 216.455.3052
Laurel School
One Lyman Circle
Shaker Heights, OH 44122



To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--
Please note my new email address: jda...@standardschools.net

Jefferson K Davis,
Director, Technology and Information Systems

Standard School District
1200 North Chester Ave  Bakersfield, CA 93308

661.392.2110 ext 120 (office)

http://district.standard.k12.ca.us 

District Users:  Click here to report technology issues
"Proper Prior Planning Promotes Peak Performance"

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/xL7cAlL6Ryg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.


--

Jefferson K Davis,
Director, Technology and Information Systems

Standard School District
1200 North Chester Ave  Bakersfield, CA 93308

661.392.2110 ext 120 (office)


District Users:  Click here to report technology issues
"Proper Prior Planning Promotes Peak Performance"

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.


--
Ross Scroggs

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
Reply all
Reply to author
Forward
0 new messages