©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2021-05-05 15:23:48

ealib
Member
Registered: 2021-04-14
Posts: 21

Queue an existing job

Please, add a --queue action to queue an existing job for execution:

./xsibackup --queue 000

xsibackup should go in background and detach from tty.

Offline

#2 2021-05-06 07:54:21

admin
Administrator
Registered: 2017-04-21
Posts: 1,825

Re: Queue an existing job

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.

Offline

#3 2021-05-06 08:33:14

ealib
Member
Registered: 2021-04-14
Posts: 21

Re: Queue an existing job

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.

Offline

#4 2021-05-07 12:21:24

admin
Administrator
Registered: 2017-04-21
Posts: 1,825

Re: Queue an existing job

What about

./000 &

Offline

#5 2021-05-11 06:30:44

ealib
Member
Registered: 2021-04-14
Posts: 21

Re: Queue an existing job

Thanks.

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.

Offline

#6 2021-05-11 06:47:02

ealib
Member
Registered: 2021-04-14
Posts: 21

Re: Queue an existing job

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

et cetera.

Offline

#7 2021-05-11 09:04:43

admin
Administrator
Registered: 2017-04-21
Posts: 1,825

Re: Queue an existing job

There are many turns we can take, we can't take them all at the same time though.

Offline

#8 2021-06-03 09:07:09

ealib
Member
Registered: 2021-04-14
Posts: 21

Re: Queue an existing job

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.

For instance:

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.

Offline

Board footer