haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

Does ccnet/mykey.peer need to be backed up? #1044

Closed padhia closed 8 years ago

padhia commented 9 years ago

The manual lists only two steps for backup, namely, backing up mysql databases and data files folder. However, almost as a footnote, the manual says

The ID in ccnet/ccnet.conf must be consistent with ccnet/mykey.peer so do not forget to copy ccnet/mykey.peer.

I am a little confused; the manual never says to copy ccnet/ccnet.conf, so what's the point of copying just ccnet/mykey.peer?

On related topic,

shoeper commented 9 years ago

I'm also interested in this.

killing commented 9 years ago

The documentation says that you should copy the whole installation directory. So the ccnet.conf and mykey.peer files should already be copied. The note is actually a reminder. It's a little bit confusing. If the database and data is not consistent, seaf-fsck will realign them to the latest consistent state. It's actually a FAQ. Even though in the "restore" section we mention that seaf-fsck should be run after restore, it's still good to make this clear. ccnet.conf contains the ID from mykey.peer file. This ID is used for non-http syncing protocol.

padhia commented 9 years ago

Thank you for your answer. However, installation directory is mostly executables. It doesn't make sense to have exact same set of executables as a requirement for restore. If I, on a new machine, install latest version and generate a different set of ID and mykey.peer files, will the restored databases and data file folders not work?