1and1 Help Centre Categories

print article

Back Up Linux Files and Folders

For 1&1 Professional Backup Linux

Learn how to select files and folders to be backed up by 1&1 Professional Backup.

Step 2
Once connected, change directories to the folder where the backup client is installed.
[root@s12345678 ~]# cd /opt/1UND1US/bin/
[root@s12345678 bin]#
Step 3
The ClientTool control.selection.modify command located in this directory is the command used to backup and restore your files and folders.
Command Options
Option Values
-datasource <NAME> FileSystem
-include <PATH> Path to file/folder to include for backup. Can be used multiple times.
-exclude <PATH> Path to file/folder to exclude for backup. Can be used multiple times.
-priority <NAME> Low, Normal, or High. Default value is Normal.
[root@s12345678 bin]# ./ClientTool control.selection.modify -datasource FileSystem -include /var/www
Client Tool, version 13.2.0.13178 (#25989)
Copyright (c) 2004-2013 IASO Backup Technology
All rights reserved.

Backup selection successfully modified.
[root@s12345678 bin]#
Step 4
Once a folder or file has been added to the list of backup locations, it will always be backed up. You will have to remove the folder or file from the backup list.

You can add more backup locations by issuing the same command, but replacing /var/www/ with the other location you wish to back up.

To view a list of your selected backup locations, use the command ./ClientTool control.selection.list
[root@s12345678 bin]# ./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 bin]#
Step 5
To start the backup process manually, use the ./ClientTool control.backup.start command.
[root@s12345678 bin]# ./ClientTool control.backup.start
Client Tool, version 13.2.0.13178 (#25989)
Copyright (c) 2004-2013 IASO Backup Technology
All rights reserved.

Starting backup for FileSystem datasource.
[root@s12345678 bin]#
Step 6
Use ./ClientTool control.session.node.list -datasource FileSystem to list the backed up, or removed files from the last synchronisation.
[root@s12345678 bin]# ./ClientTool control.session.node.list -datasource FileSystem
Client Tool, version 13.2.0.13178 (#25989)
Copyright (c) 2004-2013 IASO Backup Technology
All rights reserved.

Listing changed session nodes for FileSystem datasource (1..4):

START END SIZE SENTS PATH
------------------- ------------------- ----- ----- ----------------------------------------
2013-07-10 14:20:48 2013-07-10 14:20:48 8.89K 1.59K /var/www/error/HTTP_BAD_GATEWAY.html.var
2013-07-10 14:20:48 2013-07-10 14:20:48 6.48K 1.73K /var/www/error/HTTP_BAD_REQUEST.html.var
2013-07-10 14:20:48 2013-07-10 14:20:48 10.9K 2.84K /var/www/error/HTTP_FORBIDDEN.html.var
2013-07-10 14:20:48 2013-07-10 14:20:48 12.4K 3.66K /var/www/error/HTTP_GONE.html.var
[root@s12345678 bin]#
Step 7
You can also view a list of previous backup sessions to see when the last backup was run by using the command ./ClientTool control.session.list
[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:20:41 2013-07-10 14:20:53 16.8M 1274 16.8M  1274 6.38M  1274    0    0
[root@s12345678 bin]#

In the future, you can run backups manually at any time by running the command ./ClientTool control.backup.start just as in Step 4 above, or you can schedule a recurring backup.

For additional information, you may want to reference: