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 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ S3tools-general mailing list S3tools-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/s3tools-general