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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2020-01-16 12:06:41

AndersG
Member
Registered: 2020-01-16
Posts: 54

Backup runs, but logfile empty

V 11.2.8

Jobfile:
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-point=/vmfs/volumes/Storage2TB/backup \
--backup-type=custom \
--backup-vms="Pamir_OES" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log" 2>&1

btw, I had to create the job dir manually

I have set it to run from cron, but thought I'd test manually by:

/vmfs/volumes/datastore1/xsi-dir/xsibackup --run-backup=001

but the log file in /vmfs/volumes/datastore1/xsi-dir/var/logs is untouched, 0 bytes and old date.

What have I done wrong?

Edit: PEBKAC... If I run the job manually without piping output then there is no log file smile We shall see tomorrow when it has run from cron.

Last edited by AndersG (2020-01-16 13:20:12)

Offline

#2 2020-01-16 16:34:36

admin
Administrator
Registered: 2017-04-21
Posts: 2,057

Re: Backup runs, but logfile empty

You have done nothing wrong. When you run

/vmfs/volumes/datastore1/xsi-dir/xsibackup --run-backup=001

The output is printed to screen, whereas when you run this

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-point=/vmfs/volumes/Storage2TB/backup \
--backup-type=custom \
--backup-vms="Pamir_OES" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log" 2>&1

The output is logged to /vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log

Offline

#3 2020-01-16 17:13:43

AndersG
Member
Registered: 2020-01-16
Posts: 54

Re: Backup runs, but logfile empty

Yes, thanks. I realised that after posting and edited my original post.

Last edited by AndersG (2020-01-17 06:15:21)

Offline

#4 2020-01-17 06:16:28

AndersG
Member
Registered: 2020-01-16
Posts: 54

Re: Backup runs, but logfile empty

It ran just fine during the night. Time to add a few more VMs to the job.

Thanks (Muchas Gracias) again for providing this excellent piece of software!

Offline

Board footer