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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#126 Re: General matters » Log format » 2022-05-11 14:44:28

The simplest answer to your question is: use tail from within the Linux command line (below example for 200 lines).

tail -n200 /scratch/XSI/XSIBackup-DC/var/log/xsibackup.log

Nonetheless there is a conceptual flaw on your question, as an editor has been made to visualize contents in text files, not to interpret them.

You would need some kind of visualizer, like a browser displays (interprets) HTML whereas an editor shows the actual HTML markup.
This post will help you address the issue.
[url]https://www.linuxquestions.org/questions/linux-software-2/which-text-editor-supports-ansi-escape-sequences-693448/[/url]

#127 Re: General matters » The license.key file is more than 1 year older than the binary » 2022-05-09 20:39:05

You have to generate a new key, re-downloading is not enough. To liberate the slot corresponding to the MAC you want to renew, just contact us with the MAC. Our support department already contacted you on this, are you receving our replies?.

#128 Re: General matters » Backup room » 2022-05-04 10:48:32

New (c)XSIBackup-Free does allow spaces in any part of the VM or virtual disks paths. Download our new [b][url=https://33hops.com/xsibackup-vmware-esxi-backup.html]VMWare Backup software[/url][/b] here

#129 (c)XSIBackup-Pro & DC bug tracker » Resizing terminal window in a job causes SIGPIPE and halt » 2022-04-25 17:36:28

admin
Replies: 0

Some terminals may raise the SIGWINCH(28) signal when the TTY window is resized amidst an interactive job session when the job is running.

This would lead to the SIGWINCH signal being trapped by the signal handler and the job being halted abruptly causing a SIGPIPE.

This can happen anywhere in the job session, although affects mainly jobs being run over an IP link.

We have fixed this in version 1.5.1.14 so that you can resize the terminal window freely while the job is running. The SIGWINCH signal is just ignored now.

#130 Re: General matters » replica DR » 2022-04-25 14:46:47

Right!
Anything regarding the old VMs is also something to be done, namely: turn them off and unregister them and in special removing the old cron jobs, as they could overwrite your new production VM with old data from the old VMs.

#131 Re: General Matters » Would --del-dirs do deletion before start making backup? » 2022-04-13 12:39:26

Please try to try things on your own to give yourself the answer.
We can help you understand how some things work or what are the solutions to your needs, you can easily find out what the above will exactly produce on your own though.

#132 Re: General matters » XSIBackup job change - accepted automatically? » 2022-04-13 12:36:37

It should, just as long as your cond daemon is running OK.
verify with

ps -c | grep crond

There should only be one crond instance.

#133 Re: General matters » replica DR » 2022-04-13 12:32:16

It is simpler than that.

When you use the --options=R argument you can indeed register the VM _XSIREP. That VM runs on top of a snapshot called [b]donotdeleteme[/b]. We believe this is a fair enough description on what should never happen to that snapshot smile

The reason to not delete the snapshot is to allow the syncronization between the primary VM and the one at the hot site to go on seamlessly. If for some reason you would delete that snapshot, the (c)XSIBackup client would detect it and trigger a full sync again and then create the [b]donotdeleteme[/b] snapshot again.

If you ever need to make the hot site production. Just switch off the VMs at the former production site and turn on the VMs at the hot site. That's all.

At this point when you are sure that the former VMs are not the production ones any more you can detele the [b]donotdeleteme[/b] snapshot and use the replica VMs normally.

Whether you rename them or not is up to you. It seems reasonable to remove the tail _XSIREP though.

Off course, anything regarding disabling the old cron jobs and making sure that nothing in the previous setup does anything that you don't want to happen is also mandatory, nonetheless designing the procedure is up to you. Depending on your environments you may need to do things one way or another.

#134 Re: General matters » XSIBackup job change - accepted automatically? » 2022-04-12 10:48:09

Jobs are named 000 to 999 as a fixed length three digit file name. If you use your own names you may hit some problem further on, as some features will expect jobs to be named that way.

Yes, job files are bash scripts, you can edit them and changes are immediate. If you have already scheduled your job file, there's nothing more to do. If you need your crontab to be persistent across reboots you must run.

./xsibackup --install-cron

And add your schedules to the local crontab at /vmfs/volumes/xsi-dir/conf/root-crontab, then run the --update-cron command

./xsibackup --update-cron

This will copy the contents of your local crontab to the (c)ESXi crontab at /var/spool/cron/crontabs/root.

#135 Re: © XSITools » SHA1 chunk hashes check failed error » 2022-04-10 17:12:36

(c)XSIBackup-Classic has been deprecated.
Your version is not even the latest one available, you should upgrade.
You have not published your job nor the output, just one error.
This does not seem to be an XSITools related error but an Rsync replica related one.
Without all the details on your job and output there is very little that we can do to help you but to make asumptions and offer general advice.

Asuming that this is indeed an Rsync replica and that you have used the --certify-backup option to compare checksums on both ends, you should read this post, it is rather generic and can be used to comprehend how you should interpret a hash mismatch.

[b][url=https://33hops.com/xsibackup-disk-checksum-verification-silent-corruption.html]Checksum verification and silent corruption[/url][/b]

Read it, not only our post but also the [url=https://www.usenix.org/legacy/event/fast08/tech/full_papers/bairavasundaram/bairavasundaram_html/main.html]study on data corruption[/url] and if you still have some doubt reach us back here.

#136 Re: General matters » XSIBackup-DC 1.5.1.12: --repair crashes with "sort: out of memory" » 2022-04-10 10:51:37

We had posted a really long answer on this, but the problem has too many variables and too many things that we still don't know.

(c)ESXi's sort is not going to do it for such a big amount of data. Run the --repair command from the server side instead.
If you need some further help contact support directly to receive more personalized support.

#137 Re: General matters » XSIBackup-DC 1.5.1.12: --repair crashes with "sort: out of memory" » 2022-04-09 11:06:46

We have checked the [b]xsilib[/b] issue and we believe it to be virtually impossible that xsilib is invoked when executing xsibackup in a Linux environment, as the environment is checked before actually calling [b]xsilib[/b] and only if ESXi is detected this auxiliary library is used. The possibilities that you get a false positive for ESXi detection in Linux are zero.

Maybe there's some important piece of information that we are missing.

Maybe you are still running the command from within (c)ESXi. Please, run your --repair command from within the Linux shell.

#138 Re: General matters » XSIBackup-DC 1.5.1.12: --repair crashes with "sort: out of memory" » 2022-04-09 10:51:37

Appliances such as (c)Synology and Qnap are great options when you need to provide some quick storage in the form of NFS or iSCSI, nonetheless they are closed down propietary environments. For what you want to do and the amount of data that you want to handle a full Linux OS with absolute control is a must.

The sort binary in Synology lacks the T option. You have a statically compiled sort binary in the /bin dir of the installation package that you can copy to your /usr/bin dir in the Synology appliance. Just keep a copy of the old one.

You don't need the xsilib binary in Linux, it is a helper only used when (c)XSIBackup is run in (c)ESXi. We don't know why it is being called in Rocky Linux, it could be a bug, we'll check that. In any case you can consider that strace output to be an spurious error. [b]Xsilib[/b] is used to traverse directory entries, it is not related to creating the .blocklog.tmp file.

If your --repair command is running fine and it's not returning any errors you can consider it to be running fine. As said, repair will just re-account the blocks in the restore points and rebuild the .blocklog file. We have designed all those files in text form so that you can actually see what is inside and how things work.

You could even use simple bash tools to partially rebuild the .blocklog file for some restore point only.

#139 Re: General matters » XSIBackup-DC 1.5.1.3 : Error parsing job » 2022-04-08 09:55:57

Thank you for your feedback. We will revise this odd behaviour and fix it ASAP.
We must say that the order of the first arguments, which, as you know, are fixed in position (action, source and target) is hardcoded into the GUI scripts, which would make it extremely rare that some other argument takes precedence in the chain of arguments, still, it's obvious that you are experiencing this problem.
Thank you very much for the exact sequence that you followed, this will be key to find the bug.

UPDATE:

We have detected that it does happen when adding all options in a row. Until we release a fix (in short), editing the job file manually is the simplest solution. Also deleting the offending options and adding them back again by editing the job file seems to work well.

PROBLEM DESCRIPTION:

The problem seems to be in the job argument ordinal. As soon as 10 is reached the arguments are sorted by the argument Id ordinal, but they are sorted alphabetically instead of numerically making --description (10) take precedence to --backup (2).

We will hold launching v. 1.5.1.13 and include the fix. Sorry about the inconvenience.

QUICK FIX:

You can easily fix the issue on your own by just adding one character to the GUI code.

1/ Look for the file gui/src/jobs
2/ At line 505 you should find the function [b]setJobArg()[/b]

setJobArg(){
    CHKARGU="$( echo "$CURRJOB" | awk -F ';' -v key=$1 -v OFS=';' '{if($2==key){print $0}}' | wc -l )"
    if [ "$CHKARGU" -gt "0" ]
    then
        if [ "$2" == "DELETE" ]
        then
            CURRJOB="$( echo "$CURRJOB" | awk -F ';' -v key=$1 -v OFS=';' '{if($2!=key){print $0}}' )"
        else
            VAL="${2}";VAL="$( Trim "$VAL" )";if [ "${VAL}" == "" -o "${VAL}" == "()" ];then VAL="<none>";fi
            CURRJOB="$( echo "$CURRJOB" | awk -F ';' -v key=$1 -v val="$VAL" -v OFS=';' '{if($2==key){$3=val};print $0}' )"
        fi
    else
        if [ "$2" != "DELETE" ]
        then
            VAL="${2}";VAL="$( Trim "$VAL" )";if [ "${VAL}" == "" -o "${VAL}" == "()" ];then VAL="<none>";fi
            CURRJOB="$( echo "$CURRJOB" | awk -F ';' -v key="$1" -v val="$VAL" -v OFS=';' '{print $0};END{printf "%s;%s;%s;option\n", (NR+1), key, val}' | sort -u )"
        fi
    fi
}

3/ The last CURRJOB assignment

CURRJOB="$( echo "$CURRJOB" | awk -F ';' -v key="$1" -v val="$VAL" -v OFS=';' '{print $0};END{printf "%s;%s;%s;option\n", (NR+1), key, val}' | sort -u )"

Is lacking an "n" argument at the last sort statement, just add it and leave it like this:

CURRJOB="$( echo "$CURRJOB" | awk -F ';' -v key="$1" -v val="$VAL" -v OFS=';' '{print $0};END{printf "%s;%s;%s;option\n", (NR+1), key, val}' | sort -un )"

#140 Re: General matters » XSIBackup-DC 1.5.1.12: --repair crashes with "sort: out of memory" » 2022-04-08 09:46:47

Is it 20.00TB of data on disk? or nominal data. If it is data on disk, you should be keeping your repos smaller to avoid resource usage growing wild when performing such actions as --repair or --prune. It is OK to just store backups, as the use of memory is extremely limited, in the order of some tens of megabytes.

What we mean is that --backup and --replica actions use a very limited amount of memory while --repair and --prune in special use a massive amout of memory.

You should be using a Linux host to accumulate that amount of data. (c)ESXi is not the adequate OS to host deduplicated data for many reasons, being the most important one that VMFS is not the right File System to store deduplicated repositories. We always take the chance to explain this in all related posts.

You need a fast file system and a real file system to store millions of chunks of data with maximum efficiency. We recommend that you use XFS or ext4 should XFS not be available. The Operating Systems that we recommend to store big repositories are CentOS 6/7 and Rocky Linux 8

Even if you use some NFS mount with some XFS or ext4 FS on the remote volume, trying to --repair from the (c)ESXi host is highly inefficient. Although NFS might look like a local file system to the eye of the user, it is not. Every system call you place on the remote storage will suffer from the corresponding network latency. This is OK when working with a limited set of files, like (c)ESXi does, nonetheless if will be extremely inefficient and unfeasible when working with big deduplicated repos.

On top of that the collection of utilities that come with (c)ESXi are a limited set of Busybox, they are in turn modified and stripped from some of their functions in some cases. Thus the sort binary that is throwing your -out of memory- error is not a full version of the well known Linux [b]sort[/b] utility.

(c)ESXi is not a full OS. It is a hypervisor. The use it makes of memory is not what you would expect from a full fledged OS. It will not use all available memory to run local binaries like [b]sort[/b]. This is not a problem to make your backups, still it will be when trying to perform operations that require massive amounts of CPU and memory. Thus, use the backup server to perform such actions instead of (c)ESXi.

As an excerpt:

- Host your deduplicated repositories in Linux. You may attach your linux box over NFS and perform local backups or send your backups over IP, that does not matter.
- Keep your backup repositories below a manageable size. This will be proportional to your hardware posibilities.
- Run your --repair and --prune operations from within the Linux backup server.

Apart from that there will still be a limit to what you can handle from within Linux, obviously the limit will be way higher than what you could achieve from within (c)ESXi over an NFS link. As (c)XSIBackup evolves it will become more powerful and refined, mostly by getting rid of the external binary dependencies and carrying out some actions by using more "built for the purpose" algorithms.

UPDATE:
Nonetheless, for the case being, --repair is a rather straight action. It collects blocks in the .map files on each restore point, loads them into a memory buffer, removes duplicates and checks for the physical blocks at the same time that it rewrites those blocks to the /data/.blocklog file or main block manifest file.

In your particular case --repair is failing in the first stages, while collecting blocks, it just can't grow the buffer any further, as the local shell is limited in resources when compared with what you want to achieve as previously explained. The solution is to run the very same command from the Linux backup host.

If you are hosting 20TB of data and, assuming that your compression ratio is just 90% (way below what (c)XSIBackup can achieve), you are managing 200TB of nominal data, which implies loading more than 5 billion block hashes into the memory buffer => 2.14 * 10^11 blocks. In your particular case you should devise a backup system, in special a backup host, that can really hold and work with that amount of data. That would require some dedicated M2 temp disk as cache in the (c)ESXi server (only if your VMs are really big) and a big amount of RAM in the backup host as well as a last generation CPU. The faster the disks are the better obviously, thus using M2 as the target of your backups would also be a great help.

#141 Re: Feature requests & improvements » Email subject » 2022-04-07 09:54:54

You really already have them in the xsibackup.db file in the var/log/backupdb.log file. We call it the [url=https://33hops.com/xsibackup-operations-database-registry.html]Operations Database Registry[/url].

As soon as the job ends a new entry is added to this file with all details on the backup.

We could autoreference this values in the job, in any case, any solution would need to be open, so that you can use this variables with any available protocol, not only SMTP.

#142 Re: Feature requests & improvements » Email subject » 2022-04-06 15:02:26

Well, the e-mail subject is limited in size. We have in our to do list adding some kind of job variables that you can use in your job: job Id, session Id, VM list, etc... Still, that should probably go in the e-mail body where there aren't so much constraints in size.

It's not only the the subject field is limited in size but that it might be truncated or modified by some software like e-mail filters.

#143 Re: General matters » XSIBackup Free 100 GB limit error for 50 GB VM » 2022-04-04 12:34:35

This is a very simple matter. (c)XSIBackup just accounts the amount of data and sets that limit. There's nothing hidden and nobody else has reported any similar issue. Examine your output thoroughly in search of clues and if you can still not find out where your data in excess is coming from, publish it here and wait for us to try to offer you some clues.

#144 Re: General matters » Error code 266 at file dedup-in.c » 2022-04-01 11:09:37

Anybody coming here because of the error:

| Error code 266 at file dedup-in.c, line 266 | Error             |
| description: can't open input file:  

It is due to (c)XSIBackup not being compatible with local datastore names containing spaces. We have released a fix in 1.5.1.12, just download and upgrade your installation.

Still, we encourage you to keep your datastore names short, concise and free of any special character.

(*) We deleted some previous entries in the post containing file listings, they are no longer needed and they expose some details on your setups.

#145 Re: General matters » 'Preparing to execute job'...forever » 2022-04-01 11:01:18

Well, (c)ESXi is what it is, it's a Unix like Hypervisor. It offers a GUI, still that doesn't mean that the OS and the GUI are the same thing. The same is applicable to Windows, Linux or any other OS or system offering a GUI. A GUI is always an abstraction layer by default.

That doesn't mean that our GUI is not reliable, just that you hit a bug in one of the underlying OS components, in this case the [b]date[/b] binary that requires that you edit the job file manually.

That in turn requires that you know what an (c)XSIBackup job file is (a bash script), where it is located: [b]<install-root>/etc/jobs/[/b] folder and that you know how to use the [b]vi[/b] editor to tweak the job as proposed by our workaround.

We will include the workaround in the GUI, still until we release a fix, the only way you have to sort the problem around is by editing the job.

What we meant in our previous answer is that: if you just use the GUI to create and manage jobs, you can barely access 10% of the possibilities our software offers due to the fact that its very nature is being a command line utility. The GUI offers a basic set of scripted utilities, our software is a tool though, thus you can script your own.

#146 Re: General matters » Segmentation fault with restoring VM over IP » 2022-03-31 16:02:46

Thank you.
We have conducted some tests using your very same (c)XSIBackup and (c)ESXi version in CentOS 7.0 as an IP backend with no issue.

We'll take the chance to revise the main steps involved in achieving your goal.

As said, using the root user is the recommended procedure, as it will abstract you from having to deal with the permissions of the elements involved in the process. On the other hand a public RSA key authentication over SSH is, by today's standards, the most secure way to access any remote OS.

You start by installing some fresh CentOS 7.0 OS and updating it via yum: [b]yum update -y[/b].

Now you can directly exchange your public (c)XSIBackup RSA key with the just installed host.

From the (c)ESXi box:

./xsibackup --add-key root@a.b.c.d:22

(*) Do make sure to enable SSH port in the (c)ESXi firewall, both in and out.

We start by exchanging the root key, as only the root user will be able to automatically update the remote binaries: xsibackup and base64
We then create the backup user in the remote CentOS 7 backend:

[root@localhost ~]# useradd backup1
[root@localhost ~]# passwd backup1
Changing password for user backup1.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

Create a dir to store your backups and take ownership of the home folder for this user:

mkdir -p /home/backup1/backups
chown -R backup1:backup1 /home/backup1

Add the (c)XSIBackup RSA public key to the [b]backup1[/b] user's authorized_keys file, namely: exchange the key again for this user.

From the (c)ESXi host:

./xsibackup --add-key backup1@a.b.c.d:22

The key contained within the [b]xsibackup_id_rsa.pub[/b] file in the (c)XSIBackup installation dir will be added to the remote OpenSSL file: /home/backup1/.ssh/authorized_keys, that is: the file containing the authorized keys for the [b]backup1[/b] user. You can also do that manually.

Now you should be able to access the remote system passwordlessly using the [b]backup1[/b] user. You can easily check that by running the last --add-key command again.

Still, you won't be able to backup to that host yet, as you still need to install the [b]xsibackup[/b] binary to act as the server side of your backups or replicas. Again, you can install manually or just use the built in automatic process.

To install the binaries to the remote host, just run some --backup or --replica to some folder on the remote CentOS 7 backup server by using the root user

./xsibackup --backup "VMs(YOUR-VM)" root@a.b.c.d:22:/home/backup1/backups

The required binaries will be updated and assigned 0755 permission.
Now run the same backup command again by using the [b]backup1[/b] user.

./xsibackup --backup "VMs(YOUR-VM)" backup1@a.b.c.d:22:/home/backup1/backups

We believe you already got to this point.

Now to restore any of the backup points for [b]YOUR-VM[/b] in the remote CentOS 7 server just create some local folder to host the restores.

mkdir -p /vmfs/volumes/datastore1/restores/YOUR-VM

And then restore the VM to the above generated folder.

./xsibackup --restore backup1@a.b.c.d:22:/home/backup1/backups/20220331122508/YOUR-VM /vm
fs/volumes/datastore1/restores/YOUR-VM

You will see some output like the one below

[root@localhost:/scratch/XSI/XSIBackup-DC] ./xsibackup --restore backup1@a.b.c.d:22:/home/backup1/backups/20220331122508/CRM /vm
fs/volumes/datastore1/restores/YOUR-VM
|---------------------------------------------------------------------------------|
||-------------------------------------------------------------------------------||
|||   (c)XSIBackup-Free 1.5.1.11: Backup & Replication Software                 |||
|||   (c)33HOPS, Sistemas de Informacion y Redes, S.L. | All Rights Reserved    |||
||-------------------------------------------------------------------------------||
|---------------------------------------------------------------------------------|
                   (c)Daniel J. Garcia Fidalgo | info@33hops.com
|---------------------------------------------------------------------------------|
System Information: ESXi, Kernel 6 Major 7 Minor 0 Patch 0
-------------------------------------------------------------------------------------------------------------
/!\ Running XSIBackup in a nested host is not supported
-------------------------------------------------------------------------------------------------------------
Remote system: Linux
-------------------------------------------------------------------------------------------------------------
PID: 2102784, Running job as: backup1
-------------------------------------------------------------------------------------------------------------
Run job as 'root' to automatically update the remote binaries
-------------------------------------------------------------------------------------------------------------
The restore directory: /vmfs/volumes/datastore1/restores/YOUR-VM does not exist
Do you wish to create it? (y/n): y

-------------------------------------------------------------------------------------------------------------
Restoring VM CRM from 192.168.3.221
-------------------------------------------------------------------------------------------------------------
NUMBER                                                                  FILE            SIZE       PROGRESS
-------------------------------------------------------------------------------------------------------------
1/20                                                               CRM.vmx.tmp       2.45 KB | Done   0.00%
-------------------------------------------------------------------------------------------------------------
2/20                                                             vmware-49.log     189.61 KB | Done   0.00%
-------------------------------------------------------------------------------------------------------------
3/20                                                                  CRM.vmdk     500.00 B  | Done   0.00%
-------------------------------------------------------------------------------------------------------------
4/20                                                             CRM-flat.vmdk      20.00 GB | Done  99.99%
-------------------------------------------------------------------------------------------------------------
5/20                                                               CRM-aux.xml      13.00 B  | Done  99.99%
-------------------------------------------------------------------------------------------------------------
6/20                                                          CRM.vmdk.extents       8.30 KB | Done  99.99%
-------------------------------------------------------------------------------------------------------------
7/20                                                                  CRM.vmxf     258.00 B  | Done  99.99%
-------------------------------------------------------------------------------------------------------------
8/20                                                                 CRM.nvram       8.48 KB | Done  99.99%
-------------------------------------------------------------------------------------------------------------
9/20                                                                  CRM.vmsd      46.00 B  | Done  99.99%
-------------------------------------------------------------------------------------------------------------
10/20                                                            vmware-51.log     161.16 KB | Done  99.99%
-------------------------------------------------------------------------------------------------------------
11/20                                                     CRM-flat.vmdk___hash      82.00 B  | Done  99.99%
-------------------------------------------------------------------------------------------------------------
12/20                                                                  CRM.vmx       2.45 KB | Done  99.99%
-------------------------------------------------------------------------------------------------------------
13/20                                                               vmware.log     241.14 KB | Done  99.99%
-------------------------------------------------------------------------------------------------------------
14/20                                                            vmware-47.log     374.03 KB | Done  99.99%
-------------------------------------------------------------------------------------------------------------
15/20                                                            vmware-48.log     325.92 KB | Done  99.99%
-------------------------------------------------------------------------------------------------------------
16/20                                                             CRM.vmsd.tmp      46.00 B  | Done  99.99%
-------------------------------------------------------------------------------------------------------------
17/20                                                            vmware-46.log     172.79 KB | Done  99.99%
-------------------------------------------------------------------------------------------------------------
18/20                                                            vmware-50.log       1.45 MB | Done 100.00%
-------------------------------------------------------------------------------------------------------------
19/20                                                                 CRM.vmx~       2.45 KB | Done 100.00%
-------------------------------------------------------------------------------------------------------------
20/20                                                    CRM-Snapshot1470.vmsn      27.37 KB | Done 100.00%
-------------------------------------------------------------------------------------------------------------
Restore end date: 2022-03-31 12:52:38
-------------------------------------------------------------------------------------------------------------
Time taken:     00:08:11 (491 sec.)
-------------------------------------------------------------------------------------------------------------
Speed:           41.72 mb/s
-------------------------------------------------------------------------------------------------------------
Removed host <tmp> dir        OK
-------------------------------------------------------------------------------------------------------------
Removed prog <tmp> dir        OK
-------------------------------------------------------------------------------------------------------------
Removed PID                   OK

To be able to restore your VM you just need the [b]backup1[/b] user have:

1/ Execute rights on the remote binaries. This is assigned by default when you use the root user to perform some test backup.
2/ Read access to the backup respository.

Of course, we are posing this example asuming that you are logged in the (c)ESXi server as root. It's not the same the local user than the remote.

To detect any possible issue in the SSH tunnel, you can debug it by adding the --debug-print argument to your restore backup, which will print the details on the remote commands launched:

./xsibackup --restore backup1@a.b.c.d:22:/home/backup1/backups/20220331122508/YOUR-VM /vm
fs/volumes/datastore1/restores/YOUR-VM  --debug-print

You can also run some SSH command to verify that you can access the remote files

From the [b]/scratch/XSI/XSIBackup-DC[/b] dir:

ssh -i xsibackup_id_rsa backup1@a.b.c.d "cat /home/backup1/backups/20220331122508/YOUR-VM/YOUR-VM.vmx.map" | cat > /tmp/YOUR_VM.vmx.map

This command should bring your remote [b]YOUR-VM.vmx.map[/b] file to the /tmp dir. It should contain a 40 byte SHA-1 hash.

To increase verbosity in the SSH tunnel and get all the details, in case you are getting some error:

ssh -vvv -i xsibackup_id_rsa backup1@a.b.c.d "cat /home/backup1/backups/20220331122508/YOUR-VM/YOUR-VM.vmx.map" | cat > /tmp/YOUR_VM.vmx.map

#147 Re: General matters » Segmentation fault with restoring VM over IP » 2022-03-30 18:40:58

And your (c)ESXi version?. We can try to reproduce your environment, still it's difficult to do so when we don't know it smile

#148 Re: General matters » XSIBackup-DC 1.5.1.9: Error code 216 signal.c Error code 1537 common.c » 2022-03-30 09:49:13

The job is running OK, it's the final part where the VM is registered where you are having some issue.
Maybe some duplicate name in the registry?

You don't need [b]--backup-how=hot[/b], it's the default behavior.

We need some more verbosity, run the job in the command line to debug it and add [b]--debug-print[/b] at the end to have the details on the command that fails.

./xsibackup --replica=cbt "VMs(vm)" "/backup" --options=R --quiesce --config-backup --debug-print

Update:
Looks like the problem is related to creating the remote replica snapshot. This is required to be able to switch the remote VM on without affecting the remote clone consistency and should never be deleted. It is in fact called "xsirep_donotdelete".

Your simplest workaround consists in unregistering the _XSIREP VM and deleting the clone folder from disk, this will recreate the remote cloned VM from scratch copying all data again.

#149 Re: General matters » XSIBackup-DC 1.5.1.9: Error code 216 signal.c Error code 1537 common.c » 2022-03-30 08:56:18

All snapshots are removed when you engage a VM in a CBT job. Please, post the job if you want a more thorough analysis.
As general advice: increase verbosity and/or prepend [b]strace[/b] to your command to have detailed system call level information on what's going on.

#150 Re: General matters » 'Preparing to execute job'...forever » 2022-03-29 10:06:59

You can't effectively use our software by just running the GUI. The GUI is a helper layer for productivity, it doesn't pretend that you abstract yourself from knowing how to deal with the command line.

In your case, your (c)ESXi version is lacking a date command modifier and you need to tweak that manually.

Board footer