NAME

App::MBUtiny::Storage::SFTP - App::MBUtiny::Storage subclass for SFTP storage support

VIRSION

Version 1.01

SYNOPSIS

  <Host "foo">
    <SFTP>
        FixUP       on
        URL         sftp://user@example.com:22/path/to/backup/dir1
        URL         sftp://user@example.com:22/path/to/backup/dir2
        Set         timeout  180
        Set         key_path  /path/to/private/file.key
        Comment     SFTP storage said blah-blah-blah # Optional for collector
    </SFTP>

    # . . .

  </Host>

DESCRIPTION

App::MBUtiny::Storage subclass for SFTP storage support

NOTE! For initialization SSH connection please run follow commands first:

    ssh-keygen -t rsa
    ssh-copy-id -i /path/to/private/file.pub user@example.com

del

Removes the specified file. This is backend method of "del" in App::MBUtiny::Storage

get

Gets the backup file from storage and saves it to specified path. This is backend method of "get" in App::MBUtiny::Storage

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

sftp_storages

    my @list = $storage->sftp_storages;

Returns list of SFTP storage nodes

put

Sends backup file to storage. This is backend method of "put" in App::MBUtiny::Storage

test

Storage testing. This is backend method of "test" in App::MBUtiny::Storage

HISTORY

See Changes file

TO DO

See TODO file

BUGS

* none noted

SEE ALSO

App::MBUtiny::Storage

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/