clark_kent - sync or copy command argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
EG 3.11.1
I'm working on setting up my app servers, and I'm trying not to use NFS for reasons[1].
If clark_kent.pl allowed me to pass it a sync or copy command, that would be run after a report is generated, then I could pass it a command to sync the new folder to wherever I needed it to go.
Like how postgresql wal archiving works.
Something like
/openils/
Then syncreports.bash would be called with at least one argument of the new reports base path. The command could do something like using scp or rsync either just on the new folder or it could rsync the whole reporter path to grab all changes.
1 - Proxmox LXC unprivileged containers currently don't support being an nfs server or client and I want to use unprivileged containers for security.
As an alternative to teaching Clark how to do it, how about trying something like lsyncd (https:/ /github. com/lsyncd/ lsyncd), sshfs, or maybe even Samba? Something like that could also help with other use cases such as dealing with local cover images if you decide to allow uploads in the future, rather than building in special cases in each Evergreen cronjob or daemon that produces output meant to be served through the app servers.