cozy-docs icon indicating copy to clipboard operation
cozy-docs copied to clipboard

Explain how to backup a server

Open clochix opened this issue 10 years ago • 6 comments

clochix avatar Dec 14 '15 13:12 clochix

:+1: for this. I think the command lines used in cozy_management should be documented somewhere as well, maybe in the "step by step" installation guide?

Phyks avatar Sep 19 '16 21:09 Phyks

@aeris would you mind writing some lines on how we backup and restore servers? We could put them inside our internal documentation and in our public FAQ.

clochix avatar Sep 20 '16 13:09 clochix

What is the specific need? A simple doc about how to use the CLI commands or a more detailed one?

jsilvestre avatar Sep 21 '16 07:09 jsilvestre

We could probably add a section « how to backup and restore your server » to https://docs.cozy.io/en/host/manage.html and describe the few commands to use.

clochix avatar Sep 21 '16 09:09 clochix

@clochix But it uses the cozy-monitor? They are 2 different cli(s), right? So, which to use when?

millisami avatar Nov 27 '16 16:11 millisami

Hello @millisami,

For the difference between the two cli, please refer to my answer on the forum.

To backup your server, use cozy_management backup. It will create a backup of your data inside /var/lib/cozy/backups. To restore your server from an archive, you can use cozy_management restore <backup_filename> && cozy-monitor reinstall-missing-app. The first command will restore the data, the second will reinstall all your applications.

cozy-monitor backup and cozy-monitor reverse-backup are deprecated. They only replicate the database to another server. This implies having another CouchDB server running.

clochix avatar Dec 01 '16 09:12 clochix