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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#2 Re: General matters » XSIBackup-DC 1.5.1.4: Error saving backup job » 2022-02-09 16:15:31

Hi,
just wanted to report that the issue is still present event with version 1.5.1.7.

Furthermore I noticed that in a job with the --exclude paramether, the regex is saved without quotas at all. Is this the correct behaviour?

#3 General matters » XSIBackup-DC 1.5.1.4: Error saving backup job » 2021-12-07 14:37:07

marco.pernigo
Replies: 4

Hi,
I've encountered this weird error while saving the job from the command line: basically the saved script under etc/job/NNN, is missing a double quote for the description argument. This happens with the --backup option but not --replica for some reason..

Command (formatted for readability):

./xsibackup 
  --backup=cbt "VMs(zimbra)"   
  root@****:22:/vmfs/volumes/***/xsi-backup/zimbra/ 
  --description="backup zimbra to ** ****/xsi-backup"
  --compression=yes 
  --rotate=30 
  --backup-how=hot 
  --use-smtp=1 
  --mail-to="alert@****" 
  --remote=path=/usr/bin/xsibackup 
  --save-job=300

etc/jobs/300:

/vmfs/volumes/618b8705-22a9864e-05f0-0cc47a488786/XSI/XSIBackup-DC/xsibackup \
--backup \
"VMs(zimbra)" \
"root@****:22:/vmfs/volumes/****/xsi-backup/zimbra" \
--description=backup zimbra to ** ****/xsi-backup" \
--compression=yes \
--rotate=30 \
--backup-how=hot \
--use-smtp=1 \
--mail-to=alert@**** \
--remote=path=/usr/bin/xsibackup \
>> /vmfs/volumes/618b8705-22a9864e-05f0-0cc47a488786/XSI/XSIBackup-DC/var/log/xsibackup.log 2>&1

See that the --description in the file is missing a double quote after --descritpion=
As a quick workaround I'm trying editing the file and addin the missin char

Running from "VMware ESXi 6.7.0 Update 3" to "VMware ESXi 6.7.0 Update 3"

#4 Re: General matters » Prune/check/info cannot see directory from cifs device (solved) » 2021-07-12 13:13:41

Ok, thanks for the help.
The dynamic target strategy could be a nice workaround to our problem.

Yes, we have local backups and there's no problem there. This was about a off-site backup, otherwise yes, a new hd wouldn't have been a problem

Thanks for the help!

marco

#5 Re: General matters » Prune/check/info cannot see directory from cifs device (solved) » 2021-07-09 14:46:24

About our system:
we have a couple of vmware machines in a datacenter and an external storage box (from Hetzner) for cheap storage. Since the storage box is not mounted on the vmware machine we have access to it from a vm. We backup the VMs from the vmware machine to the storage box, passing through the vm that mount the storage box. The idea is to have cheap storage and backups on a different device than the vmware machine.

Yes, the remote VM is accessed via IP

I was imprecise in the first post: the storage box is a CIFS filesystem, mounted with samba.

About the other questions: we are a small company of four people, therefore we have to wear many hats. I know that XSIBackup is a tool and it is my responsability how I use it. We are still learning and I'm just looking for help.

We used the storage box beacuse it was what we already had and the DC documentation didn't give us a reason to change it.

The command we used it's exactly the same as the one you posted

Here is the execution with the strace:

execve("./xsibackup", ["./xsibackup", "--prune", "root@1.2.3.4:22:/path/to/repo/"...], [/* 25 vars */]) = 0
uname({sys="VMkernel", node="myserve.com", ...}) = 0
brk(0)                                  = 0x80a6f1b000
brk(0x80a6f1bf50)                       = 0x80a6f1bf50
arch_prctl(ARCH_SET_FS, 0x80a6f1b880)   = 0
geteuid()                               = 0
getuid()                                = 0
getegid()                               = 0
getgid()                                = 0
brk(0x80a6f3cf50)                       = 0x80a6f3cf50
brk(0x80a6f3d000)                       = 0x80a6f3d000
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
readlink("/proc/self/fd/0", 0x332419f97b0, 511) = -1 ENOENT (No such file or directory)
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180303
close(4)                                = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f1b000
read(3, "root\n", 600)                  = 5
close(3)                                = 0
wait4(2180303, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180303
munmap(0x80e6f1b000, 4096)              = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=56, ...}) = 0
fstat(3, {st_mode=S_IFREG|0444, st_size=56, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f1c000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 131072) = 56
close(3)                                = 0
munmap(0x80e6f1c000, 131072)            = 0
open("/proc/stat", O_RDONLY)            = -1 ENOENT (No such file or directory)
open("/proc/cpuinfo", O_RDONLY)         = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=131072, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f3c000
read(3, "processor : 0\nprocessor : 1\nproc"..., 131072) = 170
read(3, "", 131072)                     = 0
close(3)                                = 0
munmap(0x80e6f3c000, 131072)            = 0
getpid()                                = 2180302
getppid()                               = 2180301
uname({sys="VMkernel", node="myserve.com", ...}) = 0
uname({sys="VMkernel", node="myserve.com", ...}) = 0
getcwd("/vmfs/volumes/XSI/XSIBackup-DC", 4096) = 67
access("/vmfs", F_OK)                   = 0
access("/vmfs/volumes", F_OK)           = 0
access("/vmfs/volumes", F_OK) = 0
access("/vmfs/volumes/XSI", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc/xsibackup.conf", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc/xsibackup.conf", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc/xsibackup.conf", F_OK) = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/etc/xsibackup.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0700, st_size=2835, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f5c000
read(3, "# This are the default values fo"..., 131072) = 2835
stat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=512, ...}) = 0
read(3, "", 131072)                     = 0
close(3)                                = 0
munmap(0x80e6f5c000, 131072)            = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/tmp", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/etc", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/etc/jobs", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/etc/ssh", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180304
close(4)                                = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7c000
read(3, "1\n", 600)                     = 2
close(3)                                = 0
wait4(2180304, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180304
munmap(0x80e6f7c000, 4096)              = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", 0x332419f9940) = -1 ENOENT (No such file or directory)
access("/vmfs", F_OK)                   = 0
access("/vmfs/volumes", F_OK)           = 0
access("/vmfs/volumes", F_OK) = 0
access("/vmfs/volumes/XSI", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var/log", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", F_OK) = -1 ENOENT (No such file or directory)
mkdir("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", 0755) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/html", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/spool/mail", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/spool/cron", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/tmp/xsi/2180302", 0x332419f9940) = -1 ENOENT (No such file or directory)
access("/tmp", F_OK)                    = 0
access("/tmp/xsi", F_OK)                = 0
access("/tmp/xsi/2180302", F_OK)        = -1 ENOENT (No such file or directory)
mkdir("/tmp/xsi/2180302", 0700)         = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/tmp/2180302", 0x332419f9940) = -1 ENOENT (No such file or directory)
access("/vmfs", F_OK)                   = 0
access("/vmfs/volumes", F_OK)           = 0
access("/vmfs/volumes", F_OK) = 0
access("/vmfs/volumes/XSI", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/tmp", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/tmp/2180302", F_OK) = -1 ENOENT (No such file or directory)
mkdir("/vmfs/volumes/XSI/XSIBackup-DC/tmp/2180302", 0700) = 0
access("", F_OK)                        = -1 ENOENT (No such file or directory)
rt_sigaction(SIGINT, {0x41b227, [INT], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x41b227, [TERM], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGTSTP, {0x41b227, [TSTP], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x41b227, [PIPE], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x41b227, [SEGV], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, [], 0}, 8) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/xsibackup_id_rsa", F_OK) = 0
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180306
close(4)                                = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7d000
read(3, "1625840888\n", 600)            = 11
pipe([4, 5])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180308
close(5)                                = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "vmnic0\n", 600)                = 7
close(4)                                = 0
wait4(2180308, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180308
munmap(0x80e6f7e000, 4096)              = 0
pipe([4, 5])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180314
close(5)                                = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "70:54:d2:ab:73:43\n", 600)     = 18
close(4)                                = 0
wait4(2180314, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180314
munmap(0x80e6f7e000, 4096)              = 0
stat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=512, ...}) = 0
open("/tmp/xsibackup.pid", O_WRONLY|O_CREAT|O_APPEND, 0666) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=16, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
fstat(4, {st_mode=S_IFREG|0644, st_size=16, ...}) = 0
lseek(4, 16, SEEK_SET)                  = 16
write(4, "2180302\n", 8)                = 8
close(4)                                = 0
munmap(0x80e6f7e000, 131072)            = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc/ssh/linked_hosts.conf", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var/spool/cron/root-crontab", F_OK) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/license.key", O_RDONLY) = 4
stat("/vmfs/volumes/XSI/XSIBackup-DC/license.key", {st_mode=S_IFREG|0700, st_size=88, ...}) = 0
fstat(4, {st_mode=S_IFREG|0700, st_size=88, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "--redacted--"..., 131072) = 88
lseek(4, 0, SEEK_SET)                   = 0
read(4, "--redacted--"..., 131072) = 88
close(4)                                = 0
munmap(0x80e6f7e000, 131072)            = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/license.key", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0700, st_size=88, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
lseek(4, 0, SEEK_SET)                   = 0
read(4, "--redacted--"..., 40) = 40
read(4, "\v\364\260(\353\0\0\0\340\30\t\365\212\26)M\260J/1\221\36\200\1\10a\311\225_S\0\0"..., 131072) = 48
close(4)                                = 0
munmap(0x80e6f7e000, 131072)            = 0
stat("/etc/localtime", {st_mode=S_IFREG|0444, st_size=56, ...}) = 0
pipe([4, 5])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180318
close(5)                                = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "1625840889\n", 600)            = 11
close(4)                                = 0
wait4(2180318, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180318
munmap(0x80e6f7e000, 4096)              = 0
pipe([4, 5])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180320
close(5)                                = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "7.5\n", 600)                   = 4
close(4)                                = 0
wait4(2180320, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180320
munmap(0x80e6f7e000, 4096)              = 0
stat("/etc/localtime", {st_mode=S_IFREG|0444, st_size=56, ...}) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/request.key", F_OK) = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(0, 0), ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
write(1, "\33[90m|--------------------------"..., 93|---------------------------------------------------------------------------------|
) = 93
write(1, "\33[90m||-------------------------"..., 93||-------------------------------------------------------------------------------||
) = 93
write(1, "\33[90m|||\33[0m\33[1m   (c)XSIBackup-"..., 110|||   (c)XSIBackup-DC 1.5.0.10: Backup & Replication Software                   |||
) = 110
write(1, "\33[90m|||\33[0m\33[1m   (c)33HOPS, Si"..., 110|||   (c)33HOPS, Sistemas de Informacion y Redes, S.L. | All Rights Reserved    |||
) = 110
write(1, "\33[90m||-------------------------"..., 93||-------------------------------------------------------------------------------||
) = 93
write(1, "\33[90m|--------------------------"..., 93|---------------------------------------------------------------------------------|
) = 93
write(1, "                   (c)Daniel J. "..., 65                   (c)Daniel J. Garcia Fidalgo | info@33hops.com
) = 65
write(1, "\33[90m|--------------------------"..., 93|---------------------------------------------------------------------------------|
) = 93
write(1, "System Information: ESXi, Kernel"..., 59System Information: ESXi, Kernel 6 Major 7 Minor 0 Patch 0
) = 59
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
setsockopt(4, SOL_SOCKET, SO_RCVTIMEO, "\24\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0
fcntl(4, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(4, {sa_family=AF_INET, sin_port=htons(22), sin_addr=inet_addr("1.2.3.4")}, 16) = -1 EINPROGRESS (Operation now in progress)
select(5, NULL, [4], NULL, {20, 0})     = 1 (out [4], left {20, 554})
fcntl(4, F_SETFL, O_RDWR)               = 0
getsockopt(4, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
recvfrom(4, "SSH-2.0-OpenSSH_7.9p1 Debian-10+"..., 99, 0, NULL, NULL) = 41
pipe([5, 6])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180328
close(6)                                = 0
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "FIPS mode initialized\r\n", 600) = 23
read(5, "Fri 09 Jul 2021 04:31:37 PM CEST"..., 600) = 33
read(5, "", 600)                        = 0
close(5)                                = 0
wait4(2180328, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180328
munmap(0x80e6f9e000, 4096)              = 0
pipe([5, 6])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180330
close(6)                                = 0
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "33\n", 600)                    = 3
read(5, "", 600)                        = 0
close(5)                                = 0
wait4(2180330, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180330
munmap(0x80e6f9e000, 4096)              = 0
pipe([5, 6])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180332
close(6)                                = 0
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "linux\n", 600)                 = 6
read(5, "", 600)                        = 0
close(5)                                = 0
wait4(2180332, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180332
munmap(0x80e6f9e000, 4096)              = 0
write(1, "Remote system: Linux\n", 21Remote system: Linux
)  = 21
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
write(1, "PID: 2180302, Running job as: \33["..., 43PID: 2180302, Running job as: root
) = 43
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
access("/vmfs/volumes/XSI/XSIBackup-DC/xsibackup_id_rsa", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/xsibackup_id_rsa.pub", F_OK) = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/xsibackup_id_rsa.pub", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0700, st_size=408, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "ssh-rsa AAAAB3NzaC1yc2EAAAADAQAB"..., 131072) = 408
close(5)                                = 0
munmap(0x80e6f9e000, 131072)            = 0
pipe([5, 6])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180334
close(6)                                = 0
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "1\n", 600)                     = 2
read(5, "", 600)                        = 0
close(5)                                = 0
wait4(2180334, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180334
munmap(0x80e6f9e000, 4096)              = 0
write(1, "Remote xsibackup binary found at"..., 49Remote xsibackup binary found at: /bin/xsibackup
) = 49
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
pipe([5, 6])                            = 0
pipe([7, 8])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180336
close(5)                                = 0
close(8)                                = 0
fcntl(6, F_GETFL)                       = 0x1 (flags O_WRONLY)
fstat(6, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
lseek(6, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
fcntl(7, F_GETFL)                       = 0 (flags O_RDONLY)
fstat(7, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9f000
lseek(7, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
mmap(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fa0000
munmap(0x80e6fa0000, 1052672)           = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var/log/xsibackup.log", F_OK) = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/var/log/xsibackup.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 5
fstat(5, {st_mode=S_IFREG|0700, st_size=8598004, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fa0000
fstat(5, {st_mode=S_IFREG|0700, st_size=8598004, ...}) = 0
lseek(5, 8598004, SEEK_SET)             = 8598004
stat("/path/to/repo/", 0x332419f9d70) = -1 ENOENT (No such file or directory)
pipe([8, 9])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180337
close(9)                                = 0
fstat(8, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
read(8, "2021-07-09T14:28:10\n", 600)   = 20
close(8)                                = 0
wait4(2180337, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180337
munmap(0x80e6fc0000, 4096)              = 0
write(1, "2021-07-09T14:28:10 | Error code"..., 1412021-07-09T14:28:10 | Error code 4328 at file xsibackup.c, line 4328 | Error description: Prune path is not a directory: /path/to/repo/
) = 141
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
open("/vmfs/volumes/XSI/XSIBackup-DC/var/log/error.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 8
fstat(8, {st_mode=S_IFREG|0700, st_size=876886, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
fstat(8, {st_mode=S_IFREG|0700, st_size=876886, ...}) = 0
lseek(8, 876886, SEEK_SET)              = 876886
pipe([9, 10])                           = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180339
close(9)                                = 0
close(10)                               = 0
wait4(2180339, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180339
write(8, "2021-07-09T14:28:10 | Error code"..., 141) = 141
close(8)                                = 0
munmap(0x80e6fc0000, 131072)            = 0
stat("/tmp/xsi/2180302", {st_mode=S_IFDIR|0700, st_size=512, ...}) = 0
pipe([8, 9])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180341
close(9)                                = 0
fstat(8, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
read(8, "1\n", 600)                     = 2
close(8)                                = 0
wait4(2180341, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180341
munmap(0x80e6fc0000, 4096)              = 0
write(1, "Removed host <tmp> dir        \33["..., 42Removed host <tmp> dir        OK
) = 42
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
stat("/vmfs/volumes/XSI/XSIBackup-DC/tmp/2180302", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
pipe([8, 9])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180343
close(9)                                = 0
fstat(8, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
read(8, "1\n", 600)                     = 2
close(8)                                = 0
wait4(2180343, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180343
munmap(0x80e6fc0000, 4096)              = 0
write(1, "Removed prog <tmp> dir        \33["..., 42Removed prog <tmp> dir        OK
) = 42
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
close(7)                                = 0
munmap(0x80e6f9f000, 4096)              = 0
close(6)                                = 0
munmap(0x80e6f9e000, 4096)              = 0
kill(2180336, SIG_0)                    = 0
kill(2180336, SIGKILL)                  = 0
write(1, "SSH session was closed        \33["..., 42SSH session was closed        OK
) = 42
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
access("/tmp/xsibackup.pid", R_OK)      = 0
open("/tmp/xsibackup.pid", O_RDONLY)    = 6
open("/tmp/xsibackup.pid.tmp.1616494955872038", O_WRONLY|O_CREAT|O_APPEND, 0666) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
fstat(7, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
lseek(7, 0, SEEK_SET)                   = 0
fstat(6, {st_mode=S_IFREG|0644, st_size=24, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fe0000
read(6, "2150531\n2150581\n2180302\n", 131072) = 24
read(6, "", 131072)                     = 0
close(6)                                = 0
munmap(0x80e6fe0000, 131072)            = 0
write(7, "2150531\n2150581\n", 16)      = 16
close(7)                                = 0
munmap(0x80e6fc0000, 131072)            = 0
access("/tmp/xsibackup.pid", W_OK)      = 0
rename("/tmp/xsibackup.pid.tmp.1616494955872038", "/tmp/xsibackup.pid") = 0
access("/tmp/xsibackup.pid.tmp.1616494955872038", F_OK) = -1 ENOENT (No such file or directory)
access("/tmp/xsibackup.pid", F_OK)      = 0
stat("/tmp/xsibackup.pid", {st_mode=S_IFREG|0644, st_size=16, ...}) = 0

I suppose we will start to rethink our backup practices

#6 General matters » Prune/check/info cannot see directory from cifs device (solved) » 2021-07-07 09:22:31

marco.pernigo
Replies: 4

Hi everyone,
we found a bit of a problem in our backup flow.

We are launching backups from vmware to a remote vm that mount an external storage box (cifs filesystem). Normal --backup actions seem to work  normally ( the target directory contains all the files .xsitools, data/ cfgbak/ etc....).
So after a couple months of backup we noticed that the older timestamp folders where still in the repository (we use --rotate=30D in the backup action), supposedly from every job made (like march to july).

So we tried to launch prune manually (remote from vmware):

|---------------------------------------------------------------------------------|
||-------------------------------------------------------------------------------||
|||   (c)XSIBackup-DC 1.5.0.10: 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
-------------------------------------------------------------------------------------------------------------
Remote system: Linux
-------------------------------------------------------------------------------------------------------------
PID: 2151380, Running job as: root
-------------------------------------------------------------------------------------------------------------
Remote xsibackup binary found at: /bin/xsibackup
-------------------------------------------------------------------------------------------------------------
2021-07-07T08:59:29 | Error code 4328 at file xsibackup.c, line 4328 | Error description: Prune path is not a directory: /path/to/my/directory/
-------------------------------------------------------------------------------------------------------------
Removed host <tmp> dir        OK
-------------------------------------------------------------------------------------------------------------
Removed prog <tmp> dir        OK
-------------------------------------------------------------------------------------------------------------
SSH session was closed        OK
-------------------------------------------------------------------------------------------------------------

Other actions like --info and --check gives the same results with differents error code (Error code 4753 at file common.c, line 4753 &&&  Error code 2985 at file xsibackup.c, line 2985 respectively).

Launching xsiback locally on remote machine:

SIGTERM (11) condition was trapped: check logs for more details

Any ideas?

Thanks in advance

More info:
Wmare version: 10.3.10.10540
Remote vm: Debian 10 (buster)

#7 Re: General matters » VMWare ESXi: error code 131 | trapped SIGTERM (13) » 2020-12-23 09:52:58

Hi,
I just want to let you know that we tried Centos8 and everything is working as intended.

marco

#8 Re: General matters » VMWare ESXi: error code 131 | trapped SIGTERM (13) » 2020-12-21 08:26:08

1 - No, there is none. The folder are present but they are empty
2 - Yes. No changes though

marco

#9 Re: General matters » VMWare ESXi: error code 131 | trapped SIGTERM (13) » 2020-12-17 17:29:01

Not silly at all.

Yes, I exchanged the keys although with xsibackup and not manually. A normal ssh connection from the cli is successful.
If it helps to know after launching the job a new folder is created in the remote target directory.

And yes, the binary exectues normally on the remote host.

As for the distro, it is not a problem to set up a CentOS installation, it's just that we are more comfortable with Debian and I wanted to rule out first the possibility of an error in the configuration.

marco

#11 Re: General matters » VMWare ESXi: error code 131 | trapped SIGTERM (13) » 2020-12-14 17:38:20

Thanks for taking the time!

The distro is Debian Buster.
I've tried to run the job with root as user on the remote host with the same results.
Also, I can't seem to find any logs at that location on the remote host or in any other likely folder

marco

#12 General matters » VMWare ESXi: error code 131 | trapped SIGTERM (13) » 2020-12-14 10:31:59

marco.pernigo
Replies: 16

Hi,
I'm getting a 131 error code. Does anyone know what could be the cause?

Thanks for the help!

Cmd:

xsibackup --backup "VMs(gwca)" ***@***:22:/app/xsi-dc/test --compress --backup-how=hot --remote-path=/app/xsi-dc/xsibackup

Log:

Performing a hot backup as per the --backup-how argument.
-----------------------------------------------------------------------------------------------------------
|---------------------------------------------------------------------------------|
||-------------------------------------------------------------------------------||
|||   (c)XSIBackup-DC 1.4.2.7: 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
-----------------------------------------------------------------------------------------------------------
License: ***
-----------------------------------------------------------------------------------------------------------
SSH: Mon 14 Dec 2020 11:20:32 AM CET
-----------------------------------------------------------------------------------------------------------
Remote system: Linux
-----------------------------------------------------------------------------------------------------------
PID: 2407539, Running job as: ***
-----------------------------------------------------------------------------------------------------------
LZJB compression has been enabled
-----------------------------------------------------------------------------------------------------------
Block size is 1.00 MB (1048576 bytes)
-----------------------------------------------------------------------------------------------------------
Performing --backup action
-----------------------------------------------------------------------------------------------------------
(c)XSIBackup-DC setting repository at /app/xsi-dc/test
-----------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------
2020-12-14T10:21:39 | Error code 131 at file signal.c, line 131 | Error description: some error was trapped SIGTERM (13) (13) while executing the job, error: Illegal seek
-----------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------
Removed current target dir:
-----------------------------------------------------------------------------------------------------------
SIGTERM (13) condition was trapped: check logs for more details
-----------------------------------------------------------------------------------------------------------
Cleaning up...
-----------------------------------------------------------------------------------------------------------
Removed <tmp> dir        OK
-----------------------------------------------------------------------------------------------------------
Unlocked backup          OK
-----------------------------------------------------------------------------------------------------------

Board footer