s3-backup

module
v0.0.0-...-7529ad9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2023 License: Apache-2.0

README

Pseudo Code

  • get source folder and the destination folder from settings
  • recursively loop over only directories within the source folder and add them to a list
  • do the following for each subdirectory
    • create a destination folder name based on source directory
    • get all keys for files in s3 for the destination folder (this can be done in parallel to speed up the listobjects call since it limits to 1000keys)
    • if keys don't exist no comparison needed
      • loop over all files
      • compress (optionally encrypt) and upload file
    • if keys exist we need to compare files
      • loop over all files
      • compare file last modified timestamp with object's last modified time
      • possibly add size check as well using gzip header size
      • compress (optionally encrypt) and upload file

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL