File: tomahawk-rsync3.1

package info (click to toggle)
tomahawk 0.7.1-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 484 kB
  • sloc: python: 1,921; makefile: 153; sh: 3
file content (158 lines) | stat: -rw-r--r-- 4,404 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
.\" Man page generated from reStructuredText.
.
.TH "TOMAHAWK-RSYNC3" "1" "April 17, 2014" "0.7.0" "tomahawk3"
.SH NAME
tomahawk-rsync3 \- enables to copy files to many hosts
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.SH SYNOPSIS
.sp
\fBtomahawk\-rsync3\fP [\fIoptions\fP] source destination
.SH DESCRIPTION
.sp
\fBtomahawk\-rsync3\fP is a program that enables to copy files <into/from> many hosts.
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
$ tomahawk\-rsync3 \-h host1,host2,host3 test.py /tmp/test.py
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
\-\-\-> \(aqtest.py\(aq is copied to host1, host2 and host3.
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
$ tomahawk\-rsync3 \-f web.list /usr/local/apache2/conf/httpd.conf /tmp/httpd.conf
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
\-\-\-> \(aqhttpd.conf\(aq is copied to hosts which listed in \(aqweb.list\(aq.
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
$ tomahawk\-rsync3 \-h host1,host2 \-m pull /usr/local/apache2/conf/httpd.conf /tmp/conf/
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
\-\-\-> \(aqhttpd.conf\(aq is copied from host1 and host2 to local directory /tmp/conf as \(aqhost1__httpd.conf\(aq and \(aqhost2__httpd.conf\(aq.
.SS rsync
.sp
tomahawk\-rsync3 copies files via \(aqrsync\(aq. You can specify options for rsync with \-o/\-\-rsync\-ooptions.
.SH OPTIONS
.sp
These programs follow the usual GNU command line syntax, with long options starting with two dashes (\(aq\-\-\(aq).
A summary of options is included below.
For a complete description, see the Info files.
.SS \-H, \-\-hosts
.sp
Specifies host names for sending commands. You can specify multiple hosts with \(aq,\(aq.
.SS \-f, \-\-hosts\-files
.sp
Specifies hosts files which listed host names for sending commands.
You can specify multiple hosts files with \(aq,\(aq.
.sp
Format of hosts file is below.
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
web01
web02
#web03
web04
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
A line of starting with \(aq#\(aq disables a host.
.SS \-l, \-\-prompt\-login\-password
.sp
Prompts a password for ssh authentication of rsync at first. If the password is all the same between target hosts, you\(aqll input a password just once.
.SS \-c, \-\-continue\-on\-error
.sp
Continues to send commands even if any errors.
The default behavior is fail\-safe, means that tomahawk will stop if any errors.
.SS \-p, \-\-parallel
.sp
Specifies a number of processes for parallel command execution. (default: 1)
If your machine has many cpu cores, \-\-parallel 2 .. N might be faster.
.SS \-t, \-\-timeout
.sp
Specifies timeout seconds for a command.
.SS \-F, \-\-output\-format
.sp
Specifies command output format.
The default is \fI\%\(aq${user}@${host\fP} % ${command}n${output}n\(aq
.SS \-u, \-\-rsync\-user
.sp
Specifies rsync user. The default is a current logged in user.
.SS \-o, \-\-rsync\-options
.sp
Specifies rsync options. The default is \(aq\-av\(aq
.SS \-m, \-\-mirror\-mode
.sp
Selection of \(aqpush\(aq or \(aqpull\(aq.
\(aqpull\(aq means copy files from remote to local. The default is \(aqpush\(aq.
.SS \-C, \-\-conf
.sp
Specifies configuration file path. For additional information, see \fIomit\-command\-line\-options\fP
.SH ENVIRONMENT VARIABLES
.sp
tomahawk\(aqs behavior is affected by the following environment variables.
.SS TOMAHAWK_ENV
.sp
This variable specifies an environment of \(aqproduction\(aq, \(aqtesting\(aq or \(aqdevelopment\(aq. If TOMAHAWK_ENV=production specified, \fItomahawk3\fP or \fItomahawk\-rsync3\fP prompt as "command "%s" will be executed %s hosts. Are you sure? [yes/NO]: ". The environment variable exists for mis\-execution of a command.
.SH SEE ALSO
.INDENT 0.0
.IP \(bu 2
\fItomahawk3(1)\fP
.IP \(bu 2
\fIssh(1)\fP
.IP \(bu 2
\fIrsync(1)\fP
.UNINDENT
.SH AUTHOR
Kazuhiro Oinuma, Kohei Maeda
.SH COPYRIGHT
2011-2014, Kazuhiro Oinuma
.\" Generated by docutils manpage writer.
.