Backup::Datto::Agent - A module representing an agent on a Datto object
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.
Note: This is not useful without something setting the values below. See DattoCollection.pm for more details
my $dattoagent = new Datto::Agent();
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.
No arguments required. All fields are set to undef.
Returns the agent's name. This will normally be the hostname.
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.
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.
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 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.
Datto::Agent requires no configuration files or environment variables.
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.
Matthew Topper, topperm9@gmail.com
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.
To install Backup::Datto::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Backup::Datto::Agent
CPAN shell
perl -MCPAN -e shell install Backup::Datto::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.