Paul Barker
2013-08-16 09:55:24 UTC
Hi all,
I'm wondering if anyone knows how to work around the following issue.
I'm using the 'mirror -R --only-newer' command within lftp to upload
changed files to my webserver. One of the directories contains over
7000 files and it isn't possible to split these into separate
directories by hand as I'd need to re-write a lot of index files.
I've determined that the server is running PureFTPd, which has an
option to limit the maximum number of files it lists in response to an
'ls' command. Browsing the folder by HTTP shows all the files, running
'ls' in lftp only shows the first couple of thousand. This causes
'mirror' to think the remaining files aren't on the server and so they
get transferred again every time I run 'mirror'. This is frustrating
if there are just a couple of small new or updated files I want to
sync as it adds 100MB or so and about an hour to my upload.
Is there anything I can do about this from within lftp? The mirror is
recursive and this is a few directories down the hierarchy. If all
else fails I'll write a mirror script that transfers 'a*' then 'b*'
and so on for this directory, then handles other directories
separately...
I'm wondering if anyone knows how to work around the following issue.
I'm using the 'mirror -R --only-newer' command within lftp to upload
changed files to my webserver. One of the directories contains over
7000 files and it isn't possible to split these into separate
directories by hand as I'd need to re-write a lot of index files.
I've determined that the server is running PureFTPd, which has an
option to limit the maximum number of files it lists in response to an
'ls' command. Browsing the folder by HTTP shows all the files, running
'ls' in lftp only shows the first couple of thousand. This causes
'mirror' to think the remaining files aren't on the server and so they
get transferred again every time I run 'mirror'. This is frustrating
if there are just a couple of small new or updated files I want to
sync as it adds 100MB or so and about an hour to my upload.
Is there anything I can do about this from within lftp? The mirror is
recursive and this is a few directories down the hierarchy. If all
else fails I'll write a mirror script that transfers 'a*' then 'b*'
and so on for this directory, then handles other directories
separately...
--
Paul Barker
Email: ***@paulbarker.me.uk
http://www.paulbarker.me.uk
Paul Barker
Email: ***@paulbarker.me.uk
http://www.paulbarker.me.uk