Restores files deleted from Box folders by
aea-box-clean-folders:
Takes a Jira case number and looks up the Box Folder ID from Jira.
Lists files deleted by the service account in the past N days.
Restores them to their folder (under
1Completed).
aea-box-recover-files --case 8040 --list # list deleted files
aea-box-recover-files --case 8040 --test # dry run
aea-box-recover-files --case 8040 # restore
aea-box-recover-files --case 8040 --days 14 # look back 14 daysEnvironment¶
Box:
BOX_FOLDER_PRIVATE,BOX_PRIVATE_KEY_ID,BOX_ENTERPRISE_ID, andBOX_CONFIG_PATH(orBOX_PRIVATE_JSON)Jira:
JIRA_USERNAME,JIRA_API_KEY, optionallyJIRA_SERVER