Synchronizing directory hierarchies via SFTP

Michael Ross gmx at ross.cx
Wed Dec 9 20:48:28 UTC 2015


Am .12.2015, 16:54 Uhr, schrieb Patrick Hess <patrickhess at 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


More information about the freebsd-questions mailing list