clark_kent - sync or copy command argument

Bug #2037654 reported by Josh Stompro
6
This bug affects 1 person
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/bin/clark-kent.pl --copycmd /openils/bin/syncreports.bash

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.

Revision history for this message
Galen Charlton (gmc) wrote :

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.

Revision history for this message
Jason Boyer (jboyer) wrote :

There are a good number of things that expect to be available on shared storage; would something like this where NFS shares mounted on the host are made available to containers via bind mount work for your setup?
https://www.closingtags.com/writing-to-bind-mounts-from-unprivileged-lxc-containers/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.