Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

codelibs/elasticsearch-repository-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Repository SSH

Overview

Repository SSH Plugin provides SSH repository for Elasticsearch's Snapshot/Restore feature.

Version

Version Elasticsearch
master 2.4.X
2.4.0 2.4.0
2.2.1 2.2.0
1.6.0 1.6.1
1.4.0 1.4.1

Issues/Questions

Please file an issue. (Japanese forum is here.)

Installation

Install Repository SSH Plugin

$ $ES_HOME/bin/plugin install org.codelibs/elasticsearch-repository-ssh/2.4.0

References

Register Repository

This plugin provides "ssh" type for a snapshot repository. You can register ssh-based repository as below:

curl -s -XPUT localhost/_snapshot/my_backup?pretty -d '{
    "type": "ssh",
    "settings": {
        "location": "/mnt/snapshot",
        "host": "123.123.123.123",
        "port": 22,
        "username": "snapshot_user",
        "private_key": "/home/snapshot_user/.ssh/id_rsa",
        "known_hosts": "/home/snapshot_user/.ssh/known_hosts",
        "compress": true
    }
}'

where

Name Type Description
location string a snapshot directory on SSH server
host string Host name for SSH server
port int Port number for SSH server
username string User name
private_key string Private key for "username"
passphrase string Passphrase for "private_key"
known_hosts string known_hosts file
password string Password for "username" if not using private_key
ignore_host_key boolean true if ignoring known_host file

Create/Restore Snapshot

The usage is the same as Elasticsearch's one. See snapshot and restore.

Note

In a large cluster, you may need to increase the MaxSessions parameter of your sshd in repository server.

About

SSH repository for Snapshot/Restore

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages