Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Amazon S3 Can't Create Directory

For technical support visit https://support.2brightsparks.com/
Post Reply
pfavreau
Newbie
Newbie
Posts: 2
Joined: Wed Mar 01, 2017 6:57 pm

Amazon S3 Can't Create Directory

Post by pfavreau »

Hello, I have a minor question regarding backing up to Amazon S3. I have worked through creating IAM users with access to S3 buckets and backups work successfully. However I can't seem to be able to create directories on the fly in a Bucket through SyncBackPro, the option is always grayed out.

The same IAM user is able to create and delete buckets thought the SyncBackPro interface. But when choosing a destination and clicking the Folder to browse the Create Directory is grayed.

The same IAM user is able to create directories in the bucket using another local S3 tool (S3 Browser). So it doesn't appear to be a permission issue on AWS.

Minor issue, but adds a step when configuring backups.

Thanks.
Attachments
CreateDir.jpg
CreateDir.jpg (41.62 KiB) Viewed 6785 times
Kostas
2BrightSparks Staff
2BrightSparks Staff
Posts: 368
Joined: Thu Sep 18, 2014 2:08 am

Re: Amazon S3 Can't Create Directory

Post by Kostas »

Hi,

In Amazon S3 (and in some other cloud storages) the idea of folder is purely virtual. Every file is stored in a flat structure and what identifies as a path is the prefix of the filename itself. You can read more about this in https://docs.aws.amazon.com/AmazonS3/la ... jects.html

Therefore if you want to create a backup (using SyncBackPro) under a specific destination path then you just need to enter the path in the destination edit box, e.g. \BackupData\Myfolder\. You don't need to create any folders in advance.

Any file created on S3 will have the prefix \BackupData\Myfolder\ along with the folder name in which it is stored on your local disk.

Example:

On your source you have a folder named MyData and it includes two files: File1.txt and File2.txt. When copied over to S3 the filenames will be:
BackupData\Myfolder\MyData\File1.txt
BackupData\Myfolder\MyData\File2.txt

Since the folder path BackupData\Myfolder\MyData exists only because there are files with this prefix, the moment you delete those two files the path (folder) goes away as well.

Thanks,
Kostas
[2bs]
pfavreau
Newbie
Newbie
Posts: 2
Joined: Wed Mar 01, 2017 6:57 pm

Re: Amazon S3 Can't Create Directory

Post by pfavreau »

Great!
Thank you very much for the explanation.
Post Reply