The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Backup::Datto::Agent - A module representing an agent on a Datto object

VERSION

This document describes Datto version 0.1.1. It is designed to be used by the DattoCollection class, and as a result, most of its interface is not public.

SYNOPSIS

Note: This is not useful without something setting the values below. See DattoCollection.pm for more details

my $dattoagent = new Datto::Agent();

DESCRIPTION

This module represents an agent on a Datto appliance. Most commonly, this is a windows server, but can also be a NAS share. Note that NAS shares are not supported yet.

METHODS

new

No arguments required. All fields are set to undef.

get_agent_name

Returns the agent's name. This will normally be the hostname.

get_last_backup

Returns the time of the last backup, as a date string: "2014-07-31 22:05:04"

Note that Datto's API uses "1969-12-31 19:00:00" to represent the agent never completing a backup.

get_last_offsite

Returns the time of the last offsite, as a date string: "2014-07-31 22:05:04"

Note that Datto's API uses "1969-12-31 19:00:00" to represent tha agent never completing an offsite backup.

get_last_status

Returns the status of the last backup as a string. This is pulled directly from Datto's API and passed through. As an example, this will return the word "Success" for success. This method is guaranteed to remain constant, but a future version of this module may return a status value.

All other functions

All other functions in this module start with _priv and are designed to be use within the module itself. They are documented inline, but not part of the public interface. They are not guaranteed to remain in future releases. The public functions are guaranteed to remain.

CONFIGURATION

Datto::Agent requires no configuration files or environment variables.

BUGS AND LIMITATIONS

This module assumes EST time. Future versions will handle devices in multiple time zones

This module does not handle NAS Shares at this time.

There is very little error checking since this module is intended to be used within the DattoCollection module.

AUTHOR

Matthew Topper, topperm9@gmail.com

LICENSE AND COPYRIGHT

Copyright (C), Matthew Topper. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.