git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@207 830e0280-6d2a-0410-9c65-932aecc39d9d
Michal Ludvig authored on 2008/07/07 18:50:24... | ... |
@@ -162,8 +162,8 @@ This command will find all files under /local/path directory and copy them |
162 | 162 |
to corresponding paths under s3://test-bucket/backup on the remote side. |
163 | 163 |
For example: |
164 | 164 |
.nf |
165 |
-/local/path\fB/file1.ext\fR -> s3://test-bucket/backup\fB/file1.ext\fR |
|
166 |
-/local/path\fB/dir123/file2.bin\fR -> s3://test-bucket/backup\fB/dir123/file2.bin\fR |
|
165 |
+/local/path\fB/file1.ext\fR \-> s3://test-bucket/backup\fB/file1.ext\fR |
|
166 |
+/local/path\fB/dir123/file2.bin\fR \-> s3://test-bucket/backup\fB/dir123/file2.bin\fR |
|
167 | 167 |
.fi |
168 | 168 |
|
169 | 169 |
To retrieve the files back from S3 use inverted syntax: |
... | ... |
@@ -172,13 +172,13 @@ To retrieve the files back from S3 use inverted syntax: |
172 | 172 |
.fi |
173 | 173 |
that will download files: |
174 | 174 |
.nf |
175 |
-s3://test-bucket/backup\fB/file1.ext\fR -> /tmp/restore\fB/file1.ext\fR |
|
176 |
-s3://test-bucket/backup\fB/dir123/file2.bin\fR -> /tmp/restore\fB/dir123/file2.bin\fR |
|
175 |
+s3://test-bucket/backup\fB/file1.ext\fR \-> /tmp/restore\fB/file1.ext\fR |
|
176 |
+s3://test-bucket/backup\fB/dir123/file2.bin\fR \-> /tmp/restore\fB/dir123/file2.bin\fR |
|
177 | 177 |
.fi |
178 | 178 |
|
179 | 179 |
For the purpose of \fB\-\-exclude\fR and \fB\-\-exclude\-from\fR matching the file name |
180 | 180 |
\fIalways\fR begins with \fB/\fR (slash) and has the local or remote common part removed. |
181 |
-For instance in the previous example the file names tested against --exclude list |
|
181 |
+For instance in the previous example the file names tested against \-\-exclude list |
|
182 | 182 |
will be \fB/\fRfile1.ext and \fB/\fRdir123/file2.bin, that is both with the leading |
183 | 183 |
slash regardless whether you specified s3://test-bucket/backup or |
184 | 184 |
s3://test-bucket/backup/ (note the trailing slash) on the command line. |