On Sat, Apr 03, 2021 at 09:42:49AM -0700, balin wrote: > Hi, > I urgently need to backup (and version control) my by now relative > elaborate salt config. > > The plan is to manage it in a `git` repo in a dedicated Vm (whether I push > it to some private online repo still needs some contemplation). > A shell script will > a) copy/sync the salt dir to the `git` vm > b) execute git add/commit(and possibly push) there > > >From this proposition the need arises to sync an entire directory from > `dom0` to the `git` vm. I found > `https://www.qubes-os.org/doc/copy-from-dom0/` and consequently > `qvm-copy-to-vm > <target_vm> <file>` ... > I can see a workflow of packing the salt dir to a *.zip or some such, > copying that, unpacking it on the `git` vm through `qrexec` and preoceeding > with git operations ... somewhat inelegant. > Is there any other means of syncing an entire directory tree from `dom0` to > a vm? > > Thanks for any pointers. > > Sincerely, Joh >
qvm-copy-to-vm will take a directory as an argument. You will have to then sync the files from QubesIncoming/dom0 to your git repo, but that is trivial. -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20210403173559.GE32370%40thirdeyesecurity.org.