Re: Unwanted deletion of remote files
Doug Laidlaw <[email protected]> Tue, 28 Jun 2005 12:14:06 +1000
| Newsgroups | gmane.comp.web.sitecopy |
|---|---|
| Message-ID | <[email protected]> |
Joe, I hesitate to suggest anything to a developer. As I said to Chris, I once said that something (I think in Gnucash) would be "easy to implement" and quite rightly, got told where to go. But could .sitecopyrc call a script to do what Chris wants? I can see no difficulty in writing a script that calls both sitecopy and wget in turn, but calling wget from sitecopy may be attractive to some. Doug L. On Mon, 27 Jun 2005 10:59 pm, Joe Orton wrote: > Hiya, > > On Thu, Jun 23, 2005 at 09:44:01PM +0100, Chris Wilson wrote: > > I think I have found another problem with sitecopy. There are certain > > remote files that I would like sitecopy not to modify in any way (e.g. > > website access logs). If possible, I would like sitecopy to download them > > but not upload them, but I can't find any documented way to achieve that. > > > > Worse, I cannot make Sitecopy not delete them from the remote site. I > > have already lost all my access logs, due to my own complacency in > > running sitecopy -u. > > I don't understand exactly what you are doing at the moment. Are you > using sitecopy --fetch and --synch to download the access logs? If so, > why? Why not just use a separate tool to download the logs somewhere > completely different? If you avoid doing a --fetch on the site, then > sitecopy won't ever know the logs exist, so it won't ever try to delete > them. > > No, sitecopy doesn't support any mode where files can be deleted locally > but not removed remotely. Adding more such options would just be more > confusing. > > > I don't want it to touch the archive directory, nor site/logs, but I > > can't make it not delete all those files. My configuration is: > > The fact that the "logs" directory in your site is picked up by a > --fetch despite the "exclude /logs" configuration is a bug which will be > fixed at some point, if that helps. > > joe > _______________________________________________ > sitecopy maillist - [email protected] > http://dav.lyra.org/mailman/listinfo/sitecopy -- ICQ Number 178748389. Registered Linux User No. 277548. Never let your sense of morals get in the way of doing what's right. - Isaac Asimov. _______________________________________________ sitecopy maillist - [email protected] http://dav.lyra.org/mailman/listinfo/sitecopy