title: On-Premise file backup to aws
body: <p><strong>Use case:</strong>  <br>
  I have one directory on-premise, I want to make a backup for it let's say at every midnight. And want to restore it if something goes wrong.</p>
  <p>Doesn't seem a complicated task,but reading through the AWS documentation even this can be cumbersome and costly.Setting up Storage gateway locally seems unnecessarily complex for a simple task like this,setting up at EC2 costly also.</p>
  <p><strong>What I have done:</strong> <br>
  Reading through this + some other blog posts: <br>
  <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html</a> <br>
  <a href="https://docs.aws.amazon.com/storagegateway/latest/userguide/WhatIsStorageGateway.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/storagegateway/latest/userguide/WhatIsStorageGateway.html</a></p>
  <p><strong>What I have found:</strong> <br></p>
  <p><em><strong>1.Setting up file gateway (locally or as an EC2 instance):</strong></em>  <br>
  It just mount the files to an S3. And that's it.So my on-premise App will constantly write to this S3.The documentation doesn't mention anything about scheduled backup and recovery.</p>
  <p><em><strong>2.Setting up volume gateway:</strong></em> <br>
  Here I can make a scheduled synchronization/backup to the a S3 ,but using a whole volume for it would be a big overhead.</p>
  <p><em><strong>3.Standalone S3:</strong></em>  <br>
  Just using a bare S3 and copy my backup there by AWS API/SDK with a manually made scheduled job.</p>
  <p><strong>Solutions:</strong></p>
  <ul>
  <li>Using point 1 from above, enable versioning and the versions of the files will serve as a recovery point.</li>
  <li>Using point 3</li>
  </ul>
  <p>I think I am looking for a mix of file-volume gateway: Working on file level and make an asynchronus scheduled snapshot for them.<br>
  How this should be handled? Isn't there a really easy way which will just send a backup of a directory to the AWS?</p>