Olivier Thauvin

NAME

MMM::MirrorTask Class to store mirror task function and data

METHODS

new

name

Return the name of the current task

is_disable

Return true if the current task is disable

val( $var, $default)

Return the configuration value for $var. Return $default if parameter is not set in the config

frequency

Return the frequency value from config

state_info

Return a hashref about job status

next_run_time

Return the time (in second) when the next run should be performed

source

Return the source associate to the list, if any

getlock($share)

Try to lock the lockfile for this task, in shared mode if $share is set.

unlock

Release the lock for the task

is_running

Return true is the task is running (lock check)

failure_count

Return three values: - the count of failure since last success - the previous failure count - and if this count has change between the two previous run (eg if failure count is different of previous failure count)

sync

Perform the synchronization

dest

The destination directory for this mirror

du_dest

Perform du over the destination directory and store the result into status file

STATUS FILE STRUCTURE

job SECTION

successed 1 if last run was ok
size The size of the tree
size_time Last time the size were checked
first_sync

The first time job is take into account

success SECTION

start
end

failure SECTION

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 628:

'=item' outside of any '=over'

Around line 632:

You forgot a '=back' before '=head2'