Cron jobs on Linux

Get help for specific problems
Posts: 18
Joined: 6 Dec 2020

Tio

The tutorial you recommend is outdated. https://freefilesync.org/manual.php?topic=schedule-batch-jobs#linux

Ubuntu doesn't use Unity, and Gnome Schedule seems abandoned. It is either not working or poorly working. Is there an alternative for Linux?

How to create a cron job that starts FFS in GUI mode?

Thanks!
Posts: 18
Joined: 6 Dec 2020

Tio

I have tried a bunch but since FFS opens in GUI mode then none work really. I am also using Arch and not Debian (like Ubuntu).
Posts: 309
Joined: 7 Jan 2018

bgstack15

Are you trying to make FreeFileSync in GUI mode regardless if you are logged in or not? Or are you trying to make FreeFileSync run at the time you log in?

FreeFileSync is linked to gtk regardless of running headless, so you need an X11 display server of some sort, even if you only use the root :0 that the login screen (display manager) uses. Or you can run it with xvfb-run within cron.
Posts: 18
Joined: 6 Dec 2020

Tio

To run when I am logged in. I am trying with cron like
0 23 * * *      /opt/freefilesync/FreeFileSync '/home/tio/Documents/ynhdatafull.ffs_batch'
But that doesn't launch.
Posts: 18
Joined: 6 Dec 2020

Tio

Ok based on the links you provided I managed to make it work.

Install https://github.com/loimu/zeit - AUR here https://aur.archlinux.org/packages/zeit-git

Then simply add a new cron task as such:
DISPLAY=:0  /opt/freefilesync/FreeFileSync /home/tio/Documents/websitesbackup.ffs_batch