

If you don't want to have to enter your sudo password every time yr backup job runs, or if you want it to run unattended, then go to: /etc/sudoers.d/ and sudo-edit the file 10_user or whatever name you choose, with: %admin yr_host = NOPASSWD: /usr/bin/FreeFileSync In that case you'll have to define DISPLAY appropriately. # define local default display and pass it on to any child processĭISPLAY=:0 export DISPLAY may not suit your use case if you are doing remote admin on a distant volume while executing a remote instance of FreeFileSync. ):ĭon't leave it undefined in your script, include for instance: If however you intend to run the job from an automated script, make sure that the variables you use explicitly or implicitly are known in yr execution environment ( cron, udev. If you execute it from cli, the proper syntax is: $ sudo -i -g bruni /usr/bin/FreeFileSync "$"/.FreeFileSync/backup-jobref.ffs_batch. To my knowledge it is not good to preserve rwx oder ownership of files. Id54843 is a directory, deep under Infolog.įreefilesync is running as bruni bruni 8448 1.9 0.2 753820 46684 ? Sl 11:24 1:05 /home/bruni/Downloads/Software/Linux/FreeFileSync/FreeFileSyncįreefilesync may require sudo privileges to backup certain files in the volumes it parses. Here are the permissions on the top level mount point: ls -lĭrwxr-xr-x 16 bruni users 488 Jun 14 14:19 InfologĪnd here on the directory the lock file should be made ls -lĭrwxr-xr-x 16 bruni users 0 May 31 22:07 id54843 I use Ubuntu 16.04 and Freefilesync 8.2, but I can imagine that this is redundant information. So my question is, why can't freefilesync and how could I solve the particular problem? Please note that this problem is not related to the TLS encryption as it also arises when I do not use https (when I am at office).Īlso note that I am able to create files in the mounted directory from the terminal or even nautilus. However, when trying to sync this folder using freefilesync I get the following error: Cannot set directory lock for "/path/to/mountpoint".Ĭannot write file "/path/to/mountpoint/sync.ffs_lock". For mounting this directory I use the following command: sudo mount -t davfs -o uid=bruni,gid=users /home/bruni/mountpoint LIBSSH2_ERROR_EAGAIN - Marked for non-blocking I/O but the call would block.I have mounted a webdav folder using webdav as described here. LIBSSH2_ERROR_PROTO - An invalid SSH protocol response was received on the socket. LIBSSH2_ERROR_SOCKET_DISCONNECT - The socket was disconnected. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.

LIBSSH2_ERROR_KEX_FAILURE - >Encryption key exchange with the remote host failed. LIBSSH2_ERROR_BANNER_SEND - Unable to send banner to remote host. LIBSSH2_ERROR_SOCKET_NONE - The socket is invalid. Returns 0 on success, negative on failure. Typically a TCP connection though the protocol allows for any reliable transport and the library will attempt to use any berkeley socket.īegin transport layer protocol negotiation with the connected host. Session - Session instance as returned by libssh2_session_init_ex Int libssh2_session_handshake(LIBSSH2_SESSION *session, libssh2_socket_t socket) DESCRIPTION Libssh2_session_handshake - perform the SSH handshake SYNOPSIS
