简体   繁体   English

如何将文件上传到Amazon S3存储桶并维护版本

[英]How to upload Files to Amazon S3 bucket and maintain versions

I am stuck in middle of the development for the application which takes backup of some folders automatically everyday and have to implement and maintain different versions of files 我陷入了应用程序开发的中间阶段,该应用程序每天自动备份一些文件夹,并且必须实现和维护不同版本的文件

For example: 例如:

  1. Backup was started on 1 April 11 PM for the first time which uploaded 10 files 备份是从4月1日晚上11点开始的,首次上传了10个文件
  2. on 2nd April, 2 more files were added and 1 existing file was updated 4月2日,添加了2个文件,并且更新了1个现有文件
  3. Likewise everyday the backup will upload all the files automatically 同样,每天备份将自动上传所有文件
  4. On 10th April, user wants to get the files of 1st April only because the file which were uploaded on 1st April was good and out of that files, 1 of the file got corrupted 在4月10日,用户只想获取4月1日的文件是因为4月1日上传的文件是好的,并且其中的1个文件已损坏

I don't want to re-upload all the same files on S3 bucket or some cloud drive if the file isn't updated but I do want to maintain the versions of the files. 如果文件未更新,我不想在S3存储桶或某些云驱动器上重新上传所有相同的文件,但我确实希望维护文件的版本。

How can I achieve it without re-uploading the file which is not changed and yet have the ability to restore the previous days version. 如何在不重新上传未更改的文件的情况下实现该功能,而该文件仍具有还原以前版本的能力。

Thanks in advance for your help!!!! 在此先感谢您的帮助!!!!

Found amazing ready code here 在这里找到了惊人的现成代码

Hope this helps!!! 希望这可以帮助!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM