> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# restoreBackup

<div className="kinetica-doxygen">
  <div id="a7219b89c4316e73291cfa6100c8363c1" />

  <h2 className="memtitle"><span className="permalink"><a href="#a7219b89c4316e73291cfa6100c8363c1">◆ </a></span>restoreBackup() <span className="overload">\[1/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname"><a className="el" href="/content/api/cs/classkinetica_1_1RestoreBackupResponse">RestoreBackupResponse</a> kinetica.Kinetica.restoreBackup </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1RestoreBackupRequest">RestoreBackupRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
                <td>)</td>

                <td />
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Restores database objects from a <a href="/content/admin/backup_restore/#database-backup" target="_top">backup</a> accessible via the <a href="/content/concepts/data_sources/" target="_top">data source</a> specified by <a className="el" href="/content/api/cs/classkinetica_1_1RestoreBackupRequest#ab3500066b0e84c08b7ff39d04fe39cb2">datasource\_name</a>. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L57021">57021</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="ac4d7c31ef56e37cce24400f0445f20bf" />

  <h2 className="memtitle"><span className="permalink"><a href="#ac4d7c31ef56e37cce24400f0445f20bf">◆ </a></span>restoreBackup() <span className="overload">\[2/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname"><a className="el" href="/content/api/cs/classkinetica_1_1RestoreBackupResponse">RestoreBackupResponse</a> kinetica.Kinetica.restoreBackup </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">backup\_name</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">restore\_objects\_map</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">datasource\_name</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</span> )</td>
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Restores database objects from a <a href="/content/admin/backup_restore/#database-backup" target="_top">backup</a> accessible via the <a href="/content/concepts/data_sources/" target="_top">data source</a> specified by <span className="em">datasource\_name</span> . </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">backup\_name</td>
              <td>Name of the backup to restore from, which must refer to an existing backup. The default value is ''.</td>
            </tr>

            <tr>
              <td className="paramname">restore\_objects\_map</td>

              <td>
                Map of database objects to be restored from the backup.

                <ul>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a41f94185c6d913a57ff304b0261cfe65">ALL</a>: All object types and data contained in the given <a href="/content/concepts/schemas/" target="_top">schema(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a5b6633955757c18fdadedffe1b018531">CATALOG</a>: Data Lake catalog that is external to the database. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a50c6f9d81d2587dfd2fbf73cf7336758">CONTEXT</a>: <a href="/content/sql-gpt/concepts/#sql-gpt-context" target="_top">Context(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a6f9fe84ecda89c64779f7879a5b4097c">CREDENTIAL</a>: <a href="/content/concepts/credentials/" target="_top">Credential(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#ae3e2cac350d32a753fb9f2bb5798c322">DATASINK</a>: <a href="/content/concepts/data_sinks/" target="_top">Data sink(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#ab38387b6391849b628cc1805c1c26656">DATASOURCE</a>: <a href="/content/concepts/data_sources/" target="_top">Data source(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#afb3a572f7a9955537caf15cc84038f1b">DIRECTORY</a>: KiFS <a href="/content/tools/kifs/" target="_top">File directory(ies)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a8a0a590236021cc0b633ef72eae40055">FUNCTION\_ENVIRONMENT</a>: <a href="/content/udf/python/writing/#udf-python-func-env" target="_top">Python UDF function environment(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a50fabbdb09295dba2a565ceb525ccabd">GRAPH</a>: <a href="/content/graph_solver/network_graph_solver/" target="_top">Graph</a> definition(s). Source table(s), if applicable, are required in order to restore graph objects. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a3d35d2fd3930d3b1ebac6704bcb2a502">MONITOR</a>: <a href="/content/concepts/table_monitors/" target="_top">Table monitor(s)</a> / <a href="/content/sql/ddl/create-stream" target="_top">SQL stream(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#aad0a13715a8e90b8f023c2188771cb72">RESOURCE\_GROUP</a>: <a href="/content/rm/concepts/#resource-groups" target="_top">Resource group(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#adacbdd86be8dd3dc67eee858073dcc0b">ROLE</a>: <a href="/content/security/sec_concepts/#roles" target="_top">Role(s)</a>, role members (roles or users, recursively), and associated permissions. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a75d0300053fa2bae476786af24b5f9f4">STORED\_PROCEDURE</a>: <a href="/content/sql/procedure/" target="_top">SQL procedure(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a39272d64b77cde79880c1e92f217d39b">TABLE</a>: <a href="/content/concepts/tables/" target="_top">Table(s)</a> and <a href="/content/sql/ddl/create-view" target="_top">SQL view(s)</a>. Tables with subscriptions will by default be restored in the state they were in at the time of the snapshot. See <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a5f009f72d853bb4caa5a1fbe7bb9733b">RESTORE\_SUBSCRIPTIONS</a> for options to override the default behavior. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a3d639a87ec0b53d41736a9845517df67">USER</a>: <a href="/content/security/sec_concepts/#security-concepts-users" target="_top">User(s)</a> (internal and external) and associated permissions. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#aa2b68b0006e4a0966944af1daa718bf5">USER\_DEFINED\_FUNCTION</a>: <a href="/content/udf_overview" target="_top">UDF(s)</a>. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramname">datasource\_name</td>
              <td>Data source through which the backup will be restored.</td>
            </tr>

            <tr>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a1f54e4f1acae1734a806d70ec7d100f4">BACKUP\_ID</a>: ID of the snapshot to restore. Leave empty to restore the most recent snapshot in the backup. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a6d4409486478eb9d9bdcfe9dbca13ae5">CHECKSUM</a>: Whether or not to verify checksums for backup files when restoring. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a203ec21f4cc2059ed50f8de13bbd675c">CREATE\_SCHEMA\_IF\_NOT\_EXIST</a>: Behavior to apply when the schema containing any database object to restore does not already exist. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>: If the schema containing any restored object does not exist, create it automatically. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>: If the schema containing any restored object does not exist, return an error. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a08929da7340c4915a7d7c38ee72aecc9">DDL\_ONLY</a>: Behavior to apply when restoring tables. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>: Restore table DDL, but do not restore data. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>: Restore tables and their data. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a8189815066a8d444618305d86e324889">DRY\_RUN</a>: Whether or not to perform a dry run of the restoration operation. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a5f009f72d853bb4caa5a1fbe7bb9733b">RESTORE\_SUBSCRIPTIONS</a>: Behavior to apply when restoring datasource subscriptions on tables. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a9c0d7761c50c780a25b758a80e5b62f2">RESUME</a>: Resume subscriptions that were active when the backup was made. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#aa0aa37a4073c0486ac0d636b0dc32df4">PAUSE</a>: Pause subscriptions that were active when the backup was made. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#acf4d577ecf28ae4f437ab7d4fc2c85bb">CANCEL</a>: Cancel active subscriptions. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a9c0d7761c50c780a25b758a80e5b62f2">RESUME</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a5abe71733cb4aa98a3e00a1788a9dd6e">REINGEST</a>: Behavior to apply when restoring table data. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>: Restore table data by re-ingesting it. This is the default behavior if the cluster topology differs from that of the contained backup. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>: Restore the persisted data files directly. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a488a4e8c2e2c9780fea210bc93e39e79">RENAMED\_OBJECTS\_SCHEMA</a>: If the <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#adf736ad7637ab58d24110df481e83711">RESTORE\_POLICY</a> is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#aade58739cc2973a7ff3d35bf1219f494">RENAME</a>, use this schema for relocated existing objects instead of the default generated one. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a50d863d1068657c17b3719c119193659">RESTORE\_ALL\_PERMISSIONS</a>: Whether or not all permissions of restored principals should be restored or scoped to the restored objects. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>: Restore all permissions. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>: Restore only permissions on restored objects. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#adf736ad7637ab58d24110df481e83711">RESTORE\_POLICY</a>: Behavior to apply when any database object to restore already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a4cd096123ab7593c9abd793b56249581">NONE</a>: If an object to be restored already exists with the same name, abort and return error. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ac3446eb6a76aab1e875260e8be239b70">REPLACE</a>: If an object to be restored already exists with the same name, replace it with the backup version. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#aade58739cc2973a7ff3d35bf1219f494">RENAME</a>: If an object to be restored already exists with the same name, move that existing one to the schema specified by <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a488a4e8c2e2c9780fea210bc93e39e79">RENAMED\_OBJECTS\_SCHEMA</a>. This policy does not apply to non-schema objects. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a4cd096123ab7593c9abd793b56249581">NONE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#aebbfaa89ac3befedb2f70a18c61221aa">TARGET\_SCHEMA\_MAP</a>: Restore schema-based objects to alternate schema. Value is a comma delimitted list of key:value pairs mapping the original (source) schema name as it exists in the backup to a target (destination) schema namespace: "src: dst \[, src: dst \[, ...]]". Note that schema names are case sensitive and must adhere to the database schema <a href="/content/concepts/schemas/" target="_top">naming criteria</a>. The default value is ''. </li>
                </ul>

                The default value is an empty Dictionary.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L57460">57460</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="a0c3a0853fcdded0da0d41b74b638ac68" />

  <h2 className="memtitle"><span className="permalink"><a href="#a0c3a0853fcdded0da0d41b74b638ac68">◆ </a></span>RestoreBackupAsync() <span className="overload">\[1/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1RestoreBackupResponse">RestoreBackupResponse</a> > kinetica.Kinetica.RestoreBackupAsync </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1RestoreBackupRequest">RestoreBackupRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</span> )</td>
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Restores database objects from a <a href="/content/admin/backup_restore/#database-backup" target="_top">backup</a> accessible via the <a href="/content/concepts/data_sources/" target="_top">data source</a> specified by <a className="el" href="/content/api/cs/classkinetica_1_1RestoreBackupRequest#ab3500066b0e84c08b7ff39d04fe39cb2">datasource\_name</a>. </p>
      <p>(async)</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request object containing the parameters for the operation.</td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L57042">57042</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="a9ff599bb2c2ef89fbe2c908d507a46e6" />

  <h2 className="memtitle"><span className="permalink"><a href="#a9ff599bb2c2ef89fbe2c908d507a46e6">◆ </a></span>RestoreBackupAsync() <span className="overload">\[2/2]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="mlabels">
        <tr>
          <td className="mlabels-left">
            <table className="memname">
              <tr>
                <td className="memname">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1RestoreBackupResponse">RestoreBackupResponse</a> > kinetica.Kinetica.RestoreBackupAsync </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">backup\_name</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">restore\_objects\_map</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">datasource\_name</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</span> )</td>
              </tr>
            </table>
          </td>

          <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>Restores database objects from a <a href="/content/admin/backup_restore/#database-backup" target="_top">backup</a> accessible via the <a href="/content/concepts/data_sources/" target="_top">data source</a> specified by <span className="em">datasource\_name</span> . </p>
      <p>(async)</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">backup\_name</td>
              <td>Name of the backup to restore from, which must refer to an existing backup. The default value is ''.</td>
            </tr>

            <tr>
              <td className="paramname">restore\_objects\_map</td>

              <td>
                Map of database objects to be restored from the backup.

                <ul>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a41f94185c6d913a57ff304b0261cfe65">ALL</a>: All object types and data contained in the given <a href="/content/concepts/schemas/" target="_top">schema(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a5b6633955757c18fdadedffe1b018531">CATALOG</a>: Data Lake catalog that is external to the database. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a50c6f9d81d2587dfd2fbf73cf7336758">CONTEXT</a>: <a href="/content/sql-gpt/concepts/#sql-gpt-context" target="_top">Context(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a6f9fe84ecda89c64779f7879a5b4097c">CREDENTIAL</a>: <a href="/content/concepts/credentials/" target="_top">Credential(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#ae3e2cac350d32a753fb9f2bb5798c322">DATASINK</a>: <a href="/content/concepts/data_sinks/" target="_top">Data sink(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#ab38387b6391849b628cc1805c1c26656">DATASOURCE</a>: <a href="/content/concepts/data_sources/" target="_top">Data source(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#afb3a572f7a9955537caf15cc84038f1b">DIRECTORY</a>: KiFS <a href="/content/tools/kifs/" target="_top">File directory(ies)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a8a0a590236021cc0b633ef72eae40055">FUNCTION\_ENVIRONMENT</a>: <a href="/content/udf/python/writing/#udf-python-func-env" target="_top">Python UDF function environment(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a50fabbdb09295dba2a565ceb525ccabd">GRAPH</a>: <a href="/content/graph_solver/network_graph_solver/" target="_top">Graph</a> definition(s). Source table(s), if applicable, are required in order to restore graph objects. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a3d35d2fd3930d3b1ebac6704bcb2a502">MONITOR</a>: <a href="/content/concepts/table_monitors/" target="_top">Table monitor(s)</a> / <a href="/content/sql/ddl/create-stream" target="_top">SQL stream(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#aad0a13715a8e90b8f023c2188771cb72">RESOURCE\_GROUP</a>: <a href="/content/rm/concepts/#resource-groups" target="_top">Resource group(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#adacbdd86be8dd3dc67eee858073dcc0b">ROLE</a>: <a href="/content/security/sec_concepts/#roles" target="_top">Role(s)</a>, role members (roles or users, recursively), and associated permissions. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a75d0300053fa2bae476786af24b5f9f4">STORED\_PROCEDURE</a>: <a href="/content/sql/procedure/" target="_top">SQL procedure(s)</a>. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a39272d64b77cde79880c1e92f217d39b">TABLE</a>: <a href="/content/concepts/tables/" target="_top">Table(s)</a> and <a href="/content/sql/ddl/create-view" target="_top">SQL view(s)</a>. Tables with subscriptions will by default be restored in the state they were in at the time of the snapshot. See <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a5f009f72d853bb4caa5a1fbe7bb9733b">RESTORE\_SUBSCRIPTIONS</a> for options to override the default behavior. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#a3d639a87ec0b53d41736a9845517df67">USER</a>: <a href="/content/security/sec_concepts/#security-concepts-users" target="_top">User(s)</a> (internal and external) and associated permissions. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1RestoreObjectsMap#aa2b68b0006e4a0966944af1daa718bf5">USER\_DEFINED\_FUNCTION</a>: <a href="/content/udf_overview" target="_top">UDF(s)</a>. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramname">datasource\_name</td>
              <td>Data source through which the backup will be restored.</td>
            </tr>

            <tr>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a1f54e4f1acae1734a806d70ec7d100f4">BACKUP\_ID</a>: ID of the snapshot to restore. Leave empty to restore the most recent snapshot in the backup. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a6d4409486478eb9d9bdcfe9dbca13ae5">CHECKSUM</a>: Whether or not to verify checksums for backup files when restoring. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a203ec21f4cc2059ed50f8de13bbd675c">CREATE\_SCHEMA\_IF\_NOT\_EXIST</a>: Behavior to apply when the schema containing any database object to restore does not already exist. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>: If the schema containing any restored object does not exist, create it automatically. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>: If the schema containing any restored object does not exist, return an error. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a08929da7340c4915a7d7c38ee72aecc9">DDL\_ONLY</a>: Behavior to apply when restoring tables. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>: Restore table DDL, but do not restore data. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>: Restore tables and their data. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a8189815066a8d444618305d86e324889">DRY\_RUN</a>: Whether or not to perform a dry run of the restoration operation. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a> </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a> </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a5f009f72d853bb4caa5a1fbe7bb9733b">RESTORE\_SUBSCRIPTIONS</a>: Behavior to apply when restoring datasource subscriptions on tables. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a9c0d7761c50c780a25b758a80e5b62f2">RESUME</a>: Resume subscriptions that were active when the backup was made. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#aa0aa37a4073c0486ac0d636b0dc32df4">PAUSE</a>: Pause subscriptions that were active when the backup was made. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#acf4d577ecf28ae4f437ab7d4fc2c85bb">CANCEL</a>: Cancel active subscriptions. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a9c0d7761c50c780a25b758a80e5b62f2">RESUME</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a5abe71733cb4aa98a3e00a1788a9dd6e">REINGEST</a>: Behavior to apply when restoring table data. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>: Restore table data by re-ingesting it. This is the default behavior if the cluster topology differs from that of the contained backup. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>: Restore the persisted data files directly. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a488a4e8c2e2c9780fea210bc93e39e79">RENAMED\_OBJECTS\_SCHEMA</a>: If the <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#adf736ad7637ab58d24110df481e83711">RESTORE\_POLICY</a> is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#aade58739cc2973a7ff3d35bf1219f494">RENAME</a>, use this schema for relocated existing objects instead of the default generated one. The default value is ''. </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a50d863d1068657c17b3719c119193659">RESTORE\_ALL\_PERMISSIONS</a>: Whether or not all permissions of restored principals should be restored or scoped to the restored objects. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a63a1399078e94273f4840dfd3ff6be19">TRUE</a>: Restore all permissions. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>: Restore only permissions on restored objects. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ae7fe7ae5c38d277162726a6d01faede4">FALSE</a>.
                  </li>

                  <li>
                    <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#adf736ad7637ab58d24110df481e83711">RESTORE\_POLICY</a>: Behavior to apply when any database object to restore already exists. Supported values:

                    <ul>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a4cd096123ab7593c9abd793b56249581">NONE</a>: If an object to be restored already exists with the same name, abort and return error. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#ac3446eb6a76aab1e875260e8be239b70">REPLACE</a>: If an object to be restored already exists with the same name, replace it with the backup version. </li>
                      <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#aade58739cc2973a7ff3d35bf1219f494">RENAME</a>: If an object to be restored already exists with the same name, move that existing one to the schema specified by <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a488a4e8c2e2c9780fea210bc93e39e79">RENAMED\_OBJECTS\_SCHEMA</a>. This policy does not apply to non-schema objects. </li>
                    </ul>

                    The default value is <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#a4cd096123ab7593c9abd793b56249581">NONE</a>.
                  </li>

                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1RestoreBackupRequest_1_1Options#aebbfaa89ac3befedb2f70a18c61221aa">TARGET\_SCHEMA\_MAP</a>: Restore schema-based objects to alternate schema. Value is a comma delimitted list of key:value pairs mapping the original (source) schema name as it exists in the backup to a target (destination) schema namespace: "src: dst \[, src: dst \[, ...]]". Note that schema names are case sensitive and must adhere to the database schema <a href="/content/concepts/schemas/" target="_top">naming criteria</a>. The default value is ''. </li>
                </ul>

                The default value is an empty Dictionary.
              </td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L57881">57881</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>
</div>
