Run as a cron job on CentOS 6

No more questions - please go to www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

Run as a cron job on CentOS 6

Postby Warren on Fri Nov 30, 2012 8:30 am

I have a need to run my backup jobs as a cron job on a machine that does not run XWindows regularly. It took a bit of doing, but I did get it to work. This is all on a pretty bare bones CentOS 6 machine.

First I needed to install enough of X to get the program to run on a remote X server. That took these packages:

yum install gtk2 xorg-x11-xauth xorg-x11-drivers xorg-x11-server-Xorg xorg-x11-xinit iberation-sans-fonts liberation-serif-fonts mesa-dri-drivers

Then the xvfb package:
rpm -ivh ftp://ftp.pbone.net/mirror/ftp.scientif ... 6.i686.rpm

Next I edited the /usr/bin/xvfb-run file to change line 152 that sets AUTHFILE from using tempfile to this:
AUTHFILE=$(mktemp -p "$XVFB_RUN_TMPDIR" Xauthority.XXXXXXXX)

Lastly I needed to put some links into place for libraries that SuperFlexibleSynchronizer needs:
cd /usr/lib
ln -s libcrypto.so.1.0.0 libcrypto.so
ln -s libssl.so.1.0.0 libssl.so

From there you set up your job normally using the GUI. When you are done you can run it from the command line or from cron like this:
/usr/bin/xvfb-run /usr/local/bin/SuperFlexibleSynchronizer /RUNX="JOBNAME" /U /S >/dev/null 2>&1

*Note that you may not have SuperFlexibleSynchronizer in /usr/local/bin, so adjust the path accordingly.

Hope this helps someone,
Warren
Warren
 
Posts: 4
Joined: Fri Nov 30, 2012 8:19 am

Re: Run as a cron job on CentOS 6

Postby superflexible on Tue Dec 04, 2012 1:42 pm

Wow!!

Many many thanks for this.

Cheers,
Tobias
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Run as a cron job on CentOS 6

Postby superflexible on Thu May 21, 2015 10:18 am

A new command line version is now available in 32 and 64 bits:
https://www.syncovery.com/download/linux/

This will run on servers out of the box.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm


Return to Linux Support

cron