GAM Download Export to Local Drive Failing

153 views
Skip to first unread message

Joe Sap

unread,
Jun 28, 2019, 1:51:12 PM6/28/19
to GAM for G Suite
Hello, 

I am not sure why, but when trying to download an export to a local target folder, I get a weird error where it shows the path I am pointing to with double-slashes. For example:

My input:
 gam download export "Arnold Shwarmanegger Drive" "GAM DRIVE Export - 2019-06-27T20:41:00+00:00" targetfolder "G:\2019\DriveBackup\AstaLavista"


Error:
The system cannot find the file specified: "G:\\2019\\DriveBackup\\AstaLavista\\"


Is there a different way I should enter the path of the export download destination? 

Thank you, 

Joe

Ross Scroggs

unread,
Jun 28, 2019, 2:06:26 PM6/28/19
to google-ap...@googlegroups.com
Joe,

Try: gam download export "Arnold Shwarmanegger Drive" "GAM DRIVE Export - 2019-06-27T20:41:00+00:00" targetfolder "G:/2019/DriveBackup/AstaLavista"

Ross

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/efde9c25-b54b-4c1f-a0a1-69d18ad996c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Ross Scroggs

unread,
Jun 28, 2019, 2:08:13 PM6/28/19
to google-ap...@googlegroups.com
Joe,

This will also work: gam download export "Arnold Shwarmanegger Drive" "GAM DRIVE Export - 2019-06-27T20:41:00+00:00" targetfolder "G:\\2019\\DriveBackup\\AstaLavista"

Ross
--

Joe Sap

unread,
Jun 28, 2019, 2:25:14 PM6/28/19
to GAM for G Suite
Hi Ross, I tried both of these options and still got errors:

For your first suggestion:
No such file or directory: 'G:\\\\2019\\\\DriveBackup\\\\AstaLavista'

For your second suggestions:
No such file or directory: 'G:/2019/DriveBackup/AstaLavista'




On Friday, June 28, 2019 at 11:08:13 AM UTC-7, Ross Scroggs wrote:
Joe,

This will also work: gam download export "Arnold Shwarmanegger Drive" "GAM DRIVE Export - 2019-06-27T20:41:00+00:00" targetfolder "G:\\2019\\DriveBackup\\AstaLavista"

Ross

On Fri, Jun 28, 2019 at 11:06 AM Ross Scroggs <ross....@gmail.com> wrote:
Joe,

Try: gam download export "Arnold Shwarmanegger Drive" "GAM DRIVE Export - 2019-06-27T20:41:00+00:00" targetfolder "G:/2019/DriveBackup/AstaLavista"

Ross

On Fri, Jun 28, 2019 at 10:51 AM Joe Sap <joe.s...@appdirect.com> wrote:
Hello, 

I am not sure why, but when trying to download an export to a local target folder, I get a weird error where it shows the path I am pointing to with double-slashes. For example:

My input:
 gam download export "Arnold Shwarmanegger Drive" "GAM DRIVE Export - 2019-06-27T20:41:00+00:00" targetfolder "G:\2019\DriveBackup\AstaLavista"


Error:
The system cannot find the file specified: "G:\\2019\\DriveBackup\\AstaLavista\\"


Is there a different way I should enter the path of the export download destination? 

Thank you, 

Joe

--
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


--
Ross Scroggs

Justin Hatem

unread,
Jul 2, 2019, 1:38:46 PM7/2/19
to GAM for G Suite
I just finished a bash script that creates a list of all suspended accounts, then exports all suspended accounts to Vault, then moves their export files to a Team Drive.  This line worked for me:

gam download export "Full Backup" "Export run 06-28-2019" targetfolder "/Volumes/GoogleDrive/Shared drives/Mail-Archive/"

Since you'er having trouble with the backslash, maybe try putting the path into a variable first? 

folder="G:\2019\DriveBackup\AstaLavista\"



then try 

gam download export "Arnold Shwarmanegger Drive" "GAM DRIVE Export - 2019-06-27T20:41:00+00:00" targetfolder $folder

+KimNilsson

unread,
Jul 5, 2019, 8:55:56 AM7/5/19
to GAM for G Suite
Justin,

that sounds interesting. Able to share that initial part of the script?

On Tuesday, 2 July 2019 19:38:46 UTC+2, Justin Hatem wrote:
I just finished a bash script that creates a list of all suspended accounts, then exports all suspended accounts to Vault, ...:

Anthony Cosentino

unread,
Aug 7, 2019, 10:49:09 AM8/7/19
to GAM for G Suite
Hi Justin,

Does this export all of the users data including mail?

Thanks,
Anthony
Reply all
Reply to author
Forward
0 new messages