Skip to content

Instantly share code, notes, and snippets.

@joeperpetua
Created December 13, 2023 10:14
Show Gist options
  • Save joeperpetua/42df299b19817010243030a8205f7c7b to your computer and use it in GitHub Desktop.
Save joeperpetua/42df299b19817010243030a8205f7c7b to your computer and use it in GitHub Desktop.
Export Active Backup for Microsoft 365 restore and export logs.
VOLUME='volume1';
SHARED_FOLDER='Data'; # can also specify the subfolder
synowebapi --exec api=SYNO.ActiveBackupOffice365.Portal.Restore.AllLog method=list sort_by=start_time sort_direction=DESC offset=0 version=1 | jq .data > /$VOLUME/$SHARED_FOLDER/ABM_restore_logs.json
synowebapi --exec api=SYNO.ActiveBackupOffice365.Portal.Export.AllLog method=list sort_by=start_time sort_direction=DESC offset=0 version=1 | jq .data > /$VOLUME/$SHARED_FOLDER/ABM_export_logs.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment