dropbox-auto-cleaner

command module
v0.0.0-...-d426b6d Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 15 Imported by: 0

README

Dropbox auto cleaner

Deletes files from your dropbox folder based on file age.

Usecase

Several video cameras store their recordings in cloud storages, like Dropbox. If don't need the recordings after some time, those can be deleted. This way, you keep your Dropbox storage in shape.

Usage and configuration

./dropbox-auto-cleaner -help
Usage of ./dropbox-auto-cleaner:
  -dry
    	If set, the app runs in dry mode. To be deleted files will be printed. No files will be deleted.
  -file-age string
    	File age: Every file inside path that is older than this setting will be deleted. Values from https://pkg.go.dev/time@go1.20.1#ParseDuration are supported. Default: '168h' (aka 7 days). (default "168h")
  -interval string
    	Interval in when the cleaning operation should be triggered. Values from https://pkg.go.dev/time@go1.20.1#ParseDuration are supported. Example value: '24h'. (default "24h")
  -path string
    	Folder path to observe and clean. Example value: '/Apps/Netatmo/Your Name'. Required flag.

Development

Makefile

build-docker                   Builds the docker image
build                          Compiles the application
help                           Outputs the help
run                            Compiles and starts the application
vet                            Runs go vet

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