Closest thing to rsync emulation with FTP client?
Hi,
I have 100 GB space on a mutualized web server, e. g. a machine on which I only have an FTP account, but no shell access. This machine hosts my new package repository. Unfortunately I have no rsync access, so synchronizing the local file tree with the remote file tree is a bit of a headache. To make things worse, I have a slow DSL connection with a ridiculous upload bandwidth of about 40 kB/s. That's the price you pay for living in the south French countryside. So far, GFTP and Filezilla don't really behave like they should. I guess the solution will be a short script using lftp, ncftp or whatever command-line client will be apt for the job. Here's how the script should behave, preferably.
In short, the whole thing should be equivalent to: Code:
$ rsync -av --delete [localstuff] [remote_server] |
Hi
The "mirror" command from lftp is what you're looking for: Code:
# lftp -c "open ftp://remote.host.example ; mirror /path/to/local/source path/to/remote/target ;" I use it to keep my local Slackware mirrors up to date. Cheers |
I believe you'll need "mirror -R" in lftp when uploading.
|
I've been playing around with this for a little while, and here's the result, which works as expected:
Code:
#!/bin/sh
I'll test this some more, but first results are quite encouraging. I guess I'll write a blog post about this. Cheers, Niki |
All times are GMT -5. The time now is 03:55 AM. |