Skip to content

millerlogic/lazymove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

lazymove

Lazily move files from one directory to another. This is useful when you have slower long-term storage but want to be able to write new files quickly. You can write to the fast disk, and use lazymove to lazily and asynchronously move the files to the slower storage, such as a network mount.

See godoc for API usage, or use the command:

Usage: ./lazymove [Options...] <SourceDir> <DestDir>
Options:
  -minDirAge duration
    	Minimum age to remove empty dirs (default 1h0m0s)
  -minFileAge duration
    	Minimum age to move files (default 5m0s)
  -timeout duration
    	How often to look for files to move (default 5m0s)

The mover will lazily move files from SourceDir into DestDir. It will do this move iteration each timeout, only moving (copy, delete) files from SourceDir to DestDir with modification times older than minFileAge, and only removing empty directories from SourceDir with times older than minDirAge.

About

Lazily move files from one directory to another

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages