Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28706

Re: Cloud Questions

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Cloud Questions
Date Tue, 10 Jun 2014 22:26:10 +0000 (UTC)
Organization A noiseless patient Spider
Lines 39
Message-ID <ln80m2$6i3$1@dont-email.me> (permalink)
References <76ccp9t1nvcpka81d69uldfatphb9ofp0t@4ax.com> <53963794$0$298$14726298@news.sunsite.dk>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Tue, 10 Jun 2014 22:26:10 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="6723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VQbtvd7h41wgm3Ld7l1jbgvnnrVGr01Y="
User-Agent Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
Cancel-Lock sha1:ONKDYrlrkoKg019V7BoVEQX80VA=
Xref csiph.com comp.lang.java.programmer:28706

Show key headers only | View raw


On Mon, 09 Jun 2014 18:39:16 -0400, Arne Vajhøj wrote:

> There are probably no point in moving your pages to a cloud instead of
> the current web hosting solution.
>
Agreed.

If your webhost supported rsync access, which is admittedly unlikely, 
using it to synchronise the hosted set of web pages with your local set 
would be the perfect solution as its fast and minimised to data volume 
being transferred.

I'd say you could do as well by using either scp or sftp in a script-
driven solution:

- use sftp to pull back a list of published pages and the dates and times
  of publication
- the script uses that list to generate sftp 'put' commands for all
  unpublished and altered pages and 'rm' for all published pages that
  you've deleted from the local collection.
- feed the file of put & rm commands to the sftp utility to do the page
  transfers and deletions.

...where the 'script' could be written Perl, python, awk or even be a 
Java application.

This approach can be fairly easily extended to maintain the published 
directory structure by using sftp's 'mkdir' and 'rmdir' commands.

Of course, you do more or less exactly the same with a command-line ftp 
client in place of sftp.

I hope this gives you some useful ideas.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Cloud Questions Roedy Green <see_website@mindprod.com.invalid> - 2014-06-09 15:26 -0700
  Re: Cloud Questions Arne Vajhøj <arne@vajhoej.dk> - 2014-06-09 18:39 -0400
    Re: Cloud Questions Arne Vajhøj <arne@vajhoej.dk> - 2014-06-09 18:58 -0400
      Re: Cloud Questions Roedy Green <see_website@mindprod.com.invalid> - 2014-06-09 23:28 -0700
      Re: Cloud Questions Roedy Green <see_website@mindprod.com.invalid> - 2014-06-10 01:37 -0700
    Re: Cloud Questions Martin Gregorie <martin@address-in-sig.invalid> - 2014-06-10 22:26 +0000
      Re: Cloud Questions Arne Vajhøj <arne@vajhoej.dk> - 2014-06-10 19:16 -0400
  Re: Cloud Questions Roedy Green <see_website@mindprod.com.invalid> - 2014-06-09 23:06 -0700
    Re: Cloud Questions Arne Vajhøj <arne@vajhoej.dk> - 2014-06-10 21:40 -0400

csiph-web