Eclipse工作区备份 [英] Eclipse workspace backup
问题描述
.metadata /
目录,我该怎么办? (有没有一些文档描述Eclipse存储在这个目录中)我注意到它经常变化(基本上每次我使用Eclipse(Galileo)。 我已经看到这个问题,但是我不想做一个插件和设置的备份(也因为我不是确定在重新安装我的电脑或新PC后恢复正常工作)我只想对我的项目进行备份(源代码,库,可能的数据, .svn
和 .git
目录)所以,我可以安全地忽略 .metadata /
目录?
您一般不想备份.metadata目录,因为它的内容不可移植。一个新的工作区,并重新导入你的项目,你会注意到你的工作区首选项将被丢失(在窗口 - >首选项下设置的东西)。从代码样式首选项到路径v有利于瞄准运行时间。保持良好的笔记,了解如何配置您的工作区偏好,从而减轻风险,您将无需恢复。一些偏好(如用户拼写字典和代码样式)允许您引用外部文件。利用这一点,将这些文件放在要备份的目录中。
What do I lose if I skip the .metadata/
directory when doing the back-up of my Eclipse workspace? (Is there some documentation describing what Eclipse stores in this directory)? I've noticed that it changes very often (essentially every time that I use Eclipse (Galileo).
I've seen this question, but I'm not interested in doing a back-up of plug-ins and settings (also because I'm not sure that they would work properly when restored after a re-installation of my PC or on a new PC). I'm just interested in doing a back-up of my projects (source code, libraries, possible data, .svn
and .git
directories). So, can I safely ignore the .metadata/
directory?
You do not generally want to backup .metadata directory because its content is not portable. When you create a new workspace and re-import your projects, you will notice that your workspace preferences will be missing (stuff set under Window -> Preferences). Everything from code style preferences, to path variables to target runtimes. Mitigate your risk by keeping good notes on how you configure your workspace preferences and you will have no problem recovering. Some preferences (like user spelling dictionary and code style) allow you to reference external files. Take advantage of this and put those files in a directory that will be backed up.
这篇关于Eclipse工作区备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!