|
|
const | TASK_LABEL = 'Copy to target' |
| |
|
const | TASK_LABEL = 'Copy files using RSync (abstract)' |
| |
|
const | BIN_RSYNC = 'rsync' |
| |
|
const | CMD_COPY_MASK = 'rsync --progress --times --copy-links --inplace --log-file="[@LOGFILE@]" "[@FILE_IN@]" "[@FILE_OUT@]"' |
| |
|
const | CMD_COPY_MASK_DEBUG = 'rsync --dry-run -v --progress --times --copy-links --inplace --log-file="[@LOGFILE@]" "[@FILE_IN@]" "[@FILE_OUT@]"' |
| |
|
const | TASK_LABEL = 'Copy files (abstract)' |
| |
|
const | CONF_UPDATE_FOLDERS = 'UPDATE_FOLDERS' |
| |
|
const | CONF_UPDATE_FILES = 'UPDATE_FILES' |
| |
|
const | OPT_CREATE = 'create' |
| |
|
const | OPT_UPDATE = 'update' |
| |
|
const | OPT_CREATE_OR_UPDATE = 'create_or_update' |
| |
|
const | STATUS_UNDEFINED = 0 |
| | Undefined. Default unless task changes it.
|
| |
|
const | STATUS_RUNNING = 1 |
| | Undefined, but indicates that the task is in progress.
|
| |
|
const | STATUS_WAIT = 2 |
| | Task decided that Item is not ready yet and shall be moved back to 'to-do'.
|
| |
|
const | STATUS_DONE = 5 |
| | Success! This means the task completed successfully.
|
| |
|
const | STATUS_PBCT = 6 |
| | There were problems, but the task may continue.
|
| |
|
const | STATUS_PBC = 7 |
| | There were problems, but subsequent task may continue.
|
| |
|
const | STATUS_ERROR = 10 |
| | An error occurred. Abort execution as soon as possible.
|
| |
|
const | STATUS_CONFIG_ERROR = 11 |
| | If a config option was not valid.
|
| |
|
const | STATUS_SKIPPED = 15 |
| | If task was skipped.
|
| |
|
const | ONCE_PER_ITEM = false |
| | True: Run this task only once per item.
|
| |
|
const | IS_RECURSIVE = false |
| | Default (false): one task = one folder. True: The task performs actions on subfolders too.
|
| |
|
const | CONF_COPY_EXCLUDE = 'COPY_EXCLUDE' |
| | Patterns which files to exclude from copying.
|
| |
|
const | MASK_TARGET_TEMP = 'temp_%s' |
| |
This task copies the files from source folder to target folder.
The actual file transfer process is done by 'rsync' to ensure reliable data transfer. TaskCopyRsync
- Author
- Peter Bubestinger-Steindl (pb@av.nosp@m.-rd..nosp@m.com)
- Copyright
- Copyright 2018 AV-RD e.U. (License: GNU General Public License (v3))
- See also
-
| TaskCopyToTarget::checkTargetFileCondition |
( |
|
$targetFile, |
|
|
|
$updateFiles |
|
) |
| |
|
protected |
Similar to checkTargetFolderCondition(), but for target files instead of folders. Scope is only one folder (current task's $CIFolder).
- See also
- self::OPT_UPDATE_FILES
| TaskCopyToTarget::checkTargetFolderCondition |
( |
|
$targetFolder, |
|
|
|
$updateFolders |
|
) |
| |
|
protected |
Checks the current situation of target folder, according to the setting given in $updateFolders.
NOTE: Condition mismatch is treated as "STATUS_PBC". This allows an operator to clear all reported warnings/errors before resetting the Item, as the task will try to process all subfolders and report all possibly mismatching entries.
$updateFolders must contain a valid option from self::$OPT_UPDATE_FOLDERS.
- See also
- self::isValidUpdateFolders()
| TaskCopyToTarget::init |
( |
| ) |
|
Prepare everything so it's ready for processing.
- Returns
- bool success True if init went fine, False if an error occurred.
| TaskCopyToTarget::run |
( |
| ) |
|
Perform the actual steps of this task.
The documentation for this class was generated from the following file:
- /media/storage_1tb/storage/F_Drive/JobsToDo/Das-Firma/owncloud/Development/src-repositories/avrd.git/projects/cinbox/bin/tasks/TaskCopyToTarget.php