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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2017-12-01 18:56:15

jpw7791
Member
Registered: 2017-12-01
Posts: 3

xsibackup-cron / Questions

Hello all:

Cross-posting from the SourceForge forums and I apologize for that.  Please disregard the duplicate.  As far as my issue goes -- I am receiving multiple entries in my 'xsibackup-cron.log' containing entries similar to:

/vmfs/volumes/datastore1/xsi-dir/xsibackup-cron: line 5: Thu: not found
/vmfs/volumes/datastore1/xsi-dir/xsibackup-cron: line 5: Fri: not found
/vmfs/volumes/datastore1/xsi-dir/xsibackup-cron: line 5: Tue: not found
/vmfs/volumes/datastore1/xsi-dir/xsibackup-cron: line 5: Wed: not found

... is this expected behavior?  My 'xsibackup-cron.log' contains the following entries:

####### This actually deletes backups older than 2 weeks
find /vmfs/volumes/afccbe1c-eb281aaa/backup/* -maxdepth 2 -type d -mtime +15 -exec rm -rf {} \;
######## The schedules to do the backups of the VM’s
/vmfs/volumes/datastore1/xsi-dir/xsibackup --time=”Mon 10:30|Tue 10:30|Wed 10:30|Thu 10:30|Fri 10:30|Sat 10:30|Sun 10:30″ --backup-how=cold --backup-type=all --date-dir=yes --backup-room=1024 --backup-point="/vmfs/volumes/afccbe1c-eb281aaa/backup"

Any insight would be well appreciated.

Thanks in advance,
jpw

Offline

#2 2017-12-01 20:26:40

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

Re: xsibackup-cron / Questions

That's some sort of syntax error in the xsibackup-cron file.
Don't add this

find /vmfs/volumes/afccbe1c-eb281aaa/backup/* -maxdepth 2 -type d -mtime +15 -exec rm -rf {} \;

to the cron file, it will be triggered every minute.
Use the ESXi crontab instead at: /var/spool/cron/crontabs/root, and program it there.

Have you cut & pasted texts into the xsibackup-cron file?, maybe some character is not what you think it is.

Offline

#3 2017-12-01 20:32:00

jpw7791
Member
Registered: 2017-12-01
Posts: 3

Re: xsibackup-cron / Questions

Interesting. Those are some good things to look at.  I'll go ahead and add that snippet to the ESXi crontab.

There was indeed a cut/paste with the 'find' command to prune the backup repository.  I'll see if I have any gremlins that I need to zap within the file itself.

Thanks for the feedback.  I'll go fiddle and report back!

Offline

#4 2017-12-01 21:48:59

jpw7791
Member
Registered: 2017-12-01
Posts: 3

Re: xsibackup-cron / Questions

After removing the 'find' command and placing it in the ESXi crontab, coupled with what appears to be a non-ASCII character from a quotation mark, my 'xsibackup-cron.log' file is now empty after a reboot:

-rw-r--r--    1 root     root             0 Dec  1 21:36 xsibackup-cron.log

I am assuming that means I am no longer throwing any more errors?  I'll keep an eye on it for the next few days.

Thanks for the assistance!

Offline

Board footer