HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/rds/restore-db-instance-to-point-in-time.rst
**Example 1: To restore a DB instance to a point in time**

The following ``restore-db-instance-to-point-in-time`` example restores ``test-instance`` to a new DB instance named ``restored-test-instance``, as of the specified time. ::

    aws rds restore-db-instance-to-point-in-time \
        --source-db-instance-identifier test-instance \
        --target-db-instance restored-test-instance \
        --restore-time 2018-07-30T23:45:00.000Z

Output::

    {
        "DBInstance": {
            "AllocatedStorage": 20,
            "DBInstanceArn": "arn:aws:rds:us-east-1:123456789012:db:restored-test-instance",
            "DBInstanceStatus": "creating",
            "DBInstanceIdentifier": "restored-test-instance",
            ...some output omitted...
        }
    }

For more information, see `Restoring a DB instance to a specified time <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html>`__ in the *Amazon RDS User Guide*.

**Example 2: To restore a DB instance to a specified time from a replicated backup**

The following ``restore-db-instance-to-point-in-time`` example restores an Oracle DB instance to the specified time from a replicated automated backup. ::

    aws rds restore-db-instance-to-point-in-time \
        --source-db-instance-automated-backups-arn "arn:aws:rds:us-west-2:123456789012:auto-backup:ab-jkib2gfq5rv7replzadausbrktni2bn4example" \
        --target-db-instance-identifier myorclinstance-from-replicated-backup \
        --restore-time 2020-12-08T18:45:00.000Z

Output::

    {
        "DBInstance": {
            "DBInstanceIdentifier": "myorclinstance-from-replicated-backup",
            "DBInstanceClass": "db.t3.micro",
            "Engine": "oracle-se2",
            "DBInstanceStatus": "creating",
            "MasterUsername": "admin",
            "DBName": "ORCL",
            "AllocatedStorage": 20,
            "PreferredBackupWindow": "07:45-08:15",
            "BackupRetentionPeriod": 14,
            ... some output omitted ...
            "DbiResourceId": "db-KGLXG75BGVIWKQT7NQ4EXAMPLE",
            "CACertificateIdentifier": "rds-ca-2019",
            "DomainMemberships": [],
            "CopyTagsToSnapshot": false,
            "MonitoringInterval": 0,
            "DBInstanceArn": "arn:aws:rds:us-west-2:123456789012:db:myorclinstance-from-replicated-backup",
            "IAMDatabaseAuthenticationEnabled": false,
            "PerformanceInsightsEnabled": false,
            "DeletionProtection": false,
            "AssociatedRoles": [],
            "TagList": []
        }
    }

For more information, see `Restoring to a specified time from a replicated backup <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html#AutomatedBackups.PiTR>`__ in the *Amazon RDS User Guide*.