class RBarman::Server

Represents a server for which barman should do/have backups

Attributes

active[RW]

@param [Boolean] active if server is active @return [Boolean, nil] if server is active

backup_dir[RW]

@param [String] path to backup directory @return [String, nil] the path to backup directory

backups[RW]

@param [Backups] server backups @return [Backups, nil] server backups

base_backups_dir[RW]

@param [String] path to base backups directory @return [String, nil] the path to base backups directory

conn_info[RW]

@param [String] the connection info @return [String, nil] the connection info

name[RW]

@param [String] name name of the server @return [String] name of the server

pg_conn_ok[RW]

@param [Boolean] if PostgreSQL connection is working @return [Boolean, nil] if PostgreSQL connection is working

pg_version[RW]

@param [String] PostgreSQL version @return [String] PostgreSQL version

ssh_check_ok[RW]

@param [Boolean] if SSH connection is working @return [Boolean, nil] if SSH connection is working

ssh_cmd[RW]

@param [String] cmd ssh command @return [String, nil] the ssh command

wals_dir[RW]

@param [String] path to wals directory @return [String, nil] the path to wals directory

Public Class Methods

by_name(name, opts = {}) click to toggle source

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
new(name) click to toggle source

Creates a new instance of {Server}

# File lib/rbarman/server.rb, line 54
def initialize(name)
  @name = name
end