NAME

Store::RSyncSSH - Class to define RSyncSSH store that perform RSync operations between a local- and remote location through a SSH-connection.

SYNOPSIS

Used in the same way as the Store-class. See the Store-class for more information.

DESCRIPTION

Class to perform RSync operations between a local- and remote location through a SSH-connection.

These additional parameters are special to the RSyncSSH-class and are to be used with the open()-method:

It is used in the same way as the Store-class. See the Store-class for more information.

CONSTRUCTOR

new()

Constructor is inherited from the Store-class. See the Store-class for more information.

It uses the inherited new()-method.

It returns the instantiated class.

METHODS

open_define()

Defines the parameters used on the RSyncSSH-store. This methods is inherited from the Store-class. See the Store-class for more information.

open_create()

Creates the necessary StoreProcess-instances used by the RSyncSSH-store.

It basically creates StoreProcess::Shell-instances for GET-, PUT- and DEL-operations and inputs the necessary Parameter::Group-class parameters.

This method has overridden a Store-class method. See the Store-class for more information.

remoteSize()

Returns the size of the area designated by the remote-parameter to the open()-method.

The size is calculated by using ssh and then running the "ls" command recursively.

It returns the size in Bytes. Please see the Store-class for more information on this method.

listRemote()

Lists a designated remote folder.

Input parameter is path. If none given it defaults to the root of the store area.

The method uses ssh and the "ls" command to list the folder in the remote area.

Returns a HASH-reference structure upon success. Please see the Store-class for more information on this method.

close()

Overrides the close()-method of the placeholder Store-class.

Unlinks temporary files used when store is open. Also calls the placeholder classes close()-method.

Always returns 1.