Created
December 13, 2023 10:14
-
-
Save joeperpetua/42df299b19817010243030a8205f7c7b to your computer and use it in GitHub Desktop.
Export Active Backup for Microsoft 365 restore and export logs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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