Hi,
lftp is great, thank you...
One feature I could use in "mirror" mode is to back up any
changed/deleted files on the local side.
My use case:
- I want to retain an exact mirror of a live website, so I use "mirror
--delete"
- However, I also want to retain historical backups of changed/deleted
files. If the live website is hacked and deleted, then an automated
mirror run will simply mirror the new hacked/deleted copy, which is no
good. So lftp's "mirror" isn't good enough for mirroring a website as
well as retaining old versions in case of disaster.
Rsync provides such an option using --backup and --backup-dir. However
with lftp, the only solution I can see is to use --dry-run, and then to
parse the output and save the files that would be deleted/changed, and
then run again without --dry-run. That's a bit ugly. If lftp instead had
an option like rsync's --backup-dir, then that would be awesome.
What do you think?
Many thanks,
David
--
WordShell - WordPress fast from the CLI - www.wordshell.net
_______________________________________________
lftp-devel mailing list
lftp-devel@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp-devel