Skip to content

societa-astronomica-g-v-schiaparelli/clean-scambiodati

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clean-scambiodati

Simple Dockerfile, based on Alpine Linux and the find command, to periodically remove the old files from a directory, based on the mtime property.

Usage

Install the latest version of Docker Engine.

Build

Build with:

docker build -t clean-scambiodati .

Run

Assuming that the data directory is /media/scambio_dati, run with:

docker run --rm -v /media/scambio_dati:/data clean-scambiodati

This command is meant to be run daily.

Systemd timer

This command can be daily run using the systemd timer run-clean-scambiodati.timer and the corresponding service run-clean-scambiodati.service. Edit them accordingly, then run

cp run-clean-scambiodati.* /etc/systemd/system
systemctl daemon-reload
systemctl --now enable run-clean-scambiodati.timer

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •