Re: Unwanted deletion of remote files
Doug Laidlaw <[email protected]> Fri, 24 Jun 2005 23:12:53 +1000
| Newsgroups | gmane.comp.web.sitecopy |
|---|---|
| Message-ID | <[email protected]> |
Sorry, I missed the bit about wanting to download files but not modify them. Perhaps I should leave this to Joe, but sitecopy is meant to work upward to the server, not primarily in the reverse direction. As a general rule, downloading from an FTP server doesn't work anyway. I would confine sitecopy to what goes up, and use some other program such as ftp or wget to download only. I have a similar issue with a genealogy program that can be modified online by somebody else. I put this to this list, and was told that sitecopy couldn't handle the situation. - at least not on an FTP server. I am still looking at alternatives. In the mean time, I am still using sitecopy, because modification by others is rather unusual at present, and I always run sitecopy without -u first, to see what differs. Doug. On Fri, 24 Jun 2005 10:44 pm, Doug Laidlaw wrote: > Either "ignnore" or "exclude" should do what you want. "exclude" will > delete them, "ignore" will leave them alone. For added security, I have > write-protected files that I don't want touched. > > Doug L. > > On Fri, 24 Jun 2005 6:44 am, Chris Wilson wrote: > > Hi all, > > > > 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. > > > > Sitecopy -l shows the following: > > > > chris@gcc(nm)$ sitecopy -l audit > > sitecopy: Showing changes to site `audit' (on ftp.marketaudit.co.uk in /) > > * These items have been added since the last update: > > site/gantt.js, site/audit.js > > * These items have been changed since the last update: > > site/moreinfo.html, site/index.html > > * These items have been deleted since the last update: > > archive/db-01.sql.gz, archive/db-02.sql.gz, archive/db-03.sql.gz, > > archive/db-04.sql.gz, archive/db-05.sql.gz, archive/db-06.sql.gz, > > archive/db-07.sql.gz, archive/db-08.sql.gz, archive/db-09.sql.gz, > > archive/db-10.sql.gz, archive/db-11.sql.gz, archive/db-12.sql.gz, > > archive/db-13.sql.gz, archive/db-14.sql.gz, archive/db-15.sql.gz, > > archive/db-16.sql.gz, archive/db-17.sql.gz, archive/db-18.sql.gz, > > archive/db-19.sql.gz, archive/db-20.sql.gz, archive/db-21.sql.gz, > > archive/db-22.sql.gz, archive/db-23.sql.gz, archive/db-24.sql.gz, > > archive/db-25.sql.gz, archive/db-26.sql.gz, archive/db-27.sql.gz, > > archive/db-28.sql.gz, dir:site/logs > > sitecopy: The remote site needs updating (33 items to update). > > > > 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: > > > > site audit > > server ftp.marketaudit.co.uk > > remote / > > local /home/chris/project/nm/remote > > username xxx > > password xxx > > protocol ftp > > exclude /bin > > exclude /etc > > exclude /lib > > exclude /logs > > ignore /site/logs > > ignore /audit > > ignore /archive > > state checksum > > checkmoved renames > > permissions all > > > > I have tried "ignore" and "exclude" directives, and neither does what I > > want. Please help! > > > > Do I need to run "sitecopy -f" after modifying the configuration? It > > takes forever because it checksums each remote file. > > > > Cheers, Chris. -- ICQ Number 178748389. Registered Linux User No. 277548. There is no limit to what can be accomplished if it doesn't matter who gets the credit. - Emerson. _______________________________________________ sitecopy maillist - [email protected] http://dav.lyra.org/mailman/listinfo/sitecopy