Skip to content

dskaggs/docker-organize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

A Dockerized version of the file management utility Organize

Usage

Paths

  • config: directory where yaml rule file is stored
  • source: directory with files that you want to process
  • destination: directory for move and copy operations

Single Run Example

docker run -it
	-v "/path/to/config/":/root/.config/organize/
	-v "/path/to/logs/":/var/log/organize/
	-v "/source-folder/":/source
	-v "/destination-folder/":/destination
	docker-organize

CRONTAB Example

docker run -dit --rm --name docker-organize
	-v "/path/to/config/":/root/.config/organize/
	-v "/path/to/logs/":/var/log/organize/
	-v "/source-folder/":/source
	-v "/destination-folder/":/destination
	docker-organize
	"* * * * *"

The final line in the example above sets a crontab entry to run Organize once every minute.

Other sample crontab entries:

  • 0 0,4,8,12,16 * * * - Every 4 hours on the hour starting at midnight
  • 0,30 * * * * - On the hour and half hour of every hour
  • 0 12 1 * * - Noon on the first day of every month

More configurations can be generated at Crontab Guru