Wolfram Volpi
2015-07-06 01:27:13 UTC
The author of http://s3tools.org/s3cmd-sync asked for better wording; so here is my attempt:
With directories there is one thing to watch out for – you can either upload the directory and its contents or just the contents. It all depends on a slash.
A slash is the directory, the name before the slash is the directory's name:
PATH DESCRIPTION
dir a directory name
dir/ a directory named dir
A component following the specified source directory path is implied:
PATH COMPONENT FOLLOWING PATH
dir directory named dir
dir/ content of directory named dir
To upload a directory, specify the source without the trailing slash:
$ s3cmd put -r dir1 s3://s3tools-demo/some/path/
^copy component following source (directory)
To upload the content of a directory, specify the source with the trailing slash:
$ s3cmd put -r dir1/ s3://s3tools-demo/some/path/
^copy component following source (directory's content)
That's all there is to it.
I am just starting to learn s3cmd, so this may not be any better or correct.
Edit and use it as you please.
wolfv
With directories there is one thing to watch out for – you can either upload the directory and its contents or just the contents. It all depends on a slash.
A slash is the directory, the name before the slash is the directory's name:
PATH DESCRIPTION
dir a directory name
dir/ a directory named dir
A component following the specified source directory path is implied:
PATH COMPONENT FOLLOWING PATH
dir directory named dir
dir/ content of directory named dir
To upload a directory, specify the source without the trailing slash:
$ s3cmd put -r dir1 s3://s3tools-demo/some/path/
^copy component following source (directory)
To upload the content of a directory, specify the source with the trailing slash:
$ s3cmd put -r dir1/ s3://s3tools-demo/some/path/
^copy component following source (directory's content)
That's all there is to it.
I am just starting to learn s3cmd, so this may not be any better or correct.
Edit and use it as you please.
wolfv