NAME
App::MBUtiny::Storage::Command - App::MBUtiny::Storage subclass for Command storage support
VIRSION
Version 1.00
SYNOPSIS
<Host "foo">
<Command>
#FixUP on
test "test -d ./foo && ls -1 ./foo || mkdir ./foo"
put "cp [FILE] ./foo/[NAME]"
get "cp ./foo/[NAME] [FILE]"
del "test -e ./foo/[NAME] && unlink ./foo/[NAME] || true"
list "ls -1 ./foo"
comment Command storage said blah-blah-blah # Optional for collector
</Command>
# . . .
</Host>
DESCRIPTION
App::MBUtiny::Storage subclass for Command storage support
del
Removes the specified file. This is backend method of "del" in App::MBUtiny::Storage
Variables: PATH, HOST, NAME
get
Gets the backup file from storage and saves it to specified path. This is backend method of "get" in App::MBUtiny::Storage
Variables: PATH, HOST, NAME, FILE
init
The method performs initialization of storage. This is backend method of "init" in App::MBUtiny::Storage
list
Gets backup file list on storage. This is backend method of "list" in App::MBUtiny::Storage
Variables: PATH, HOST
cmd_storages
my @list = $storage->cmd_storages;
Returns list of command storage nodes
put
Sends backup file to storage. This is backend method of "put" in App::MBUtiny::Storage
Variables: PATH, HOST, SIZE, NAME, FILE
test
Storage testing. This is backend method of "test" in App::MBUtiny::Storage
Variables: PATH, HOST
VARIABLES
- FILE
-
Full file path of backup file
For example:
/tmp/mbutiny/files/foo-2019-06-20.tar.gz
- HOST
-
MBUtiny host name
For example:
foo
- NAME
-
File name of backup file
For example:
foo-2019-06-20.tar.gz
- PATH
-
Path to backup files
For example:
/tmp/mbutiny/files
- SIZE
-
Size of backup file (bytes)
For example:
32423
HISTORY
See Changes
file
TO DO
See TODO
file
BUGS
* none noted
SEE ALSO
AUTHOR
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
COPYRIGHT
Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE
file and https://dev.perl.org/licenses/