Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Dec 2015 21:48:17 +0100
From:      "Michael Ross" <gmx@ross.cx>
To:        freebsd-questions@freebsd.org, "Patrick Hess" <patrickhess@gmx.net>
Subject:   Re: Synchronizing directory hierarchies via SFTP
Message-ID:  <op.x9d9evemg7njmm@workstation>
In-Reply-To: <5475394.tzi9gdkkBP@desk8.phess.net>
References:  <13761006.QDN0LtKzYl@desk8.phess.net> <24246596.8z5VK3yfqz@desk8.phess.net> <op.x9cp8fpeg7njmm@workstation> <5475394.tzi9gdkkBP@desk8.phess.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Am .12.2015, 16:54 Uhr, schrieb Patrick Hess <patrickhess@gmx.net>:

> Michael Ross wrote:
>> You can put it in a file
>>
>> 	#!/usr/local/bin/lftp

#!/usr/local/bin/lftp -f

Note the -f parameter, forgot that in the other post

>> 	open sftp://user:pass@host
>> 	mirror -v --reverse --dereference ...
>
> Is there an easy way to pass parameters to that file?
> I'd like to be able to pass in different source and
> target directories to the mirror command.
>

None that I know of.
I use template files and do the parameter substitution with other tools.


Michael



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.x9d9evemg7njmm>