Skip to content

Commit

Permalink
Merge pull request #17 from mujin/supportBackupDebug20230628
Browse files Browse the repository at this point in the history
Support backup encrypted debug system information
  • Loading branch information
ziyan authored Jun 29, 2023
2 parents e99b400 + 8753036 commit d80b0ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.6.0 (2023-06-28)

- Support backup encrypted system information for debugging purpose.


# 0.5.0 (2023-04-18)

- Support HTTP over Unix domain socket via optional `unixEndpoint` argument.
Expand Down
2 changes: 1 addition & 1 deletion python/mujinwebstackclient/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.5.0'
__version__ = '0.6.0'

# Do not forget to update CHANGELOG.md

4 changes: 3 additions & 1 deletion python/mujinwebstackclient/webstackclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ def DeleteAllITLPrograms(self, timeout=5):
# Backup restore
#

def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps=True, saveitl=True, savedetection=False, savecalibration=False, timeout=600):
def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps=True, saveitl=True, savedetection=False, savecalibration=False, savedebug=False, timeout=600):
"""Downloads a backup file
:param saveconfig: Whether we want to include configs in the backup, defaults to True
Expand All @@ -982,6 +982,7 @@ def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps=
:param saveitl: Whether we want to include itl programs in the backup, defaults to True
:param savedetection: Whether we want to include detection files in the backup, defaults to False
:param savecalibration: Whether we want to include calibration files in the backup, defaults to False
:param savedebug: Whether we want to include debug files in the backup, defaults to False
:param backupscenepks: List of scenes to backup, defaults to None
:param timeout: Amount of time in seconds to wait before failing, defaults to 600
:raises WebstackClientError: If request wasn't successful
Expand All @@ -994,6 +995,7 @@ def Backup(self, saveconfig=True, savemedia=True, backupscenepks=None, saveapps=
'itl': 'true' if saveitl else 'false',
'detection': 'true' if savedetection else 'false',
'calibration': 'true' if savecalibration else 'false',
'debug': 'true' if savedebug else 'false',
'backupScenePks': ','.join(backupscenepks) if backupscenepks else None,
}, timeout=timeout)
if response.status_code != 200:
Expand Down

0 comments on commit d80b0ca

Please sign in to comment.