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!
Cron jobs on Linux
- Posts: 18
- Joined: 6 Dec 2020
- Posts: 309
- Joined: 7 Jan 2018
There are many questions about this already: I searched for them. These might be useful to you:
Ubuntu Server 20.04 LTS (no GUI!) and FFS task creation - FreeFileSync Forum
Ubuntu FFS with root cron job - FreeFileSync Forum
batch job automatic in linux ubuntu - FreeFileSync Forum
Tip - alternative for gnome-schedule on Linux - FreeFileSync Forum
Ubuntu Server 20.04 LTS (no GUI!) and FFS task creation - FreeFileSync Forum
Ubuntu FFS with root cron job - FreeFileSync Forum
batch job automatic in linux ubuntu - FreeFileSync Forum
Tip - alternative for gnome-schedule on Linux - FreeFileSync Forum
- Posts: 18
- Joined: 6 Dec 2020
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
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.
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
To run when I am logged in. I am trying with cron like
But that doesn't launch.
0 23 * * * /opt/freefilesync/FreeFileSync '/home/tio/Documents/ynhdatafull.ffs_batch'
- Posts: 18
- Joined: 6 Dec 2020
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:
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