Please, add a --queue action to queue an existing job for execution:
./xsibackup --queue 000
xsibackup should go in background and detach from tty.
We aren't fully getting this request. Jobs are scheduled to be run at some given time through the cron. What do you mean by queue?: execute it immediately?, wait for some time?
In Linux, queuing is easier than that. If you chain jobs and you don't send them to the background, they will be run in a queue.
Sorry, I meant provide a new action to xsibackup to "fire and forget" a job interactively.
Maybe, **--queue** is not the right name. What about **--run**?
xsibackup --run 000
xsibackup should run in background and detach from the terminal.
That worked, but my feature request was for usability and readability.
Chores like that one are the source of many mistakes due to hurry, poor understanding of command line etc. Prevention is better than cure.
Talking of usability and readability - maybe for xsi 2.0 or even xsi 3.0 - what about a redesigned command line with object-action pattern in mind?
xsi help xsi host backup --file=/vmfs/volumes/nfs03/vmhost021-esxi-cfg-20210511.tgz xsi vm backup --repo=/vmfs/volumes/nfs03/backup xsi vm replica --repo=/vmfs/volumes/nfs03/replica --names=server01,server02,server03 --quiesce xsi repo check --root=/vmfs/volumes/nfs03/backup xsi repo repair --root=/vmfs/volumes/nfs03/backup xsi repo unlock --root=/vmfs/volumes/nfs03/replica --force xsi config add-key xsi config export --file=/vmfs/volumes/nfs03/xsibackup-cfg-20210511.zip
There are many turns we can take, we can't take them all at the same time though.
You are right. That was not only a way to suggest to make the cli syntax more readable, but also a call to split code.
Instead of a monolithic "xsibackup" binary, a master, light binary "xsibackup", o shorter "xsi" with real commands implemented in ad hoc binaries.
Not a new idea at all. Just to make life easier to developers and new users.
xsi repo unlock --root=/vmfs/volumes/nfs03/replica --force
would run "bin/xsi-repo" binary with command "unlock" and "--root=/vmfs/volumes/nfs03/replica --force" options.