Skip to content

Automate Backup Files From Your Public Access Folder To AWS S3 Bucket Using AWS-PHP-SDK On Windows OS

License

Notifications You must be signed in to change notification settings

Shahriar1824/auto-backup-folder-to-S3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automate Backup Files From Your Public Access Folder To AWS S3 Bucket Using AWS-PHP-SDK On Windows OS

Developed by, AZNEO LIMITED

Introduction

It helps to backup files from X minutes interval to your AWS S3 bucket using AWS-PHP-SDK. Simply upload your files to your public access folder and a PowerShell command file will monitor the files of the folder. After the X minutes interval it will check if any new files are created and it will entry into a log file for the new created file path and its name. Then another windows task scheduler will be loaded after every X minute delay and load the php file to upload the new created files to your AWS S3 bucket and entry into your aws-log entry files.

Requirements

It requires PHP 5.5+ to work properly. Also need PoweShell 4.0 or higher.

Setup Guide

  1. Set the destination folder path to watch @$watcher.Path variable and set the log file destination folder @Add-content Section in StartMonitoring.ps1 file. Also, Please set time delay on the sleep X at the bottom of the code.
  2. In app\config.php file edit with your aws public key and private secret key.
  3. In index.php file on your s3->putObject section given the S3 bucket name.
  4. Run the task.bat on windows task scheduler.

Developer

  1. Mohiuddin Hyder Khan(Advisor)
  2. Farhad Kamal(Advisor)
  3. Shahriar Rashid Mahmud(Developer)

About

Automate Backup Files From Your Public Access Folder To AWS S3 Bucket Using AWS-PHP-SDK On Windows OS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 73.0%
  • PowerShell 25.8%
  • Batchfile 1.2%