Hi, I’m new to managing a server and am trying to use lsync to allow a user to SFTP files into a folder here: /var/sftp/uploads
That automatically syncs with a folder in my public web folder. I set up the user using the following: https://www.digitalocean.com/community/questions/trying-to-setup-a-sftp-user-with-limited-access
This worked great, I then set up the lsync using: https://www.digitalocean.com/community/tutorials/how-to-mirror-local-and-remote-directories-on-a-vps-with-lsyncd
This worked great for syncing, but I would like to automatically set all files and directories to chmod 755 when the get synced to the web folder. From the tutorial I believe it would be via rsyncOpts, however from other reading for versions of lsyncd 2.1 and above this is no longer supported (I am running 2.1.5) and should be via rsync = {
From there I get lost, can anyone provide any support?
Thank you!
Click below to sign up and get $100 of credit to try our products over 60 days!