sdcard-copy

command module
v0.0.0-...-2e1fd75 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 5 Imported by: 0

README

SD Card Copy script

SD Card Copy script copies assets (images, videos or any file) from the SD Card and upload the difference to an AWS S3 Bucket by checking which assets are not present there. It was created as a backup mechanism as the S3 bucket could be configured to use different Storage classes, like Glacier, to decrease the cost.

Configuration

The scripts read an assets.yaml configuration file that must exist where the script is executed as this file describes how the script will copy the assets to AWS S3.

Example:
- description: "JPG images"
  sdCardRegex: "*/DCIM/*.JPG"
  s3BucketName: "assets-backup"
  s3BucketPrefix: "Media/Pictures/JPG"
- description: "RAW images"
  sdCardRegex: "*/DCIM/*.ARW"
  s3BucketName: "assets-backup"
  s3BucketPrefix: "Media/Pictures/RAW"
- description: "Video assets"
  sdCardRegex: "*/PRIVATE/*/CLIP/*"
  s3BucketName: "assets-backup"
  s3BucketPrefix: "Media/Videos"

Notes

  • It assumes that the environment has the awscli configured
  • It requires the command find and mount
  • It assumes that the SD Card uses exfat as a type and only one SD Card is mounted.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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