wppconnect-server
wppconnect-server copied to clipboard
Criar rotas para backup e restore das sessions
Adicionar duas rotas sendo um para backup(download) e outra para restore (upload) dos tokens salvos diretamente no server.
Já tem uma rota para pegar todas as sessões.
Salve! A ideia aqui é outra. Deixei aberto para lembrar de implementar no futuro um restore mais automatico.
quando formos fazer isso, lembrar de salvar a pasta do puppeteer (MD) junto no bkp
+1, this feature would be awesome.
Any ideas on what to backup exactly? And restore? Going to give it a try.
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.
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.
Added by the last commit