10

I'm very new to lftp, so forgive my ignorance.

I just ran a dry run of my lftp script, which consists basically of a line like this: mirror -Rv -x regexp --only-existing --only-newer --dry-run /local/root/dir /remote/dir

When it prints what it's going to do, it wants to chmod a bunch of files - files which I grabbed from svn, never modified, and which should be identical to the ones on the server.

My local machine is Ubuntu, and the remote is a Windows server. I have a few questions:

  1. Why is it trying to do that? Does it try to match file permissions from the local with the remote?
  2. What will happen when it tries to chmod the files? As I understand it, Windows doesn't support chmod - will it just fail gracefully and leave the files alone?

Many thanks!

4

2 回答 2

17

使用 -p 选项,它不应该尝试更改权限。我从来没有发送到 Windows 主机,但你是正确的,它不应该对 Windows 框的权限级别做任何事情。

于 2012-03-09T19:08:16.400 回答
0

我认为你应该尝试

lftp -e "mirror -R $localPath $remotePath; chmod -R 777 $remotePath; bye" -u $username,$password $host
于 2020-12-14T09:56:27.883 回答