#1 2019-09-03 18:21:57

cuchillo
Member
Registered: 2019-01-03
Posts: 36

Additional commands

It would be convenient to have a command to list all the bacups in a repository separated by subfolders. It would also be convenient for a command to delete a certain backup (so remove its exclusive blocks).
This is nothing that currently cannot be done by hand. They are only suggestions.

Offline

#2 2019-09-07 11:31:02

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

Re: Additional commands

Use the --prune action.

Offline

#3 2020-06-24 01:43:18

sphen
Member
Registered: 2020-06-13
Posts: 45

Re: Additional commands

I would also echo the desire for a simple way to point xsibackup to a backup repo and output what vm's are available for restore.

Offline

#4 2020-06-24 08:51:39

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

Re: Additional commands

That's exactly how restore works...

./xsibackup --restore /some/repository/20200623033451/YOURVM /where/to/restore

You can also use bin/xsifs to extract the files, that will be slower though.

Offline

#5 2020-06-24 11:03:17

sphen
Member
Registered: 2020-06-13
Posts: 45

Re: Additional commands

Yes i understand the --restore option which needs to be pointed to a vm within a timestamped folder, but was imagining a way to list the number of restore points given a certain VM for instance. example:

./xsibackup --list "VMs(YOURVM)" /some/repository

20200622030451
20200623033451
20200624032001

or something like that. but then again maybe thats the job of a find command.

As i am starting to use backup repos i just find many time stamped folders and any number of VMs can be under each.

Offline

#6 2020-06-24 14:29:43

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

Re: Additional commands

Isn't that similar to?:

ls -la /some/repository

1.4.0.0 will include a GUI that will be conceptually different to that in Pro. Pro's GUI was ment to work through some sort of wizard, but that concept is probably twisting the GUI too much. New DC's GUI will be cleaner and more straight.

Offline

#7 2020-06-24 14:58:40

sphen
Member
Registered: 2020-06-13
Posts: 45

Re: Additional commands

Not exactly - for example if i do that on my repo right now i get:

[root@localhost:~] ls -la /vmfs/volumes/Offsite/
total 1720
drwxrwxrwx   46 root     root          4096 Jun 24 01:39 .
drwxr-xr-x    1 root     root           512 Jun 24 14:55 ..
drwx------    3 root     root          4096 Jun 19 16:57 .vSphere-HA
-rw-r--r--    1 root     root            51 Jun 17 11:45 .xsitools
drwxr-xr-x    3 root     root          4096 Jun 17 11:45 20200617114516
drwxr-xr-x    3 root     root          4096 Jun 17 11:46 20200617114624
drwxr-xr-x    3 root     root          4096 Jun 17 12:51 20200617125109
drwxr-xr-x    4 root     root          4096 Jun 17 14:28 20200617142748
drwxr-xr-x    4 root     root          4096 Jun 17 16:20 20200617162023
drwxr-xr-x    4 root     root          4096 Jun 17 16:56 20200617165554
drwxr-xr-x    3 root     root          4096 Jun 17 17:22 20200617172243
drwxr-xr-x    4 root     root          4096 Jun 17 17:23 20200617172309
drwxr-xr-x    3 root     root          4096 Jun 17 17:39 20200617173949
drwxr-xr-x    4 root     root          4096 Jun 17 17:41 20200617174111
drwxr-xr-x    3 root     root          4096 Jun 17 18:21 20200617182141
drwxr-xr-x    2 root     root          4096 Jun 17 21:02 20200617210206
drwxr-xr-x    3 root     root          4096 Jun 17 21:02 20200617210237
drwxr-xr-x    3 root     root          4096 Jun 17 21:55 20200617215509
drwxr-xr-x    3 root     root          4096 Jun 18 02:24 20200618022308
drwx------    3 root     root          4096 Jun 18 11:44 20200618114358
drwx------    3 root     root          4096 Jun 18 13:24 20200618132435
drwxr-xr-x    3 root     root          4096 Jun 18 13:25 20200618132527
drwx------    3 root     root          4096 Jun 18 18:57 20200618185725
drwx------    7 root     root          4096 Jun 19 04:40 20200618191033
drwx------    5 root     root          4096 Jun 19 14:14 20200619104231
drwx------    3 root     root          4096 Jun 19 10:43 20200619104313
drwx------    3 root     root          4096 Jun 19 14:19 20200619141951
drwx------    3 root     root          4096 Jun 19 14:20 20200619142021
drwx------    3 root     root          4096 Jun 19 14:46 20200619144550
drwx------    3 root     root          4096 Jun 19 15:09 20200619150900
drwx------    3 root     root          4096 Jun 19 15:54 20200619155451
drwx------    3 root     root          4096 Jun 19 16:17 20200619161732
drwx------    4 root     root          4096 Jun 19 16:28 20200619162800
drwx------    3 root     root          4096 Jun 19 16:44 20200619164401
drwx------    3 root     root          4096 Jun 19 16:46 20200619164623
drwx------    3 root     root          4096 Jun 19 17:15 20200619171512
drwx------    3 root     root          4096 Jun 20 11:45 20200620114512
drwx------    4 root     root          4096 Jun 24 01:29 20200624012917
drwx------    4 root     root          4096 Jun 24 01:31 20200624013145
drwx------    4 root     root          4096 Jun 24 01:33 20200624013310
drwx------    8 root     root          4096 Jun 24 14:24 20200624013504
drwx------    3 root     root          4096 Jun 24 01:36 20200624013649
drwx------    3 root     root          4096 Jun 24 01:37 20200624013738
drwx------    5 root     root          4096 Jun 24 02:37 20200624013857
drwxr-xr-x    2 root     root          4096 Jun 17 11:36 @Recently-Snapshot
drwx------    3 root     root          4096 Jun 19 17:05 Test
drwxr-xr-x   18 root     root          4096 Jun 24 14:55 data
-rwx--x--x    1 root     root       1382514 Jun 17 11:44 xsibackup
-rw-------    1 root     root          2590 Jun 17 11:45 xsibackup_id_rsa
-rw-r--r--    1 root     root           565 Jun 17 11:45 xsibackup_id_rsa.pub

which doesnt really identify VMs at all - i could do

ls -la /some/repository/*

which shows to the vm level but is hard to read. Ideally a usecase would be:

- I need to restore a vm
- query the backup repo for all possible revisions of that VM within a repository
- issue restore command for certain vm revision

depending on the backup schedule I cant assume that all of those time stamped folders contain all vms. make sense?

thanks!

Offline

#8 2020-06-24 18:40:55

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

Re: Additional commands

Current Pro version does have that feature.
We thought of adding it to the DC binary, nonetheless we want to keep it as compact and fast as possible, so that kind of functionality will probably be added to the GUI, so that the main binary remains small and fast.

Offline

Board footer