mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
copy storagebucket/vault cleanup (#1599)
This commit is contained in:
@@ -1681,6 +1681,9 @@ gam show guardian|guardians [invitedguardian <EmailAddress>] [student <StudentIt
|
|||||||
gam print guardian|guardians [todrive] [invitedguardian <EmailAddress>] [student <StudentItem>] [invitations [states <GuardianStateList>]] [<UserTypeEntity>]
|
gam print guardian|guardians [todrive] [invitedguardian <EmailAddress>] [student <StudentItem>] [invitations [states <GuardianStateList>]] [<UserTypeEntity>]
|
||||||
gam cancel guardianinvitation|guardianinvitations <GuardianInvitationID> <StudentItem>
|
gam cancel guardianinvitation|guardianinvitations <GuardianInvitationID> <StudentItem>
|
||||||
|
|
||||||
|
gam download storagebucket <URL>
|
||||||
|
gam copy storagebucket sourcebucket <URL> targetbucket <URL> [sourceprefix <String>] [targetprefix <String>]
|
||||||
|
|
||||||
gam create vaultexport|export matter <MatterItem> [name <name>] corpus <drive|mail|groups|hangouts_chat>
|
gam create vaultexport|export matter <MatterItem> [name <name>] corpus <drive|mail|groups|hangouts_chat>
|
||||||
(accounts <EmailAddressList>) | (orgunit|ou <OrgUnitPath>) | (teamdrives <TeamDriveList>) | (rooms <ChatRoomList>) | everyone
|
(accounts <EmailAddressList>) | (orgunit|ou <OrgUnitPath>) | (teamdrives <TeamDriveList>) | (rooms <ChatRoomList>) | everyone
|
||||||
[scope <all_data|held_data|unprocessed_data>]
|
[scope <all_data|held_data|unprocessed_data>]
|
||||||
@@ -1693,6 +1696,7 @@ gam delete export <MatterItem> <ExportItem>
|
|||||||
gam info export <MatterItem> <ExportItem>
|
gam info export <MatterItem> <ExportItem>
|
||||||
gam print exports [todrive] [matters <MatterItemList>]
|
gam print exports [todrive] [matters <MatterItemList>]
|
||||||
gam download export <MatterItem> <ExportItem> [noverify] [noextract] [targetfolder <FilePath>]
|
gam download export <MatterItem> <ExportItem> [noverify] [noextract] [targetfolder <FilePath>]
|
||||||
|
gam copy export <MatterItem> <ExportItem> targetbucket <URL> [targetprefix <String>]
|
||||||
|
|
||||||
gam create vaulthold|hold corpus drive|groups|mail matter <MatterItem> [name <String>] [query <QueryVaultCorpus>]
|
gam create vaulthold|hold corpus drive|groups|mail matter <MatterItem> [name <String>] [query <QueryVaultCorpus>]
|
||||||
[(accounts|groups|users <EmailItemList>) | (orgunit|ou <OrgUnit>)]
|
[(accounts|groups|users <EmailItemList>) | (orgunit|ou <OrgUnit>)]
|
||||||
|
|||||||
@@ -12045,7 +12045,7 @@ def ProcessGAMCommand(args):
|
|||||||
argument = sys.argv[2].lower()
|
argument = sys.argv[2].lower()
|
||||||
if argument in ['export', 'vaultexport']:
|
if argument in ['export', 'vaultexport']:
|
||||||
gapi_vault.downloadExport()
|
gapi_vault.downloadExport()
|
||||||
elif argument in ['storagebucket']:
|
elif argument in ['storagebucket', 'bucket']:
|
||||||
gapi_storage.download_bucket()
|
gapi_storage.download_bucket()
|
||||||
else:
|
else:
|
||||||
controlflow.invalid_argument_exit(argument, 'gam download')
|
controlflow.invalid_argument_exit(argument, 'gam download')
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ def copy_bucket():
|
|||||||
source_bucket = None
|
source_bucket = None
|
||||||
target_bucket = None
|
target_bucket = None
|
||||||
prefix = None
|
prefix = None
|
||||||
|
target_prefix = ''
|
||||||
i = 3
|
i = 3
|
||||||
while i < len(sys.argv):
|
while i < len(sys.argv):
|
||||||
myarg = sys.argv[i].lower().replace('_', '')
|
myarg = sys.argv[i].lower().replace('_', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user