- Create an Amazon AWS account if you do not already have one:
- http://aws.amazon.com/s3/ and click Sign Up
- Once signed up and you are logged into the AWS web console you can click Services->S3 to go to the S3 storage management tool.
- Create a bucket that you will use for your SecureDocMan backups:
- Click the “Create Bucket” button in the AWS S3 page.
- Choose your bucket region. The region must match the region
your SecureDocMan instance is configured to use (typically
US East (N. Virginia) / us-east-1). Check with support if
you're unsure. - Finish with the bucket settings and save.
- Select the new bucket you just created
- After creating the bucket, go to the "Permissions" tab and
find "Object Ownership". Select "Bucket owner preferred"
and enable ACLs. New S3 buckets default to "Bucket owner
enforced" which disables ACLs — our backup system requires
ACLs to be enabled to set bucket-owner-full-control on each
backup file. - Click the “Permissions->Bucket Policy->Edit” button
- Paste the following text into the editor:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowSecureDocManUpload",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::267724245958:root"
},
"Action": [
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": "arn:aws:s3:::yourbucketname/*"
}
]
}
- Replace yourbucketname with the bucket name you created for the backups
- Click Save Changes
- Login as a Company Super-Admin user
- Click on “Settings->Companies->edit"
- Find the automated backups section and enter your bucket name:
- example: s3://yourbucketname
- If the bucket policy was done correctly you should see a response stating that your company settings were saved. You are now automatically backing up documents to your new bucket. If you go back to the bucket list now and refresh the page you should see our test file.
- If you receive an error you may have entered your bucket name wrong or generated a policy incorrectly.
- If you experience any issues during this process you may contact us at support@securedocman.com and we will be happy to assist.
Your files will show up in the S3 Bucket with a folder
structure like this:
/mybucket/doc/000/000/001/000/111/123/12312/original/report.pdf
Which relates to:
/mybucket = your bucket name
/doc = the folder we place your documents in
/000/000/001 = your company ID of 1
/000/111/123 = the document ID of 111123
/12312 = the revision (document file) ID
/original/ = the revision folder
/report.pdf = the original filename
- CyberDuck (free FTP client)
- AWS Console (web based)
- AWS Command Line Interfact (aws-cli)
- S3 Command Line Tool (s3cmd)
- Download and install the free CyberDuck FTP client: https://cyberduck.io
- Run CyberDuck and click the Open Connection button
- Choose S3 Amazon Simple Storage Service
- Enter your S3 access key id
- Enter your S3 secret access key (see AWS Security Credentials Documentation)
- Click Connect
- Locate your bucket, right-click and select "Download As.."
- Choose a location and click “Download"
- The files will begin to copy to your local computer into the location specified.
0 Comments