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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 Re: General matters » cron jobs running on wrong day? » 2018-12-13 10:37:51

I changed the weekly backup job in crontab from day 7 to day 0 and it did not run today, maybe the problem was only this?

#2 General matters » cron jobs running on wrong day? » 2018-12-12 18:23:05

lmasarati
Replies: 3

Hello,
I recently updated xsibackup pro from a pre-gui version (10.3.3) to the last one (11.1.7).
During upgrade I reconfigured the 2 scheduled backup jobs: first one (001) is for daily backup of all the running VMs every day excluding Sunday, second one (002) is for weekly backup of all the VMs only on Sunday.
Now the problem is that the weekly backup is run everyday even if it should run just on day 7 (Sunday, isn't it?); I also suspect that the daily backup would run also on Sunday...
I cannot see where is the problem.

Output of the command: /vmfs/volumes/datastore1/xsi-dir/xsibackup --update-cron

-----------------------------------------------------------------------------------------------------------------------------------
The root user crontab has been succesfully updated
-----------------------------------------------------------------------------------------------------------------------------------
This is the current content of the root crontab
-----------------------------------------------------------------------------------------------------------------------------------
#min hour day mon dow command
1    1    *   *   *   /sbin/tmpwatch.py
1    *    *   *   *   /sbin/auto-backup.sh
0    *    *   *   *   /usr/lib/vmware/vmksummary/log-heartbeat.py
*/5  *    *   *   *   /bin/hostd-probe.sh ++group=host/vim/vmvisor/hostd-probe/stats/sh
00   1    *   *   *   localcli storage core device purge
0    3    *   *   7   /vmfs/volumes/datastore1/xsi-dir/jobs/002 # Added by XSIBackup
0    1    *   *   1,2,3,4,5   /vmfs/volumes/datastore1/xsi-dir/jobs/001 # Added by XSIBackup
-----------------------------------------------------------------------------------------------------------------------------------
Current number of crond instances is 1, service seems to be running O.K.
-----------------------------------------------------------------------------------------------------------------------------------


Content of the /vmfs/volumes/datastore1/xsi-dir/jobs/001 file

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=vmkfstools \
--snapshot=includememory \
--date-dir=yes \
--backup-point=/vmfs/volumes/freenas/esxi-backup \
--backup-type=Running \
--backup-how=Hot \
--backup-room=7000 \
--use-smtp=2 \
--mail-to=*hidden* \
--subject="ESXi Daily Backup report" \
--backup-id=001 \
--description="Daily Backup" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"


Content of the /vmfs/volumes/datastore1/xsi-dir/jobs/002 file

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=Vmkfstools \
--snapshot=includememory \
--date-dir=yes \
--backup-point=/vmfs/volumes/freenas/esxi-week-backup \
--backup-type=All \
--backup-how=Hot \
--backup-room=7000 \
--use-smtp=2 \
--mail-to=*hidden* \
--subject="ESXi Weekly Backup report" \
--backup-id=002 \
--description="Weekly Backup" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"


Content of the xsibackup.log file:

[...]
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T01:00:05|  ###############################################################################
2018-12-12T01:00:05|     XSIBACKUP-PRO 11.1.7: new execution request
2018-12-12T01:00:05|  ###############################################################################
2018-12-12T01:00:05|
2018-12-12T01:00:06|  NOTICE: (c) XSIBackup kills any user launched jobs, make sure you don't overlap manual jobs
---------------------------------------------------------------------------------------------------------------------------------
XSIBackup PID:        163266684                                            *hidden*
Wed, 12 Dec 2018 01:00:06 +0000                              IPv4: 192.168.127.58/255.255.255.0
VMware ESXi 6.7.0 build-8169922                              (c) Rsync 3.1.0 as opt. dependency
---------------------------------------------------------------------------------------------------------------------------------
Backup Id:                  001                 Intel(R) Xeon(R) CPU           X5675  @ 3.07GHz
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T01:00:06|  Backup description: Daily Backup
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T01:00:06|  Message: crontab is installed for user root
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T01:00:08|  Backup user is: root
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T01:00:08|  Backup program is: vmkfstools
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T01:00:08|  --backup-point found at /vmfs/volumes/freenas/esxi-backup (filesystem: VMFS-5)
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T01:00:08|  The backup room has been limited to 7000 gb.
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T01:00:09|  Getting list of all VMs...
---------------------------------------------------------------------------------------------------------------------------------
[...]
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T03:00:05|  ###############################################################################
2018-12-12T03:00:05|     XSIBACKUP-PRO 11.1.7: new execution request
2018-12-12T03:00:05|  ###############################################################################
2018-12-12T03:00:05|
2018-12-12T03:00:06|  NOTICE: (c) XSIBackup kills any user launched jobs, make sure you don't overlap manual jobs
---------------------------------------------------------------------------------------------------------------------------------
XSIBackup PID:        163303153                                            *hidden*
Wed, 12 Dec 2018 03:00:05 +0000                              IPv4: 192.168.127.58/255.255.255.0
VMware ESXi 6.7.0 build-8169922                              (c) Rsync 3.1.0 as opt. dependency
---------------------------------------------------------------------------------------------------------------------------------
Backup Id:                  002                 Intel(R) Xeon(R) CPU           X5675  @ 3.07GHz
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T03:00:06|  Backup description: Weekly Backup
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T03:00:06|  Message: crontab is installed for user root
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T03:00:08|  Backup user is: root
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T03:00:08|  Backup program is: vmkfstools
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T03:00:08|  --backup-point found at /vmfs/volumes/freenas/esxi-week-backup (filesystem: VMFS-5)
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T03:00:08|  The backup room has been limited to 7000 gb.
---------------------------------------------------------------------------------------------------------------------------------
2018-12-12T03:00:09|  Getting list of all VMs...
---------------------------------------------------------------------------------------------------------------------------------
[...]

#3 Re: General matters » 10.3.3 - cron not installing in ESXi 6.7 » 2018-05-02 11:02:14

Yes, after starting this topic I realized that xsibackup is a script and not a binary and found the same solution searching for the error message text.
Thanks anyway, the backup process is working as expected, also the restore is working.
I used backup and restore features for moving 36 VMs from one ESXi 6.0 to another ESXi 6.7 pivoting on the shared iSCSI datastore where backups are made.
At the end of the day I activated the cron job and the automated backup worked as expected.
No problems so far, and by the way, I do like Ceasar Salad.

#4 General matters » 10.3.3 - cron not installing in ESXi 6.7 » 2018-04-30 15:33:42

lmasarati
Replies: 6

Hello,
I'm moving XSIBackup-PRO from ESXi 6.0 Free to a new ESXI 6.7 Free installation and found that I cannot run xsibackup --install-cron:
Only ESXi 5.X and 6.X series are supported. It will not work in previous versions of ESXi
using XSIBACKUP-PRO 10.3.3
It could be just an error in the version check because everything else is working as expected.

Bye.
Luigino.

Board footer