push of new website, while retaining backup

John Kelly <[email protected]> Sun, 12 Aug 2018 18:29:58 +0100
Newsgroups gmane.network.lftp.user
Message-ID <CAPW3GHLr9jTmGaHepizMXH7bMA5SdO2pC36+JVp_g2opwtt2Ew@mail.gmail.com>
--===============1830023170489054059==
Content-Type: multipart/alternative; boundary="000000000000be8ed8057340538b"

--000000000000be8ed8057340538b
Content-Type: text/plain; charset="UTF-8"

Hi,
I'm trying to use lftp to push my new angular app to my website from
gitlab, but i first want to take a copy of the current website. Logically
i'm trying to achieve the following, trying to minimise downtime...

a ) push to website-latest
b) copy website-current to website-previous
c) replace website-latest to website-current

i'm struggling somewhat with trying to achieve this - any hints would be
appreciated (it's all done in the context of a docker node image)

kind regards
john kelly

--000000000000be8ed8057340538b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div>I&#39;m trying to use lftp to push my new angular =
app to my website from gitlab, but i first want to take a copy of the curre=
nt website. Logically i&#39;m trying to achieve the following, trying to mi=
nimise downtime...</div><div><br></div><div>a ) push to website-latest</div=
><div>b) copy website-current to website-previous</div><div>c) replace webs=
ite-latest to website-current</div><div><br></div><div>i&#39;m struggling s=
omewhat with trying to achieve this - any hints would be appreciated (it&#3=
9;s all done in the context of a docker node image)</div><div><br></div><di=
v>kind regards</div><div>john kelly</div><div><br></div></div>

--000000000000be8ed8057340538b--

--===============1830023170489054059==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

--===============1830023170489054059==--