Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Intronis Backup
Results will update as you type.
  • Intronis Backup Release Notes
  • Initial Seed/Restore Drive for IBU
  • Getting Started with Intronis Backup (ECHOplatform)
  • Managing Intronis Backup (IBU)
    • Intronis Backup Agent
    • Managing IBU Branding
    • Using the Home Dashboard
    • Managing Multi-Factor Authentication
    • Managing Accounts
    • Manage Accounts/Packages
    • Managing Account Billing
    • Managing Partner Pricing
    • Viewing Reports and Logs
    • Managing Alert, Notification and Preference Templates
    • Software User Interface
    • Managing Backups and Restores
    • Intronis Backup Reference Articles
    • Managing Legacy IBU Integrations
    • Barracuda REST APIs for the Echoplatform Portal
    • Barracuda REST APIs for IBU
      • Authentication and Installation
      • Backup Set Operations APIs
      • Computer Settings APIs
      • Computer Software APIs
      • Operations And Backup Set Subaccount Creation APIs
      • Files and Folders Backup Set Creation APIs
      • Disk Image Standard Backup Set Creation APIs
      • Partner API Calls
      • Restore Files and Folders APIs
        • Browsing Files and Folders By Backup Set API
        • Browsing Files and Folders By Daily Snapshots API
        • Browsing Files and Folders by File System Hierarchy API
        • Files and Folders Restore API
      • Restore Images APIs
    • IBU Best Practices
  • Contacting Partner Support
  • Troubleshooting Volume Shadow Copy Problems
  • Allocating Shadow Copy Storage Space
  • VSS Error Message: Snapshots were found, but they were outside of your allowed context
  • The VSS Writer Is in a Bad State
  • Fixing Problems with Volume Shadow Copy
  • Creating a VSS Shadow Copy Independently

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Files and Folders Restore API
    Published Apr 29, 2022

    Files and Folders Restore API

    Apr 29, 2022
    Subscribe

    This section provides the following topics:

    • Input Parameters

    • Output Parameters

    • Error Codes

    This command allows restoring revisions whose ids, and other information (for example snapshot timestamp) have been obtained via Browse calls (either browse backup set, browse snapshot or browse file system).

    Input Parameters

    The following table provides the parameters and descriptions.

    Parameter

    Description

    items

    Array containing information required for restoring files, folders or revisions.

    id

    Integer representing a previously obtained folder, file or revision id.

    type

    String. Values are either "file" or "folder."

    dateTime

    String. Optional for restoring revisions obtained via Browse Backup set or File system APIs. Mandatory only when restoring data obtained via Browse snapshot. This field needs to be populated by the result of the Snapshot list API.

    alternatePath

    Optional parameter. Specify an alternate folder on where to restore all the data. If not specified, the data is restored to the original location from where it was backed up.

    path

    String.alternate Folder location.

    credentials

    Optional. In case the path points to a network share requiring auth.

    userName

    String. Used to authenticate on that share, in case it requires auth.

    password

    String. Used to authenticate on that share, in case it requires auth.

    restoreFilePermissions

    Boolean. Optional parameter. Default value is false.

    restoreFileAttributes

    Boolean. Optional parameter. Default value is true.

    restoreLastModifiedDate

    Boolean. Optional parameter. Default value is true.

    overwriteOptions

    String. Optional parameter. Default value is "DO_NOT_OVERWRITE_ANY"

    Allowed values are:

    "DO_NOT_OVERWRITE_ANY"

    "OVERWRITE_ALL"

    "AUTO_RENAME_ALL"

    Description of the values:

    Value

    Description

    DO_NOT_OVERWRITE_ANY

    Default. Do not overwrite any existing files with restored files.

    OVERWRITE_ALL

    Overwrite existing files with restored files.

    AUTO_RENAME_ALL

    If any file already exists, rename the restored files.

    Example

    The following example uses the defaults, except for the alternatePath, which points to another folder.

    {

        "items": [

            {

              "id": 1740,

              "type": "file"

            }

        ]

    }

    Output Parameters

    Boolean, true or false, showing whether the command was successfully sent to the backup agent. This  output does not mean that the restore has succeeded, the restore operation runs asynchronously.

    Example POST

    POST /v2/accounts/test_acc/computers/0000/restore/filesandfolders

    Example Output

    {

      "alternatePath": {

        "path": "string",

        "credentials": {

          "username": "string",

          "password": "string"

        }

      },

      "items": [

        {

          "id": 0,

          "dateTime": "2020-01-28T08:35:18",

          "type": "file"

        }

      ],

      "overwriteOptions": "DO_NOT_OVERWRITE_ANY",

      "restoreLastModifiedDate": true,

      "restoreFileAttributes": true,

      "restoreFilePermissions": false

    }

     

    Online operation

    Response status: 204  (for online operation)

    Response status: 400 Accepted

    Response body:

    {

      "errors": [

        "Could not create item.",

        "[alternatepath][path] must be a string",

        "[alternatepath][credentials][username] must be set to a string",

        "[alternatepath][credentials][password] must be set to a string",

        "[alternatepath][credentials] must not be specified for local paths.",

        "[alternatepath][path] is invalid: the provided path is neither local or remote",

        "[items] is missing or invalid",

        "[items][id] is missing or invalid.",

        "[items][type] is missing or invalid. Allowed values are file, folder, drive, revision",

        "[items][datetime] is invalid.",

        "[overwriteoptions] is invalid. Allowed values are do_not_overwrite_any, overwrite_all, auto_rename_all",

        "[restorelastmodifieddate] is invalid. Allowed values are either true or false",

        "[restorefileattributes] is invalid. Allowed values are either true or false",

        "[restorefilepermissions] is invalid. Allowed values are either true or false"

      ]

    }

    Since this is an online operation only (have a running agent) the following status code is displayed if you attempt it offline

    Offline operation

    Response status: 400 Accepted

    Response body:

    {

      "errors": [

        "Agent cannot be reached or is offline"

      ]

    }

    Error Codes

    When restored revision contains a boot volume and it was EFI, and the users chooses to restore as VHD:

    "UEFI-based systems can only be restored as VHDX files to ensure they are bootable on Windows Server 2012 R2 or above."

    When volumes over 2 TBs are being restored and VHD format is chosen:

    "Due to a limitation of the VHD file type, volumes greater than 2040 GB can only be restored as VHDX files."

    For destination creation:

    CreateFolderFailed: general error. Most likely a local volume is read only or cannot be written to due to permissions on the local file system

    Network shares only:

    • BackupSetActions_NetworkShareInaccessible - network share address could not be reached

    • BackupSetActions_NetworkPathNotFound - the network path could not be found

    • BackupSetActions_NetworkShareInvalidAuth - username + password combination failed authentication

    • BackupSetActions_NetworkShareNoWritePermissions - username and password ok, but no write permissions for the provided username on that share.

     


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 11, "requestCorrelationId": "e1f0f23bf85c4789a92bd824f3f4d514"}