s3-fsnotify-go

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 10 Imported by: 0

README

s3-fsnotify-go

Watches a directory for changes and uploads modified or created files to S3. Tested on Darwin, Linux and Windows 386.

Note Will use your default aws profile and the bucket must exist

Quick start

  1. Download the latest release for your platform from the Releases page.

  2. Move the s3-fsnotify-go binary to a suitable location (e.g., /usr/local/bin or a location in your $PATH).

  3. bucket=s3-bucket syncdir=~/Downloads s3-fsnotify-go

Usage

  1. Configure the go2s3.service file:

ExecStart To the appropriate path to the s3-fsnotify-go binary.

syncdir To the directiory you want to stay in automatic sync with S3 (defaults to the current directory).

bucket The Amazon S3 bucket to upload the files to (required).

  1. Copy the go2s3.service file to /etc/systemd/system/.

  2. Enable and start the service:

sudo systemctl enable go2s3.service
sudo systemctl start go2s3.service
  1. To check the service status, use: sudo systemctl status go2s3.service

  2. To view the logs generated by the service, use: sudo journalctl -u go2s3.service

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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