access permissions in batch mode

Get help for specific problems
Posts: 5
Joined: 22 Nov 2025

bmpierre3

Hello

I am using FreeFileSync to synchronize between a QNAP NAS and a computer running Linux Mint. Furthermore I am using anacron to automate the synchronization since the computer is a laptop that is not always on. When I sync files from the NAS to the computer using anacron, only the admin has write permissions enabled. I am able to copy permissions in GUI mode by checking the "Copy file access permissions" option. However, I cannot get this to work when syncing with anacron. It seems like the automated sync is not using the GlobalSettings.xml file. Any suggestions to enable the syncing of permissions would be greatly appreciated.
Posts: 5
Joined: 22 Nov 2025

bmpierre3

Some additional information, I suspect it may be related to a permissions issue. When running in batch mode I have found the ffs_batch file cannot be located under the /home directory. I have the ffs_batch files under the /usr directory. I noticed that the GlobalSettings.xml file is located in the /home/brian/.config/FreeFileSync directory. Is there a way to specify another location for this file?
Posts: 5
Joined: 22 Nov 2025

bmpierre3

I copied the GlobalSettings.xml file to the /usr directory and ran a backup using anacron with the following command.

1 5 test_backup DISPLAY=:0 /usr/bin/freefilesync "/usr/GlobalSettings.xml" "/usr/backup.ffs_batch"

The command runs so I hope that it is using the GlobalSettings file specified. Unfortunately I am still having permission issues when backing up in batch mode.
User avatar
Posts: 2978
Joined: 22 Aug 2012

Plerry

> Is there a way to specify another location for this file?
See https://freefilesync.org/manual.php?topic=command-line
Posts: 5
Joined: 22 Nov 2025

bmpierre3

I was able to specify another location for the GlobalSettings.xml file using the following command

1 5 test_backup DISPLAY=:0 /usr/bin/freefilesync "/usr/GlobalSettings.xml" "/usr/backup.ffs_batch"

However this still does not seem to solve the issue.
Posts: 5
Joined: 22 Nov 2025

bmpierre3

I found a solution. I needed to run the job in user mode using the following command

1 5 test_backup DISPLAY=:0 sudo -u user_name /usr/bin/freefilesync "/usr/backup.ffs_batch"