Restore

Restore Examples

Restore to a Subdirectory Inside the Container

If the objects were selected inside container1, the following restore command will relocate objects under /tmp. For example: /container1/home/file.png will be restored as /container1/tmp/home/file.png.

* restore where=/container1/tmp

Restore to an Alternate Container

If the objects where selected inside container1, the following restore command will relocate them under container2. ex: /container1/home/file.png will be restored as /container2/home/file.png.

* restore where=container2

Restore to a Local Directory

You may restore the files to your local filesystem by setting the restore_local option to yes in the Plugin Restore Options menu. You must specify the where= option.

* restore where=/home/user/my_restored_files

After the selection of the files you want to restore, modify the plugin option, select option 5 restore_local, and set it to ’yes’

Run Restore job
JobName:         RestoreFiles
...
Plugin Options:  *None*
OK to run? (yes/mod/no): mod
Parameters to modify:
     1: Level
     ...
    13: Plugin Options
Select parameter to modify (1-13): 13
Automatically selected : swift: user=test:tester password=testing
     URL=http://localhost:8080/auth/v1.0 include=data1/*

Plugin Restore Options
user:                *None*               (*None*)
password:            *None*               (*None*)
url:                 *None*               (*None*)
be_object_segment_size: *None*               (5 MiB)
restore_local:       *None*               (No)
insecure:            *None*               (No)
Use above plugin configuration? (yes/mod/no): mod
You have the following choices:
     1: user (Restore user name)
     2: password (Restore user password)
     3: url (Destination URL for restore)
     4: be_object_segment_size (DLO max segment size)
     5: restore_local (Restore as local file)
     6: insecure (Accept self-signed certificate)
Select parameter to modify (1-6): 5
Please enter a value for restore_local: yes
Plugin Restore Options
user:                *None*               (*None*)
password:            *None*               (*None*)
url:                 *None*               (*None*)
be_object_segment_size: *None*               (5 MiB)
restore_local:       yes                  (No)
insecure:            *None*               (No)
Use above plugin configuration? (yes/mod/no): yes
Run Restore job
JobName:         RestoreFiles
...
Plugin Options:  User specified
OK to run? (yes/mod/no): yes

See also

Previous articles:

Next articles:

Go back to: Swift Object Plugin: Operations.