wppconnect-server icon indicating copy to clipboard operation
wppconnect-server copied to clipboard

Criar rotas para backup e restore das sessions

Open bgastaldi opened this issue 3 years ago • 4 comments

Adicionar duas rotas sendo um para backup(download) e outra para restore (upload) dos tokens salvos diretamente no server.

bgastaldi avatar Jul 12 '21 14:07 bgastaldi

Já tem uma rota para pegar todas as sessões.

moskoweb avatar Jul 13 '21 21:07 moskoweb

Salve! A ideia aqui é outra. Deixei aberto para lembrar de implementar no futuro um restore mais automatico.

bgastaldi avatar Jul 13 '21 23:07 bgastaldi

quando formos fazer isso, lembrar de salvar a pasta do puppeteer (MD) junto no bkp

ghsgabriel avatar Oct 25 '21 18:10 ghsgabriel

+1, this feature would be awesome.

Saifallak avatar Sep 24 '22 14:09 Saifallak

Any ideas on what to backup exactly? And restore? Going to give it a try.

Saifallak avatar Feb 22 '23 11:02 Saifallak

Any ideas on what to backup exactly? And restore?

Going to give it a try.

I already have this code done, but I'm going to release it in the new version, to later leave here, but in summary it's very simple:

you have to put the userDataDir folder and the tokens in a zip and download it to make the backup, and to restore send it through an endpoint and extract it in the respective folders, then start all sessions to be able to start them.

icleitoncosta avatar Mar 23 '23 12:03 icleitoncosta

Any ideas on what to backup exactly? And restore? Going to give it a try.

I already have this code done, but I'm going to release it in the new version, to later leave here, but in summary it's very simple:

you have to put the userDataDir folder and the tokens in a zip and download it to make the backup, and to restore send it through an endpoint and extract it in the respective folders, then start all sessions to be able to start them.

great, gonna wait for you and try to tweak it for my use case my use case is to backup a single session and move it to another server, or save it for later ...etc

thanks for your hard work.

Saifallak avatar Mar 23 '23 13:03 Saifallak

Added by the last commit

icleitoncosta avatar May 31 '23 22:05 icleitoncosta