Knowledge Base & Discussion Forum

OBHS API UpdateBackupSet.do

Discuss technical questions on AhsayOBS

Moderator: Support Team

OBHS API UpdateBackupSet.do

Postby MondQ » Wed Dec 06, 2017 6:48 pm

Hello,
I am trying to use the Ahsay API and can't get UpdateBackupSet.do to work.

The documentation says "The following table describes all information required to invoke the [Update
Backup Set] API to update a backup set. Note, use [Get Backup Set] API
above to retrieve a backup set and save it as an xml file; modify the file as
you need, and post it as a content using parameter name “Profile” when
calling [Update Backup Set] API. "

So I saved the results of GetBackupSet.do

Which looks like this:
Code: Select all
<BackupSet ID="1512549790106" Name="NSK User Backup Set" TransferBlockSize="131072" FollowSymbolicLink="N" WindowsFollowLink="Y" Os="" Type="FILE" AdminUsername="" AdminPassword="" WorkingDir="C:\Users\E000155\.temp" OracleSID="" Port="" Host="" LogRetentionDays="60" NotesINI="" BackupSystemState="N" LanDomain="ENSKCOM" LanUsername="E000155" LanPassword="" LastBackupRun="1512550804846" LastBackupAccess="1512550884133" EnableInFileDelta="Y" MinDeltaFileSize="26214400" DeltaBlockSize="-1" MaxNumOfDelta="3" MaxDeltaRatio="25" EnableShadowCopy="Y" EnableOfflineBackup="N" EnableLogoutBackup="N" FullBackup="N" LastBackupCompleted="1512550814687" BackupIntervalDay="1" BackupIntervalHour="0" LogoutType="" OfflineNotificiationDay="7" DeleteTempFile="N" SqlServer="" DefaultDeltaType="I" TotalUncompressedDataSize="2174789" NumberOfFiles="25" TotalBackupSetSize="1754398" TotalBSetRetainUncompress="0" TotalBSetRetainFileNo="0" TotalBsetRetainFileSize="0" TotalBsetRestoreSize="0" TotalBsetRestoreNo="0" ScheduleHost="E023VW10-02" UploadPermission="Y" EnableDeltaMerge="N" Version="" OfflineBackupComputerName="" LogoutBackupReminderComputerName="" CompressType="GzipDefaultCompression" OfflineShowReminder="Y" LastCdpBackupRun="1512550884126"><SelectedSource>C:\Users\E000155\Documents</SelectedSource><SelectedSource>C:\Users\Public\Desktop</SelectedSource><SelectedSource>C:\Users\E000155\Desktop</SelectedSource><SelectedSource>C:\Users\E000155\Favorites</SelectedSource><SelectedSource>C:\Users\E000155\Pictures</SelectedSource><SelectedSource>C:\Users\E000155\Videos</SelectedSource><SelectedSource>C:\Users\E000155\Music</SelectedSource><DeseletedSource>C:\Program Files</DeseletedSource><DeseletedSource>C:\Program Files (x86)</DeseletedSource><DeseletedSource>C:\Windows</DeseletedSource><DeselectedSource>C:\Program Files</DeselectedSource><DeselectedSource>C:\Program Files (x86)</DeselectedSource><DeselectedSource>C:\Windows</DeselectedSource><RunBackup Run="N" BackupType="" JobID=""/><WeeklySchedule ID="1415709346064" Name="ACB Backup Schedule" Sun="N" Mon="Y" Tue="Y" Wed="Y" Thu="Y" Fri="Y" Sat="N" Hour="9" Minute="0" Duration="-1" BackupType="FILE" LastUpdated="0" Interval="-1" EnableSkipBackup="N"/><Filter ID="1415712822286" Name="Excluded files" Type="END_WITH" TopDir="C:\" Include="N" Only="N" ApplyToDir="N" ApplyToFile="Y"><Pattern>desktop.ini</Pattern><Pattern>thumbs.db</Pattern></Filter><RetentionPolicy Unit="DAYS" Period="7"></RetentionPolicy><ExtraLocalBackup ENABLED="N" Zip="Y" BackupTo="C:\Users\E000155\LocalBackup" SkipOffsiteBackup="N" SetLocalCopyPermission="N"/><DeltaWeeklySchedule Sun="" Mon="" Tue="" Wed="" Thu="" Fri="" Sat=""/><DeltaMonthlySchedule Date="0" Occurrence="" Criteria="" JAN="" FEB="" MAR="" APR="" MAY="" JUN="" JUL="" AUG="" SEP="" OCT="" NOV="" DEC=""/><Cdp EnableCDP="Y" CdpTimeMarkInterval="30" CdpMinUpdateInterval="10" Type="backup-source" ExcludeSystemFiles="Y" CdpComputerName="E023VW10-02" IdlebkpIsConsiderCpu="Y" IdlebkpCpuTsh="90" IdlebkpIsConsiderNwk="N" IdlebkpNwkTsh="131072" IdlebkpIsConsiderIpt="N" IdlebkpIptObserveForSecond="60"></Cdp><EncryptingKey KeyType="RESERVED" Algorithm="" Mode="" Length="128" Key="1B2M2Y8AsgTpgAmY7PhCfg=="/></BackupSet>


I then send the following call to the API and get "<err>null</err>"

Code: Select all
http://132.133.10.118:8080/obs/api/UpdateBackupSet.do?SysUser=accountname&SysPwd=somepassword&LoginName=ENS999D999&Profile=<BackupSet ID="1512549790106" Name="NSK User Backup Set" TransferBlockSize="131072" FollowSymbolicLink="N" WindowsFollowLink="Y" Os="" Type="FILE" AdminUsername="" AdminPassword="" WorkingDir="C:\Users\E000155\.temp" OracleSID="" Port="" Host="" LogRetentionDays="60" NotesINI="" BackupSystemState="N" LanDomain="ENSKCOM" LanUsername="E000155" LanPassword="" LastBackupRun="1512550804846" LastBackupAccess="1512550884133" EnableInFileDelta="Y" MinDeltaFileSize="26214400" DeltaBlockSize="-1" MaxNumOfDelta="3" MaxDeltaRatio="25" EnableShadowCopy="Y" EnableOfflineBackup="N" EnableLogoutBackup="N" FullBackup="N" LastBackupCompleted="1512550814687" BackupIntervalDay="1" BackupIntervalHour="0" LogoutType="" OfflineNotificiationDay="7" DeleteTempFile="N" SqlServer="" DefaultDeltaType="I" TotalUncompressedDataSize="2174789" NumberOfFiles="25" TotalBackupSetSize="1754398" TotalBSetRetainUncompress="0" TotalBSetRetainFileNo="0" TotalBsetRetainFileSize="0" TotalBsetRestoreSize="0" TotalBsetRestoreNo="0" ScheduleHost="E023VW10-02" UploadPermission="Y" EnableDeltaMerge="N" Version="" OfflineBackupComputerName="" LogoutBackupReminderComputerName="" CompressType="GzipDefaultCompression" OfflineShowReminder="Y" LastCdpBackupRun="1512550884126"><SelectedSource>C:\Users\E000155\Folder1</SelectedSource><SelectedSource>C:\Users\Public\Desktop</SelectedSource><SelectedSource>C:\Users\E000155\Desktop</SelectedSource><SelectedSource>C:\Users\E000155\Favorites</SelectedSource><SelectedSource>C:\Users\E000155\Folder2</SelectedSource><SelectedSource>C:\Users\E000155\Videos</SelectedSource><SelectedSource>C:\Users\E000155\Somefolder</SelectedSource><DeseletedSource>C:\Program Files</DeseletedSource><DeseletedSource>C:\Program Files (x86)</DeseletedSource><DeseletedSource>C:\Windows</DeseletedSource><DeselectedSource>C:\Program Files</DeselectedSource><DeselectedSource>C:\Program Files (x86)</DeselectedSource><DeselectedSource>C:\Windows</DeselectedSource><RunBackup Run="N" BackupType="" JobID=""/><WeeklySchedule ID="1415709346064" Name="ACB Backup Schedule" Sun="N" Mon="Y" Tue="Y" Wed="Y" Thu="Y" Fri="Y" Sat="N" Hour="9" Minute="0" Duration="-1" BackupType="FILE" LastUpdated="0" Interval="-1" EnableSkipBackup="N"/><Filter ID="1415712822286" Name="Excluded files" Type="END_WITH" TopDir="C:\" Include="N" Only="N" ApplyToDir="N" ApplyToFile="Y"><Pattern>desktop.ini</Pattern><Pattern>thumbs.db</Pattern></Filter><RetentionPolicy Unit="DAYS" Period="7"></RetentionPolicy><ExtraLocalBackup ENABLED="N" Zip="Y" BackupTo="C:\Users\E000155\LocalBackup" SkipOffsiteBackup="N" SetLocalCopyPermission="N"/><DeltaWeeklySchedule Sun="" Mon="" Tue="" Wed="" Thu="" Fri="" Sat=""/><DeltaMonthlySchedule Date="0" Occurrence="" Criteria="" JAN="" FEB="" MAR="" APR="" MAY="" JUN="" JUL="" AUG="" SEP="" OCT="" NOV="" DEC=""/><Cdp EnableCDP="Y" CdpTimeMarkInterval="30" CdpMinUpdateInterval="10" Type="backup-source" ExcludeSystemFiles="Y" CdpComputerName="E023VW10-02" IdlebkpIsConsiderCpu="Y" IdlebkpCpuTsh="90" IdlebkpIsConsiderNwk="N" IdlebkpNwkTsh="131072" IdlebkpIsConsiderIpt="N" IdlebkpIptObserveForSecond="60"></Cdp><EncryptingKey KeyType="RESERVED" Algorithm="" Mode="" Length="128" Key="1B2M2Y8AsgTpgAmY7PhCfg=="/></BackupSet>


What am I doing wrong?
MondQ
 
Posts: 1
Joined: Thu Feb 23, 2017 6:18 pm

Re: OBHS API UpdateBackupSet.do

Postby Richard Au » Thu Dec 07, 2017 11:35 am

Hello,

To help us looking into this issue, can you please contact our support to verify on this? Please submit your case through our ticket system at https://ahsay.com/jsp/en/contact/kbQuestion.jsp
Richard Au
Ahsay Forum Support Team
User avatar
Richard Au
 
Posts: 241
Joined: Wed Aug 31, 2016 10:43 am


Return to AhsayOBS

Who is online

Users browsing this forum: No registered users and 1 guest

Looking for Rbackup Alternative | Vembu Alternative | Novastor Alternative | Asigra Alternative | BackupAgent Alternative? Try our product.


A wholly owned subsidiary of Ahsay Backup Software Development Company Limited  [HKEx Stock Code: 8290]