Re: push of new website, while retaining backup
Alexander Lukyanov <[email protected]> Mon, 13 Aug 2018 06:41:26 +0300
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CANnoEwoUhjZxT7ZD=_MdfjtCkDa_uoh-4r5edYLOcXr9QCgBDQ@mail.gmail.com> |
--===============3098751563815926465== Content-Type: multipart/alternative; boundary="000000000000f45511057348de89" --000000000000f45511057348de89 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Renaming a directory should be the fastest operation here, use it if possible. =D0=B2=D1=81, 12 =D0=B0=D0=B2=D0=B3. 2018, 20:30 John Kelly <greenelk@gmail= .com>: > 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 > > _______________________________________________ > lftp mailing list > [email protected] > http://univ.uniyar.ac.ru/mailman/listinfo/lftp > --000000000000f45511057348de89 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Renaming a directory should be the fastest operation here, use it if possib= le.=C2=A0<br><br><div class=3D"gmail_quote"><div dir=3D"ltr">=D0=B2=D1=81, = 12 =D0=B0=D0=B2=D0=B3. 2018, 20:30 John Kelly <<a href=3D"mailto:greenel= [email protected]">[email protected]</a>>:<br></div><blockquote class=3D"gmai= l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left= :1ex"><div dir=3D"ltr">Hi,<div>I'm trying to use lftp to push my new an= gular 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...</div><div><br></div><div>a ) push to website-lates= t</div><div>b) copy website-current to website-previous</div><div>c) replac= e website-latest to website-current</div><div><br></div><div>i'm strugg= ling somewhat with trying to achieve this - any hints would be appreciated = (it's all done in the context of a docker node image)</div><div><br></d= iv><div>kind regards</div><div>john kelly</div><div><br></div></div> _______________________________________________<br> lftp mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a= ><br> <a href=3D"http://univ.uniyar.ac.ru/mailman/listinfo/lftp" rel=3D"noreferre= r" target=3D"_blank">http://univ.uniyar.ac.ru/mailman/listinfo/lftp</a><br> </blockquote></div> --000000000000f45511057348de89-- --===============3098751563815926465== 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 --===============3098751563815926465==--