1PUPPET-FILEBUCKET(8)             Puppet manual            PUPPET-FILEBUCKET(8)
2
3
4

NAME

6       puppet-filebucket - Store and retrieve files in a filebucket
7

SYNOPSIS

9       A stand-alone Puppet filebucket client.
10

USAGE

12       puppet   filebucket   mode   [-h|--help]   [-V|--version]  [-d|--debug]
13       [-v|--verbose]   [-l|--local]   [-r|--remote]   [-s|--server    server]
14       [-f|--fromdate  date]  [-t|--todate  date] [-b|--bucket directory] file
15       file ...
16
17       Puppet filebucket can operate in three modes, with only  one  mode  per
18       call:
19
20       backup:  Send one or more files to the specified file bucket. Each sent
21       file is printed with its resulting md5 sum.
22
23       get: Return the text associated with an md5 sum. The text is printed to
24       stdout, and only one file can be retrieved at a time.
25
26       restore: Given a file path and an md5 sum, store the content associated
27       with the sum into the specified file path. You can specify an  entirely
28       new path to this argument; you are not restricted to restoring the con‐
29       tent to its original location.
30
31       diff: Print a diff in unified format between two checksums in the file‐
32       bucket or between a checksum and its matching file.
33
34       list:  List  all  files in the current local filebucket. Listing remote
35       filebuckets is not allowed.
36

DESCRIPTION

38       This is a stand-alone filebucket client for sending files to a local or
39       central filebucket.
40
41       Note  that  ´filebucket´  defaults  to using a network-based filebucket
42       available on the server named ´puppet´. To use this, you´ll have to  be
43       running  as  a  user with valid Puppet certificates. Alternatively, you
44       can use your local file bucket by specifying ´--local´, or by  specify‐
45       ing ´--bucket´ with a local path.
46

OPTIONS

48       Note  that any setting that´s valid in the configuration file is also a
49       valid long argument. For example, ´ssldir´ is a valid setting,  so  you
50       can specify ´--ssldir directory´ as an argument.
51
52       See    the    configuration    file   documentation   at   https://pup
53       pet.com/docs/puppet/latest/configuration.html  for  the  full  list  of
54       acceptable  parameters.  A  commented list of all configuration options
55       can also be generated by running puppet with ´--genconfig´.
56
57       --bucket
58              Specify a local filebucket path. This overrides the default path
59              set in ´$clientbucketdir´.
60
61       --debug
62              Enable full debugging.
63
64       --fromdate
65              (list only) Select bucket files from ´fromdate´.
66
67       --help Print this help message.
68
69       --local
70              Use  the  local  filebucket. This uses the default configuration
71              information and the bucket  located  at  the  ´$clientbucketdir´
72              setting  by default. If ´--bucket´ is set, puppet uses that path
73              instead.
74
75       --remote
76              Use a remote filebucket. This  uses  the  default  configuration
77              information  and  the bucket located at the ´$bucketdir´ setting
78              by default.
79
80       --server
81              The server to send the file to, instead of locally.
82
83       --todate
84              (list only) Select bucket files until ´todate´.
85
86       --verbose
87              Print extra information.
88
89       --version
90              Print version information.
91

EXAMPLES

93       ## Backup a file to the filebucket, then restore it to a temporary directory
94       $ puppet filebucket backup /etc/passwd
95       /etc/passwd: 429b225650b912a2ee067b0a4cf1e949
96       $ puppet filebucket restore /tmp/passwd 429b225650b912a2ee067b0a4cf1e949
97
98       ## Diff between two files in the filebucket
99       $ puppet filebucket -l diff d43a6ecaa892a1962398ac9170ea9bf2 7ae322f5791217e031dc60188f4521ef
100       1a2
101       > again
102
103       ## Diff between the file in the filebucket and a local file
104       $ puppet filebucket -l diff d43a6ecaa892a1962398ac9170ea9bf2 /tmp/testFile
105       1a2
106       > again
107
108       ## Backup a file to the filebucket and observe that it keeps each backup separate
109       $ puppet filebucket -l list
110       d43a6ecaa892a1962398ac9170ea9bf2 2015-05-11 09:27:56 /tmp/TestFile
111
112       $ echo again >> /tmp/TestFile
113
114       $ puppet filebucket -l backup /tmp/TestFile
115       /tmp/TestFile: 7ae322f5791217e031dc60188f4521ef
116
117       $ puppet filebucket -l list
118       d43a6ecaa892a1962398ac9170ea9bf2 2015-05-11 09:27:56 /tmp/TestFile
119       7ae322f5791217e031dc60188f4521ef 2015-05-11 09:52:15 /tmp/TestFile
120
121       ## List files in a filebucket within date ranges
122       $ puppet filebucket -l -f 2015-01-01 -t 2015-01-11 list
123       <Empty Output>
124
125       $ puppet filebucket -l -f 2015-05-10 list
126       d43a6ecaa892a1962398ac9170ea9bf2 2015-05-11 09:27:56 /tmp/TestFile
127       7ae322f5791217e031dc60188f4521ef 2015-05-11 09:52:15 /tmp/TestFile
128
129       $ puppet filebucket -l -f "2015-05-11 09:30:00" list
130       7ae322f5791217e031dc60188f4521ef 2015-05-11 09:52:15 /tmp/TestFile
131
132       $ puppet filebucket -l -t "2015-05-11 09:30:00" list
133       d43a6ecaa892a1962398ac9170ea9bf2 2015-05-11 09:27:56 /tmp/TestFile
134       ## Manage files in a specific local filebucket
135       $ puppet filebucket -b /tmp/TestBucket backup /tmp/TestFile2
136       /tmp/TestFile2: d41d8cd98f00b204e9800998ecf8427e
137       $ puppet filebucket -b /tmp/TestBucket list
138       d41d8cd98f00b204e9800998ecf8427e 2015-05-11 09:33:22 /tmp/TestFile2
139
140       ## From a Puppet master, list files in the master bucketdir
141       $ puppet filebucket -b $(puppet config print bucketdir --section master) list
142       d43a6ecaa892a1962398ac9170ea9bf2 2015-05-11 09:27:56 /tmp/TestFile
143       7ae322f5791217e031dc60188f4521ef 2015-05-11 09:52:15 /tmp/TestFile
144

AUTHOR

146       Luke Kanies
147
149       Copyright (c) 2011 Puppet Inc.,  LLC  Licensed  under  the  Apache  2.0
150       License
151
152
153
154Puppet, Inc.                     January 2019             PUPPET-FILEBUCKET(8)
Impressum