Re: Unwanted deletion of remote files

Chris Wilson <[email protected]> Mon, 27 Jun 2005 21:22:45 +0100 (BST)
Newsgroups gmane.comp.web.sitecopy
Message-ID <[email protected]>
Hi Joe,

>> 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?

Because I would have liked to have a local copy? Or I made a mistake? I 
don't remember. The documentation isn't clear (to me) that once you have 
fetched a file, you must not delete or modify it locally ever again, 
unless you want those changes propagated to the server.

> 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.

I didn't know that, and now is it too late? Do I have to init my database 
again?

> 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 wouldn't mind if the existing ignore or exclude options could be used to 
prevent it, but apparently it can't.

> 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.

That would be great, I look forward to it. Now how can I run sitecopy 
without deleting those log files? Reinit? Do I have to do that every time 
I change my exclude and ignore directives?

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |

_______________________________________________
sitecopy maillist  -  [email protected]
http://dav.lyra.org/mailman/listinfo/sitecopy