Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ko:zotero_data [2012/12/06 21:38] – [백업에서 내 라이브러리 복원(Restoring your Zotero library from a backup)] jupitermovementko:zotero_data [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-======백업과 복구(Backing up and Restoring your Zotero Library)====== 
  
-내 라이브러리는 반드시 정기적으로 백업하여야 한다. 동기화는 Zotero 서버에 '내 라이브러리'의 가장 최신 버전만 저장하여 백업에 대한 완벽한 대체수단이 되지는 못한다. 
-===== 내 라이브러리 경로(Locating your Zotero Library) ===== 
- 
-기본적으로 내 라이브러리는 Firefox의 경우 [[http://support.mozilla.com/kb/Profiles|Firefox profile]]에 Standalone 버전의 경우 Zotero 자체의 프로필의 'zotero' 디렉토리에 저장된다. Firefox 버전의 Zotero가 설치된 상태에서 Standalone 버전을 설치할 경우 설치 과정 중에 Firefox와 동일한 라이브러리를 사용할 것인지 묻는다. 반대의 경우(Standalone 버전이 설치된 상태에서 Firefox 버전을 설치하는 경우)도 마찬가지다.  
- 
-내 Zotero 데이터 디렉토리를 찾는 가장 쉽고 안전한 방법은 "환경설정> 고급> 저장 위치"에서 "자료 디렉토리 표시(Show Data Directory)" 버튼을 클릭하는 것이다. 
- 
-==== 기본 경로(Default Locations) ==== 
- 
-Zotero 환경설정의 고급([[preferences/advanced|Advanced]] 항목에서 원하는대로 경로를 지정하지 않았다면, 기본적으로 사용하는 OS에 따라 아래와 같은 경로에 데이터가 저장된다.  
- 
-환경설정의 "자료 디렉토리 표시(Show Data Directory)" 버튼은 현재 사용 중인 데이터 경로를 표시해준다. 만약 Zotero 환경설정에 접속하지 못할 경우, 파일명 'zotero.sqlite'로 검색하면 데이터 디렉토리 위치를 찾을 수 있다.  
- 
-=== Firefox 버전(Zotero for Firefox) === 
- 
-^OS X|<code>/Users/<username>/Library/Application Support/Firefox/Profiles/<randomstring>/zotero</code>| 
-^Windows 7/Vista|<code>C:\Users\<User Name>\AppData\Roaming\Mozilla\Firefox\Profiles\<randomstring>\zotero</code>| 
-^Windows XP/2000|<code>C:\Documents and Settings\<username>\Application Data\Mozilla\Firefox\Profiles\<randomstring>\zotero</code>| 
-^Linux (most distributions)|<code>~/.mozilla/firefox/Profiles/<randomstring>/zotero</code>| 
- 
-=== Standalone 버전(Zotero Standalone) === 
- 
-^OS X|<code>/Users/<username>/Library/Application Support/Zotero/Profiles/<randomstring>/zotero</code>| 
-^Windows 7/Vista|<code>C:\Users\<User Name>\AppData\Roaming\Zotero\Profiles\<randomstring>\zotero</code>| 
-^Windows XP/2000|<code>C:\Documents and Settings\<username>\Application Data\Zotero\Profiles\<randomstring>\zotero</code>| 
-^Linux (most distributions)|<code>~/.zotero/Profiles/<randomstring>/zotero</code>| 
- 
- 
-===== 라이브러리 컨텐츠(Library Contents) ===== 
- 
-Zotero 디렉토리에서 가장 중요한 파일은 아이템 메타데이터, 노트, 태그 등 가장 많은 데이터를 담고 있는 'zotero.sqlite' 파일이다. 'Storage' 하위 디렉토리는 PDF, 스냅샷, 오디오, 기타 다양한 유형의 첨부파일을 담고 있다(단, 링크된([[attaching_files|linked]]) 파일은 하위 디렉토리에 복사되지 않음에 유의).  
- 
-Zotero 디렉토리는 그 밖에 다른 파일도 담고 있는데, 이중 'zotero.sqlite.bak'은 Firefox나 Zotero Standalone 버전을 종료할 때, 지난 12시간 내에 업데이트되지 않을 때 업데이트되는 'zotero.sqlite'의 자동 백업 파일이다. 한편, 'zotero.sqlite.[number].bak' 파일은 Zotero의 업데이트 과정에서 만들어지는 자동 백업 파일이다.  
- 
-**유의사항**: 파일의 복사, 삭제, 이동 전에는 데이터 손상의 우려가 있으므로 반드시 Firefox와 Zotero Standalone 버전을 종료해야 한다.  
- 
- 
-=====내 라이브러리 백업하기(Backing Up Your Zotero Library)===== 
- 
-내 라이브러리를 백업하는 것 보다는 하드드라이브 전체를 외장하드 등에 정기적으로 자동 백업할 수 있는 백업 장치를 사용하는 것이 좋다. Mac의 Time Machine처럼 최신 OS의 경우 해당 기능을 제공하고 있다. 특별히 내 라이브러리를 백 업([[zotero_data#locating_your_zotero_library|locate your Zotero library]])하고자 하는 경우, Firefox, Standalone 버전을 종료하고 백업 경로(가급적 외장하드 등 다른 저장소)에 내 Zotero 데이터 디렉토리를 복사한다. 이때, 'storage'와 다른 하위 디렉토리를 포함한 //전체 디렉토리//를 복사한다. 가급적 모든 중요한 데이터는 자주 백업하는 것이 좋다.     
- 
-**유의사항 — 동기화**: 동기화([[sync|Syncing]])는 백업의 대안이 아니다. 예를들어, 실수로 내 라이브러리의 아이템을 삭제하고 동기화 시킨 경우 Zotero 서버에서 그 아이템들은 복구하지 못한다. 
- 
-**유의사항 — 반출/반입**: Zotero는 RDF 파일로 내 라이브러리를 반출할 수 있다. 그러나 RDF를 통한 반출/반입은 내 라이브러리의 완벽한 복사본은 아니므로 백업전략으로 추천하지 않는다. 
- 
-백업 방법에 대한 그림을 단계별로 잘 표현한 'Northwestern University library' 제공의 가이드를 참고하자. 
-[[http://libguides.northwestern.edu/content.php?pid=68444&sid=676064]]. 
- 
-=====백업데이터 복원(Restoring Your Zotero Library from a Backup)===== 
- 
-자동 백업과 수동 백업, 동기화된 데이터 등을 기반으로 내 라이브러나 실수로 삭제한 데이터를 복원할 수 있다.  
-이 절차를 따라오기 이전에 다음 링크를 참고한다([[#where_did_my_items_go|Zotero is looking in the right place for your data]]). 
- 
- 
-==== Zotero 동기화를 통한 라이브러리 복원(Restoring your Zotero library using Zotero syncing)==== 
- 
-Zotero 동기화를 사용하고 로컬 라이브러리가 비어있는 상태라면, Zotero 서버 동기화로 간단하게 내 라이브러리 복원이 가능하다. 내 라이브러리가 zotero.org에 있음이 확인되면, Firefox 버전이나 Standalone의 환경설정의 동기화 탭에 사용자명과 비밀번호를 다시 입력한 후 Zotero 툴바 우측 상단의 동기화 버튼을 클릭한다. Zotero는 명백한 삭제만 동기화하므로 빈 라이브러리를 동기화하는 것은 **아이템을 수동으로 삭제하지 않았다면** 서버 데이터를 덮어쓰지 않는다. 
- 
-덮어쓰고자 하는 로컬 라이브러리가 있다면, 동기화 전에 Zotero를 종료하고 기존 Zotero 데이터 디렉토리를 삭제한다. 
-==== 백업에서 내 라이브러리 복원(Restoring your Zotero library from a backup) ==== 
- 
-Zotero 동기화를 사용하지 않거나 일부만 동기화한 상태지만 Zotero 데이터 디렉토리를 가지고 있다면, 백업된 Zotero 디렉토리와 현재 디렉토리의 컨텐츠를 교체하여 내 라이브러리를 복원할 수 있다.   
- 
-Zotero 환경설정의 고급(Advanced) 탭을 열고, '자료 디렉토리 표시(Show Data Directory)'를 클릭하여 'zotero.sqlite', 'storage' 하위 디렉토리 등의 파일이 담긴 디렉토리를 연다. Firefox와 Standalone 버전의 Zotero를 종료하고 'zotero.sqlite'와 'storage' 파일을 바탕화면의 임시 폴더로 옮긴다. 이어, 두 파일(폴더)을 백업분에서 현재 데이터 디렉토리로 복사(이동 아님)한다. Firefox나 Standalone 버전의 Zotero를 다시 열면, 내 라이브러리가 복원된 것을 확인할 수 있다. 내 데이터가 완전히 복원되었다면, 바탕화면의 임시 폴더는 삭제해도 된다. 
- 
-Note that, if you were using Zotero syncing, any changes you made to your library since the backup and subsequently synced to the Zotero server will be applied to your restored database as soon as you sync. 
- 
-==== Restoring your Zotero library from a backup and overwriting synced changes ==== 
- 
-If you or someone else made unwanted changes to your Zotero library and synced those changes to the server, you may be able to restore data by using a local backup of your Zotero data directory. 
- 
-First, disable auto-sync in the Sync pane of the Zotero for Firefox or Zotero Standalone preferences. Open the Advanced pane of the preferences and click "Show Data Directory". This should reveal a directory containing zotero.sqlite and possibly a 'storage' subdirectory. Close Firefox or Zotero Standalone and move zotero.sqlite and 'storage' from this folder into a temporary folder on your desktop. Next, copy—don't move—zotero.sqlite and 'storage' from your backup into the active data directory. When you now reopen Firefox or Zotero Standalone, your Zotero library should be restored. 
- 
-Were you to sync again now, the more recent server data would replace the data you just restored. Instead, if this is a personal library, you can use the Restore to Zotero Server [[kb:sync_reset_options|sync reset option]] to replace your server library with your local one. If this is a group library, Restore to Zotero Server will have no effect, and you will need to duplicate the items, which you can do by exporting them to RDF, importing them into your personal library, and then dragging them back to the group. When you then sync, the more recent changes from the server will still be applied to your local database, but the newly imported data will not be affected and will sync up to the server. 
- 
-Once you've successfully restore your data, you can reenable auto-sync and delete the temporary folder on your desktop. 
- 
- 
-==== Restoring from the last automatic backup ==== 
- 
-If you make a critical mistake while using Zotero---for example, if you accidentally delete a large set of items---you may be able to revert to the last automatic backup. 
- 
-If you're using [[sync|syncing]] but don't have auto-sync enabled, first check your online library on zotero.org to see if the data is correct there. If so, you can use the Restore from Zotero Server [[kb:sync reset options|sync reset option]] to replace your local library with the server library. 
- 
-If you were not using syncing or the new data has already synced to the server, follow these steps: 
- 
-  - First, make sure to keep Firefox or Zotero Standalone running, as the automatic backup might be overwritten when you quit the application. 
-  - If you're using syncing, temporarily disable auto-sync in the Sync pane of the Zotero preferences. 
-  - [[zotero_data#locating_your_zotero_library|Locate your Zotero library]] and make a copy of the zotero.sqlite.bak file and name it zotero.sqlite.new. 
-  - Optionally, in Zotero, select any items you have added since you last started Firefox/Standalone (a [[searching#saved_searches|saved search]] may be helpful), right-click the selection, choose "Export Selected Items...", and export to Zotero RDF. 
-  - Close Firefox/Standalone. In your data directory, rename zotero.sqlite to zotero.sqlite.old, rename zotero.sqlite.new to zotero.sqlite, and restart Firefox/Standalone. You should now see the backed-up version of your library. 
-  - If you were using syncing, were you to sync again now, the more recent server data would replace the data you just restored. Instead, if this is a personal library, you can use the Restore to Zotero Server [[kb:sync reset options]] to replace your server library with your local one. If this is a group library, Restore to Zotero Server will have no effect, and you will need to duplicate the items, which you can do by exporting them to RDF, importing them into your personal library, and then dragging them back to the group. 
-  - Finally, if you exported any items before the restore, import the RDF file you created to restore the data added during your last Firefox/Standalone session. 
- 
-If you're happy with the results, you can delete zotero.sqlite.old. 
- 
-==== Restoring from the last upgrade backup ==== 
- 
-Zotero prompts you to upgrade your database when you install certain (usually major) new versions. If you would like to revert to a previous version at a later point, you will have to manually replace your database with the automatic backup Zotero made during the upgrade. In most cases this will be the highest-numbered "zotero.sqlite.[num].bak" file in your Zotero data directory. 
- 
-It's a good idea to make a backup of your entire Zotero data directory before making any changes. 
- 
-If you have synced your data with the Zotero server, reverting to a previous version is as simple as reinstalling the previous version, closing Firefox or Zotero Standalone, replacing "zotero.sqlite" in your Zotero data directory with "zotero.sqlite.[highest-number].bak", and restarting Firefox or Zotero Standalone. (Note that if you try to open an upgraded database in an earlier version, Zotero will display an error. Just close Firefox or Zotero Standalone and replace the SQLite file.) Zotero will then sync from the Zotero server any changes made since you last used the older database. 
- 
-If you were not using syncing, you may wish to export to Zotero RDF any items added since the database upgrade and then reimport those into the earlier version. [[Sorting]] your library by Date Added may help you find such items. 
- 
-Bear in mind that word processor documents used with later Zotero versions often cannot be used again with earlier versions. 
- 
-======Troubleshooting Zotero Data issues====== 
- 
-=====Where did my items go?===== 
- 
-In rare cases after upgrades or system restores, users open Zotero to find their libraries almost completely blank. While you may find this a bit disconcerting if it happens to you, do not panic. In almost every case Zotero is looking in the wrong location for your data. You need to make sure that Zotero is looking in the right location for your Zotero files and that the right files are in that spot. 
- 
-If you're using Zotero for Firefox, note that a library can also appear empty due to an extension conflict, so be sure to check [[known_issues#incompatible_extensions_and_applications|known incompatible extensions]] and disable all your other Firefox extensions if you're sure that Zotero is looking in the right place. 
- 
-===1. (Zotero for Firefox) Make sure you are in the correct Firefox Profile.=== 
- 
-Occasionally when upgrading, Firefox creates a new profile. (If you notice that your bookmarks and browser history have changed or disappeared, it's likely that this has occurred.) You can use the [[http://support.mozilla.org/en-US/kb/Managing-profiles|Firefox Profile manager]] to make sure that you are in fact in the correct profile. 
- 
-===2. Make sure your data files are in the directory where Zotero is looking.=== 
- 
-Use the "Show Data Directory" button in the [[preferences/advanced|Advanced]] pane of your Zotero preferences to reveal the current data directory. If this isn't the directory you were expecting, you can either specify a different data directory in the Advanced pane of the Zotero prefs or, with Firefox or Zotero Standalone closed, move any existing Zotero files (zotero.sqlite and 'storage') out of the way and copy your desired Zotero files into the displayed directory. If you're not sure where your data is located, it's a good idea to look for larger versions of zotero.sqlite or zotero.sqlite.bak stored elsewhere on your hard drive and to look in the 'storage' directory for recently saved PDFs and other files. 
- 
-Unless you have a good reason to use a custom data directory location, we recommend using the default location within your Firefox or Zotero Standalone profile. 
- 
-When specifying a custom data directory location, keep in mind that Zotero doesn't move or copy any data. You still need to copy your data into the specified location. Also, when pointing the data directory location to an existing directory, be sure to specify the parent directory containing zotero.sqlite and 'storage', not the 'storage' directory itself. 
- 
-Finally, remember to close Firefox or Zotero Standalone before making any changes to Zotero files. 
ko/zotero_data.1354847884.txt.gz · Last modified: 2012/12/06 21:38 by jupitermovement