NAME

Store::SCP - Class to define SCP store that perform SCP operations between a local- and remote location.

SYNOPSIS

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

DESCRIPTION

Class to perform SCP-operations between a local- and remote location.

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

These additional parameters are special to the SCP-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 returns the instantiated class.

METHODS

open_define()

Defines the parameters used on the SCP-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 SCP-store.

It basically creates StoreProcess::Shell-instances for both GET- and PUT- 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 are designated by the "remote"-parameter and its sub-folders.

It uses ssh and the "ls" command to get the size of the remote area and its subfolders.

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

listRemote()

Lists the designated folder on the remote area.

Input parameters is path. If none is given it defaults to the root of the Store area.

It uses ssh and the "ls" command to get the folder listing.

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