Re: [lftp] push of new website, while retaining backup

2018-08-12 Thread Alexander Lukyanov
Renaming a directory should be the fastest operation here, use it if
possible.

вс, 12 авг. 2018, 20:30 John Kelly :

> 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
> lftp@uniyar.ac.ru
> http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


[lftp] push of new website, while retaining backup

2018-08-12 Thread John Kelly
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
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp