lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.11k stars 162 forks source link

How mirror:set-permissions is supposed to work ? No permission changes in remote ... #657

Open lflorent opened 2 years ago

lflorent commented 2 years ago

Hi,

Does anyone know how mirror:set-permissions is supposed to work.

I'm using a mirror --reverse command. In local my new files have write permission for group (g+w).

On my remote host, new uploaded files have by default no write permission for group (g-w).

But when upload in remote (with -dflag for debug log) lftp doesn't try to change permission on new uploaded files.
I expected lftp launch a chmod command on this new uploaded files but maybe I misunderstood the mirror command with mirror:set-permissions to true ? Or maybe I've to add extra 'set ...' config(s) ?

I have the workaround to use the lftp chmod -R command but it's slow, very slow ... because I've lot of folders / files. Or maybe someone have a tip to change effectively the folder / file permissions with lftp.

I'm using the last version : 4.9.2 (not present in GitHub release ? :smile: )

Thanks in advance for your precious help.