/backup-and-sync-scripts

Backup & Sync scripts for cloud storage providers

Primary LanguagePythonMIT LicenseMIT

Backup Scripts

AWS S3

  1. Make virtual enviroment and install python requirements make setup
  2. Create a .boto config file in your home directory with the following content
    [Credentials]
    aws_access_key_id = <your aws access key id>
    aws_secret_access_key = <your aws secret access key>
  1. Run the commands by:
    • Sync folder to bucket - make aws ARGS="-f <bucket name> <root folder>"
    • Sync bucket to folder - make aws ARGS="-b <bucket name> <root folder>"
    • Delete file in bucket - make aws ARGS="-d <bucket name> <file path>"
    • Restore file in bucket - make aws ARGS="-r <bucket name> <file path>"