class RBarman::Server
Represents a server for which barman should do/have backups
Attributes
@param [Boolean] active if server is active @return [Boolean, nil] if server is active
@param [String] path to backup directory @return [String, nil] the path to backup directory
@param [Backups] server backups @return [Backups, nil] server backups
@param [String] path to base backups directory @return [String, nil] the path to base backups directory
@param [String] the connection info @return [String, nil] the connection info
@param [String] name name of the server @return [String] name of the server
@param [Boolean] if PostgreSQL connection is working @return [Boolean, nil] if PostgreSQL connection is working
@param [String] PostgreSQL version @return [String] PostgreSQL version
@param [Boolean] if SSH connection is working @return [Boolean, nil] if SSH connection is working
@param [String] cmd ssh command @return [String, nil] the ssh command
@param [String] path to wals directory @return [String, nil] the path to wals directory
Public Class Methods
Instructs the underlying (barman) command to get information about a server @param [String] name name of the server @param [Hash] opts options for creating {Server} @option opts [Boolean] :with_backups whether to include {Backups} @option opts [Boolean] :with_wal_files whether to include {WalFiles} in each {Backup}
# File lib/rbarman/server.rb, line 63 def self.by_name(name, opts = {}) cmd = CliCommand.new return cmd.server(name, opts) end
Creates a new instance of {Server}
# File lib/rbarman/server.rb, line 54 def initialize(name) @name = name end