Performs a backup.
java -jar cli.jar backup --host-name=TIM-LAPTOP --project-name=Photos --path=/home/tim/photo, /home/tim/picture --key=mykey --recursive
java -jar opero-commandline.jar backup --login=Natalia2 --password=zaq12wsx --server=http://192.168.0.199:45558 --host-name=NATALIA1 --project-name=CLI --path=D:/MC --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 backup --path=D:/MC --recursive
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 backup --config=D:\CLI.conf --path=D:/MC --recursive
|--path <path1, path2, ...>
||This argument specifies a list of files and/or directories to be backed up. multiple paths are separated with ','. It is the user's responsibility to properly quote any file or folder name containing embedded whitespace or other special characters. If the optional --recursiveoption is specified, all specified folders will be backed up recursively. The use of relative paths is allowed and will be treated properly by the agent(this means that the agent will fully resolve any relative path into the correct absolute path and automatically compress any redundant path components).
||Host name to which files will be added. This host must be firstly added to user account by command addhost. Default is current host.
||Project name to which files will be added. Default is 'commandline'.
||This argument specifies to set backup as recursive.
||Specifies backup method for files: REGULAR | DIFFERENTIAL | INCREMENTAL. Default is automatic.
||Path separator of files and/or directories list. Default is ','.
||User encryption key used to encrypt a stored files. Required if user defined his own encryption key(not default).
This command will print, during and after backup, list of backed up files, one line for each file (the full path will be shown).