Is it possible to efficiently copy an S3 folder to a new name - amazon-s3

In the S3 control panel I can copy / paste a folder but there is no option to rename the folder whilst copying it so it overwrites it's source.

S3 is not providing rename option.
If you are a developer then you have to delete that folder and re-upload it.
If you are a non-developer then you can try any tool like Bucket Explorer. It provides Rename functionality.
Disclosure: I am one of the developer of Bucket Explorer

Related

Google Drive - Automatically copy content of a new folders to antoher preselected folder

Is it possible to create an automation for Google Drive that creates a copy of newly uploaded files to a preselected folder?
I upload new folders with images everyday and want the files from inside these folder to be collected at one place without subfolders.
I tried to doe this with zapier but support says it's not possible to automatically grap all files from new folders.
Any Ideas?
Cheers
Dennis

Sync with S3 with s3cmd, but not re-download files that only changed name

I'm syncing a bunch of files between my computer and Amazon S3. Say a couple of the files change name, but their content is still the same. Do I have to have the local file removed by s3cmd and then the "new" file re-downloaded, just because it has a new name? Or is there any other way of checking for changes? I would like s3cmd to, in that case, simply change the name of the local file in accordance with the new name on the server.
s3cmd upstream (github.com/s3tools/s3cmd master branch) and 1.5.0-rc1 latest published version, can figure this out, if you used a recent version to put the file into S3 in the first place that used the --preserve option to store the md5sum of each file. Using the md5sums, it knows that you have a duplicate (even if renamed) file locally, and won't re-download it, but instead will do a local copy (or hardlink) from the file system name to the name from S3.

Shared folder is locked Dropbox

I'm using Dropbox and I've just tried to share folder with my PHPStorm project to another team mate by Invite to folder option. And after them PHPStorm writes me this: Could not save project!: Unable to save project files. Please ensure project files are writable and you have permissions to modify them.
And I cannot find how to get out of this.
Have you some experience about this?

S3: Move all files from subdirectories into a common directory

I have a lot of subdirectories containing a lot of images (millions) on S3. Having the files in these subdirectories has turned out to be a lot of trouble, and since all file names are actually unique, there is no reason why they should reside in subdirectories. So I need to find a fast and scalable way to move all files from the subdirectories into one common directory or alternatively delete the sub directories without deleting the files.
Is there a way to do this?
I'm on ruby, but open to almost anything
I have added a comment to your other question, explaining why S3 does not have folders, but file name prefixes instead (See Amazon AWS IOS SDK: How to list ALL file names in a FOLDER).
With that in mind, you will probably need to use a combination of two S3 API calls in order to achieve what you want: copy a file to a new one (removing the prefix from the file name) and deleting the original. Maybe there is a Ruby S3 SDK or framework out there exposing a rename feature, but under the hood it will likely be a copy/delete.
Related question: Amazon S3 boto: How do you rename a file in a bucket?

Empty files on S3 prevent from downloading using s3cmd and s3sync

I am trying to setup a backup/restore using S3. The upload sync worked well using s3sync. However, next to each folder there is an empty file with matching name. I read somewhere that this is created to define the folder structure but I am not sure about that as it doesn't happen if I create a folder using a different method s3fox etc.
These empty files prevent me from restoring the directories/files. When I do s3cmd sync, I get an error message "can not make directory: File exists" as it first creates that empty file and that fails when trying to create the directory. Any ideas how I can solve this problem?