-
Notifications
You must be signed in to change notification settings - Fork 0
faithanalog/mnestic
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
mnestic.lua keep folders in tmpfs, sync to persist storage when processes are not using them at start, copy persist to tmpfs. checks for running processes every 60s with pgrep. copies tmpfs to persist when associated process exits no support provided. may cause data loss install: - luarocks install subproc luaposix - ensure commands: rsync, pgrep, ln, date - optional: install notify-send configure: - edit mnestic.lua - set ramfs_root = directory in tmpfs - set mnestic_root = presistent storage - set targets = array of { process = name of process associated with dirs. dirs will sync after process exits directories = list of directories to sync. use `home .. "path"` for $HOME/path } run: - run mnestic.lua as user or root todo: - if user initiate system shutdown before sync finishes, data loss will occur. want a way to let shutdown wait for sync end
About
keep folders in tmpfs, sync to persist storage when processes are not using them
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published