Restores files from backup servers.
java -jar cli.jar restore --host-name=TIM-LAPTOP --project-name=Photos --restore-dir=/home/tim/restore --path=\\\\home\\tim\\picture --key=mykey --recursive
java -jar opero-commandline.jar restore --login=Natalia2 --password=zaq12wsx --server=http://192.168.0.199:45558 --path=D:\MC --host-name=NATALIA1 --recursive
If you have a configuration file in user's home directory, you do not need to enter the parameters: login, password, server:
java -jar opero-commandline.jar restore
If you have a configuration file in a different directory than the user's home directory, then you have to enter the parameter: config, e.g.
java -jar opero-commandline.jar restore --config=D:\CLI.conf
|[--host-name <name>]||Host name from which files have to be restored. Default is current host.|
|[--project-name <name>]||Project name from which files have to be restored. Default refers to all project from given host.|
|[--path <path1, path2, ...>]||Path to directories that have to be restored. It is possible to type there a file that we want to display versions. If empty then main folder will be selected by default.|
|[--version <GUID1, GUID2, ...>]||File versions id that has to be downloaded. If it will be given then paths parameter will be missed.|
|[--date <YYYY-MM-DD hh:ss:mm>]||Paths/versions created after this date will not be included.|
|[--recursive]||Restores all directories that are under given path.|
|[--restore-dir <dir>]||Local directory where files will be downloaded. If not specified files will be downloaded to current directory.|
|[--key <key>]||User encryption key used to decrypt a downloaded files. Required if user defined his own encryption key (not default).|
|[--overwrite]||Specifies overwrite mode: ASK | YES | NO. Default is ASK.|
|[--maxThreads <number>]||Maximum number of threads to use. Default is 8.|
As output, the restore command prints the list of restored files and folders on standard output, one line for each file (the full path is displayed).