App::MBUtiny::Storage::Command - App::MBUtiny::Storage subclass for Command storage support
Version 1.00
<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>
App::MBUtiny::Storage subclass for Command storage support
Removes the specified file. This is backend method of "del" in App::MBUtiny::Storage
Variables: PATH, HOST, NAME
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
The method performs initialization of storage. This is backend method of "init" in App::MBUtiny::Storage
Gets backup file list on storage. This is backend method of "list" in App::MBUtiny::Storage
Variables: PATH, HOST
my @list = $storage->cmd_storages;
Returns list of command storage nodes
Sends backup file to storage. This is backend method of "put" in App::MBUtiny::Storage
Variables: PATH, HOST, SIZE, NAME, FILE
Storage testing. This is backend method of "test" in App::MBUtiny::Storage
Full file path of backup file
For example:
/tmp/mbutiny/files/foo-2019-06-20.tar.gz
MBUtiny host name
foo
File name of backup file
foo-2019-06-20.tar.gz
Path to backup files
/tmp/mbutiny/files
Size of backup file (bytes)
32423
See Changes file
Changes
See TODO file
TODO
* none noted
App::MBUtiny::Storage
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved
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/
LICENSE
To install App::MBUtiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::MBUtiny
CPAN shell
perl -MCPAN -e shell install App::MBUtiny
For more information on module installation, please visit the detailed CPAN module installation guide.