1and1 Help Centre Categories

print article

Restore Linux Files and Folders

For 1&1 Professional Backup

Learn how to restore files and folders in the event of hard drive failure, accidental deletion or to revert to an older version of a file.

Step 2
Once connected, change directories to the folder where the backup client is installed.
[root@s12345678 ~]# cd /opt/1UND1EU/bin_uk/
[root@s12345678 bin]#
Step 3
Use the ClientTool control.selection.list command to view the current list of backup locations. As long as the location you wish to restore has been added to this list and a backup has been run, you should be able to restore.
[root@s12345678 ~]# ./ClientTool control.selection.list
Client Tool, version 13.2.0.13178 (#25989)
Copyright (c) 2004-2013 IASO Backup Technology
All rights reserved.

DSRC       TYPE      PRIO   PATH
---------- --------- ------ --------
FileSystem Inclusive Normal /var/www
[root@s12345678 ~]#
Step 4
Enter the ClientTool control.session.list command bto view the past backup sessions. You will likely have multiple backup sessions and will have to choose which session to restore from based on the date/time.
[root@s12345678 bin]# ./ClientTool control.session.list
Client Tool, version 13.2.0.13178 (#25989)
Copyright (c) 2004-2013 IASO Backup Technology
All rights reserved.

Listing sessions for all datasources:

DSRC       TYPE   STATE     FLAGS START               END                  SELS SELC PROCS PROCC SENTS SENTC ERRC REMC
---------- ------ --------- ----- ------------------- ------------------- ----- ---- ----- ----- ----- ----- ---- ---- FileSystem Backup Completed -     2013-07-10 14:31:08 2013-07-10 14:31:12 15.2M 1114    0B     0    0B     0    0  160
FileSystem Backup Completed -     2013-07-10 14:26:53 2013-07-10 14:26:55 16.8M 1274    0B     0    0B     0    0    0
FileSystem Backup Completed -     2013-07-10 14:20:41 2013-07-10 14:20:53 16.8M 1274 16.8M  1274 6.38M  1274    0    0
[root@s12345678 bin]#
Step 5
Use the command ./ClientTool control.restore.start and the options below to start the restore process.
Command Options
Option Values
-datasource <NAME> FileSystem
-selection <PATH> Path to file/folder to be restored. Can be used multiple times.
-restore-to <PATH> Path to folder where the restored file/folders should be placed.
-time yyyy-mm-dd hh:mm:ss Start date and time of backup to use for restore, from the last step.
[root@s12345678 bin]# ./ClientTool control.restore.start -datasource FileSystem -selection /var/www -restore-to /var/wwwBackup -time "2013-07-10 14:20:41"
Client Tool, version 13.2.0.13178 (#25989)
Copyright (c) 2004-2013 IASO Backup Technology
All rights reserved.

Starting restore for FileSystem datasource.[root@s123456789 bin]#
Step 6
The time until the restore is complete depends on the size of the restore and the speed of the network. To view the status of the restore, use the ./ClientTool control.session.list command.
[root@s12345678 bin]# ./ClientTool control.session.list
Client Tool, version 13.2.0.13178 (#25989)
Copyright (c) 2004-2013 IASO Backup Technology
All rights reserved.

Listing sessions for all datasources:

DSRC       TYPE    STATE     FLAGS START               END                  SELS SELC PROCS PROCC SENTS SENTC ERRC REMC
---------- ------- --------- ----- ------------------- ------------------- ----- ---- ----- ----- ----- ----- ---- ---- FileSystem Restore Completed -     2013-07-24 19:07:34 2013-07-24 19:07:35 16.8M 1274 16.8M  1274 88.9K  1274    0    0FileSystem Backup  Completed -     2013-07-10 14:31:08 2013-07-10 14:31:12 15.2M 1114    0B     0    0B     0    0  160
FileSystem Backup  Completed -     2013-07-10 14:26:53 2013-07-10 14:26:55 16.8M 1274    0B     0    0B     0    0    0
FileSystem Backup  Completed -     2013-07-10 14:20:41 2013-07-10 14:20:53 16.8M 1274 16.8M  1274 6.38M  1274    0    0
[root@s12345678 bin]#

For additional information, you may want to reference: