<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.gramps-project.org/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;feed=atom&amp;action=history</id>
		<title>Run Gramps from a portable drive - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;action=history"/>
		<updated>2013-05-23T05:21:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=43699&amp;oldid=prev</id>
		<title>Patsyblefebre: Gramps</title>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=43699&amp;oldid=prev"/>
				<updated>2013-01-26T06:19:45Z</updated>
		
		<summary type="html">&lt;p&gt;Gramps&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 06:19, 26 January 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{languages|Run &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;from a portable drive}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{languages|Run &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;from a portable drive}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Some users want to keep their &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;data on a removable drive, either for portability between computers or for security.&amp;#160; This document describes how to accomplish that, and should work whether using a floppy disk, a flash drive, or an external hard drive.&amp;#160; Unfortunately, there are no easy instructions for installing &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;and its dependencies on a removable drive, so these instructions assume and require that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;be installed on any computer to which you connect the drive.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Some users want to keep their &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;data on a removable drive, either for portability between computers or for security.&amp;#160; This document describes how to accomplish that, and should work whether using a floppy disk, a flash drive, or an external hard drive.&amp;#160; Unfortunately, there are no easy instructions for installing &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;and its dependencies on a removable drive, so these instructions assume and require that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;be installed on any computer to which you connect the drive.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{man warn| Make Regular Backups |Since removable drives can be more fragile and more easily lost than the hard drive in your computer, be sure to make regular backups of your data if you use this technique.&amp;#160; For that matter, you should always make regular backups of important data anyway, because stuff can happen to your hard drive, too.&amp;#160; But be especially careful if your data is stored on floppies or flash drives.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{man warn| Make Regular Backups |Since removable drives can be more fragile and more easily lost than the hard drive in your computer, be sure to make regular backups of your data if you use this technique.&amp;#160; For that matter, you should always make regular backups of important data anyway, because stuff can happen to your hard drive, too.&amp;#160; But be especially careful if your data is stored on floppies or flash drives.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==What this does==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==What this does==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The magic is done in scripts that you use to start &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;.&amp;#160; The scripts figure out the location of the directory they are run from, on your removable drive, then tell &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;to use that directory as its home directory.&amp;#160; They do that using the &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt; environment variable, which &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;checks to see if its home directory should be somewhere other than the user's home directory.&amp;#160; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;will then read and write its configuration and data to a subdirectory named &amp;lt;code&amp;gt;gramps&amp;lt;/code&amp;gt; in directory that contains these scripts.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The magic is done in scripts that you use to start &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;.&amp;#160; The scripts figure out the location of the directory they are run from, on your removable drive, then tell &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;to use that directory as its home directory.&amp;#160; They do that using the &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt; environment variable, which &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;checks to see if its home directory should be somewhere other than the user's home directory.&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;will then read and write its configuration and data to a subdirectory named &amp;lt;code&amp;gt;gramps&amp;lt;/code&amp;gt; in directory that contains these scripts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Installation==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Installation==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Save the scripts below in the directory you want to use as your &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;home directory on the removable drive.&amp;#160; When run, the scripts will direct &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;to the directory they are installed in.&amp;#160; Edit the SETTINGS section of the scripts you will use, so that the values there are correct for your computer.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Save the scripts below in the directory you want to use as your &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;home directory on the removable drive.&amp;#160; When run, the scripts will direct &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;to the directory they are installed in.&amp;#160; Edit the SETTINGS section of the scripts you will use, so that the values there are correct for your computer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;If you keep your media files on the removable drive with your &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;data (what use are they otherwise?), be sure to make them use relative paths.&amp;#160; Doing so will allow the paths to continue working as you move between computers (with adjustments to the media base path), while absolute paths are almost certain to break.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;If you keep your media files on the removable drive with your &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;data (what use are they otherwise?), be sure to make them use relative paths.&amp;#160; Doing so will allow the paths to continue working as you move between computers (with adjustments to the media base path), while absolute paths are almost certain to break.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You will probably need to change the media base path setting in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;each time you run it on a different computer.&amp;#160; You may also need to edit some settings in the scripts for different computers.&amp;#160; If there are certain computers which you use regularly that need different settings in the scripts, you can easily make separate script copies for each one, to avoid the need to re-edit them.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You will probably need to change the media base path setting in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;each time you run it on a different computer.&amp;#160; You may also need to edit some settings in the scripts for different computers.&amp;#160; If there are certain computers which you use regularly that need different settings in the scripts, you can easily make separate script copies for each one, to avoid the need to re-edit them.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Windows==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Windows==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;%~d0&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;%~d0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;cd &amp;quot;%~p0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;cd &amp;quot;%~p0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;REM Run &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;REM Run &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;quot;%PYTHON_COMMAND&amp;quot; &amp;quot;%GRAMPS_DIR\gramps.py&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;quot;%PYTHON_COMMAND&amp;quot; &amp;quot;%GRAMPS_DIR\gramps.py&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 44:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 44:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Usage===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Usage===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Make sure &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;is installed and working on the target computer.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Make sure &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;is installed and working on the target computer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Attach your drive to the target computer.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Attach your drive to the target computer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the settings in this batch file (or a copy of it) to match the target computer.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the settings in this batch file (or a copy of it) to match the target computer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Edit gramps/keys.ini and remove database-path from the [behavior] section, if present.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Edit gramps/keys.ini and remove database-path from the [behavior] section, if present.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Double click the batch file to run &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Double click the batch file to run &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the media base path in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;to match your removable drive.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the media base path in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;to match your removable drive.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===How it works===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===How it works===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Batch files use &amp;lt;code&amp;gt;%0&amp;lt;/code&amp;gt; to refer to the drive, path and name of the batch file itself.&amp;#160; You can also insert codes to reference specific parts of the batch file location.&amp;#160; For example, &amp;lt;code&amp;gt;%~d0&amp;lt;/code&amp;gt; refers to just the drive letter, and &amp;lt;code&amp;gt;%~p0&amp;lt;/code&amp;gt; refers to just the path.&amp;#160; These codes can be combined.&amp;#160; Thus, &amp;lt;code&amp;gt;%~dp0&amp;lt;/code&amp;gt; refers to the drive letter and path where the batch file is located.&amp;#160; The batch file uses these to set the value of &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt;, then change drive and directory to that location.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Batch files use &amp;lt;code&amp;gt;%0&amp;lt;/code&amp;gt; to refer to the drive, path and name of the batch file itself.&amp;#160; You can also insert codes to reference specific parts of the batch file location.&amp;#160; For example, &amp;lt;code&amp;gt;%~d0&amp;lt;/code&amp;gt; refers to just the drive letter, and &amp;lt;code&amp;gt;%~p0&amp;lt;/code&amp;gt; refers to just the path.&amp;#160; These codes can be combined.&amp;#160; Thus, &amp;lt;code&amp;gt;%~dp0&amp;lt;/code&amp;gt; refers to the drive letter and path where the batch file is located.&amp;#160; The batch file uses these to set the value of &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt;, then change drive and directory to that location.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Once that is set up, the batch file runs &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Once that is set up, the batch file runs &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Linux==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Linux==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 71:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 71:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Set GRAMPSHOME to the path of this script&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Set GRAMPSHOME to the path of this script&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;GRAMPSHOME=&amp;quot;${0%/*}&amp;quot; &amp;quot;$GRAMPS_COMMAND&amp;quot; $*&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;GRAMPSHOME=&amp;quot;${0%/*}&amp;quot; &amp;quot;$GRAMPS_COMMAND&amp;quot; $*&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Usage===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Usage===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Make sure &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;is installed and working on the target computer.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Make sure &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;is installed and working on the target computer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Attach your drive to the target computer and mount it.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Attach your drive to the target computer and mount it.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the settings in this script (or a copy of it) to match the target computer.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the settings in this script (or a copy of it) to match the target computer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Edit gramps/keys.ini and remove database-path from the [behavior] section, if present.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Edit gramps/keys.ini and remove database-path from the [behavior] section, if present.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run this script to run &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run this script to run &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the media base path in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;to match your mount point.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the media base path in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;to match your mount point.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===How it works===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===How it works===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Shell scripts use &amp;lt;code&amp;gt;$0&amp;lt;/code&amp;gt; (or alternately &amp;lt;code&amp;gt;${0}&amp;lt;/code&amp;gt;) to refer to the path and name of the script itself.&amp;#160; There are also operators that let you modify that value.&amp;#160; The &amp;lt;code&amp;gt;%&amp;lt;/code&amp;gt; character is used to remove part of the end of the string, and what follows that character tells what to remove, with &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt; being a wildcard.&amp;#160; So &amp;lt;code&amp;gt;${0%/*}&amp;lt;/code&amp;gt; says to remove the last &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; and everything after it from the path and name of the script, leaving the directory where the script is located.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Shell scripts use &amp;lt;code&amp;gt;$0&amp;lt;/code&amp;gt; (or alternately &amp;lt;code&amp;gt;${0}&amp;lt;/code&amp;gt;) to refer to the path and name of the script itself.&amp;#160; There are also operators that let you modify that value.&amp;#160; The &amp;lt;code&amp;gt;%&amp;lt;/code&amp;gt; character is used to remove part of the end of the string, and what follows that character tells what to remove, with &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt; being a wildcard.&amp;#160; So &amp;lt;code&amp;gt;${0%/*}&amp;lt;/code&amp;gt; says to remove the last &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; and everything after it from the path and name of the script, leaving the directory where the script is located.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The script uses that to set the value of &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt;, then runs &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;.&amp;#160; Setting &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt; on the same line as the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;command makes the value available to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;.&amp;#160; The other way of making the value available, with the &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt; command, would cause the new value to carry over into the environment of the shell that ran this script after &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;has run.&amp;#160; That could cause problems running &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;normally later, so we do it this way instead.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The script uses that to set the value of &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt;, then runs &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;.&amp;#160; Setting &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt; on the same line as the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;command makes the value available to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;.&amp;#160; The other way of making the value available, with the &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt; command, would cause the new value to carry over into the environment of the shell that ran this script after &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;has run.&amp;#160; That could cause problems running &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;normally later, so we do it this way instead.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Software Versions==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Software Versions==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;While these instructions help you easily move your &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;data between computers, '''''no''''' testing has been done to explore compatibility between different software versions.&amp;#160; It is recommended that you only move your data between computers that share the same &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;, Python, database and operating system versions.&amp;#160; The more those versions differ, the greater risk of database corruption and data loss.&amp;#160; You are encouraged to export your database to GRAMPS XML for safety when moving the data between computers with differing (or unknown) software versions.&amp;#160; Do this on your known safe computer before moving to an unknown computer, and again when you have finished with &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;on the new computer before moving back to your regular computer.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;While these instructions help you easily move your &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;data between computers, '''''no''''' testing has been done to explore compatibility between different software versions.&amp;#160; It is recommended that you only move your data between computers that share the same &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;, Python, database and operating system versions.&amp;#160; The more those versions differ, the greater risk of database corruption and data loss.&amp;#160; You are encouraged to export your database to GRAMPS XML for safety when moving the data between computers with differing (or unknown) software versions.&amp;#160; Do this on your known safe computer before moving to an unknown computer, and again when you have finished with &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;on the new computer before moving back to your regular computer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS&lt;/del&gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps&lt;/ins&gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;2.x and 3.x are ''NOT'' compatible with each other.&amp;#160; The instructions and scripts here are intended for use with &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;3.0, and it is highly recommended that you ensure the '''same''' version of &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;is installed on each computer.&amp;#160; A similar technique to that described here could be used with &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;2.2, but doing so is discouraged due to the risk of [[Recover corrupted grdb|database corruption]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;2.x and 3.x are ''NOT'' compatible with each other.&amp;#160; The instructions and scripts here are intended for use with &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;3.0, and it is highly recommended that you ensure the '''same''' version of &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;is installed on each computer.&amp;#160; A similar technique to that described here could be used with &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;2.2, but doing so is discouraged due to the risk of [[Recover corrupted grdb|database corruption]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Python and Database===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Python and Database===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;stores its data with the BSDDB engine bundled with Python.&amp;#160; While the Python and BSDDB developers do make an effort to keep new versions of their software backward compatible, the risk of incompatibility increases with the distance between versions.&amp;#160; To determine the versions of Python and BSDDB on a computer, enter the following commands in a terminal window (the input prompts are &amp;lt;code&amp;gt;&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;stores its data with the BSDDB engine bundled with Python.&amp;#160; While the Python and BSDDB developers do make an effort to keep new versions of their software backward compatible, the risk of incompatibility increases with the distance between versions.&amp;#160; To determine the versions of Python and BSDDB on a computer, enter the following commands in a terminal window (the input prompts are &amp;lt;code&amp;gt;&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 109:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 109:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Operating System===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Operating System===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Moving your &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;data between computers with different operating systems seems possible, but is '''''NOT''''' officially supported.&amp;#160; '''Do so at your own risk!'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Moving your &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;data between computers with different operating systems seems possible, but is '''''NOT''''' officially supported.&amp;#160; '''Do so at your own risk!'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{man warn| Backup, backup, backup! |If you do try to move your data between operating systems like this, '''''ALWAYS''''' export your database to GRAMPS XML before changing operating system.&amp;#160; If you don't, you may live to regret it.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{man warn| Backup, backup, backup! |If you do try to move your data between operating systems like this, '''''ALWAYS''''' export your database to GRAMPS XML before changing operating system.&amp;#160; If you don't, you may live to regret it.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You can experiment with this by simply putting both the above &amp;lt;code&amp;gt;gramps.bat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt; scripts in the same directory on your removable drive.&amp;#160; If you then run &amp;lt;code&amp;gt;gramps.bat&amp;lt;/code&amp;gt; on Windows and &amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt; on Linux, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/del&gt;will use the same configuration and data files on both operating systems.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You can experiment with this by simply putting both the above &amp;lt;code&amp;gt;gramps.bat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt; scripts in the same directory on your removable drive.&amp;#160; If you then run &amp;lt;code&amp;gt;gramps.bat&amp;lt;/code&amp;gt; on Windows and &amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt; on Linux, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gramps &lt;/ins&gt;will use the same configuration and data files on both operating systems.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Since this behavior is neither encouraged nor tested, there are any number of possible problems you may encounter.&amp;#160; Here are some of the known problems you will see:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Since this behavior is neither encouraged nor tested, there are any number of possible problems you may encounter.&amp;#160; Here are some of the known problems you will see:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Patsyblefebre</name></author>	</entry>

	<entry>
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=43695&amp;oldid=prev</id>
		<title>Patsyblefebre: Patsyblefebre moved page Run GRAMPS from a portable drive to Run Gramps from a portable drive: Gramps</title>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=43695&amp;oldid=prev"/>
				<updated>2013-01-26T06:15:57Z</updated>
		
		<summary type="html">&lt;p&gt;Patsyblefebre moved page &lt;a href=&quot;/wiki/index.php?title=Run_GRAMPS_from_a_portable_drive&quot; class=&quot;mw-redirect&quot; title=&quot;Run GRAMPS from a portable drive&quot;&gt;Run GRAMPS from a portable drive&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php?title=Run_Gramps_from_a_portable_drive&quot; title=&quot;Run Gramps from a portable drive&quot;&gt;Run Gramps from a portable drive&lt;/a&gt;: Gramps&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 06:15, 26 January 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Patsyblefebre</name></author>	</entry>

	<entry>
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=13386&amp;oldid=prev</id>
		<title>Dm1407: Category</title>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=13386&amp;oldid=prev"/>
				<updated>2009-02-15T04:25:12Z</updated>
		
		<summary type="html">&lt;p&gt;Category&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:25, 15 February 2009&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:How do I...]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{languages|Run GRAMPS from a portable drive}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{languages|Run GRAMPS from a portable drive}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 121:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 119:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* You will need to update the media base path in Preferences every time you switch operating system.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* You will need to update the media base path in Preferences every time you switch operating system.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* If your media files are referenced with any directory information (either absolute paths or relative paths with subdirectories), each path will only work on the operating system on which it was entered.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* If your media files are referenced with any directory information (either absolute paths or relative paths with subdirectories), each path will only work on the operating system on which it was entered.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:How do I...]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dm1407</name></author>	</entry>

	<entry>
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=6754&amp;oldid=prev</id>
		<title>Erikdr at 20:20, 3 July 2008</title>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=6754&amp;oldid=prev"/>
				<updated>2008-07-03T20:20:11Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:20, 3 July 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:How do I...]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:How do I...]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{languages|Run GRAMPS from a portable drive}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Some users want to keep their GRAMPS data on a removable drive, either for portability between computers or for security.&amp;#160; This document describes how to accomplish that, and should work whether using a floppy disk, a flash drive, or an external hard drive.&amp;#160; Unfortunately, there are no easy instructions for installing GRAMPS and its dependencies on a removable drive, so these instructions assume and require that GRAMPS be installed on any computer to which you connect the drive.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Some users want to keep their GRAMPS data on a removable drive, either for portability between computers or for security.&amp;#160; This document describes how to accomplish that, and should work whether using a floppy disk, a flash drive, or an external hard drive.&amp;#160; Unfortunately, there are no easy instructions for installing GRAMPS and its dependencies on a removable drive, so these instructions assume and require that GRAMPS be installed on any computer to which you connect the drive.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Erikdr</name></author>	</entry>

	<entry>
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5905&amp;oldid=prev</id>
		<title>Diggernet: /* How it works */</title>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5905&amp;oldid=prev"/>
				<updated>2008-04-03T06:22:20Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;How it works&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 06:22, 3 April 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 84:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 84:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===How it works===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===How it works===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This is a little less forgiving than the Windows version, because bash doesn't have &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;equivalent &lt;/del&gt;of the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Windows &lt;/del&gt;%&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;0 modifiers&lt;/del&gt;.&amp;#160; $0 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;only contains exactly what was used &lt;/del&gt;to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;start &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;script, so if you don't use &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;full &lt;/del&gt;path &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to &lt;/del&gt;the script &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(for example&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;if it's on &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;search path), &lt;/del&gt;the script &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;has no way to determine where it &lt;/del&gt;is located.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Shell scripts use &amp;lt;code&amp;gt;$0&amp;lt;/code&amp;gt; (or alternately &amp;lt;code&amp;gt;${0}&amp;lt;/code&amp;gt;) to refer to &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;path and name &lt;/ins&gt;of the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;script itself.&amp;#160; There are also operators that let you modify that value.&amp;#160; The &amp;lt;code&amp;gt;&lt;/ins&gt;%&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt; character is used to remove part of the end of the string, and what follows that character tells what to remove, with &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt; being a wildcard&lt;/ins&gt;.&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;So &amp;lt;code&amp;gt;&lt;/ins&gt;$&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/ins&gt;0&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;%/*}&amp;lt;/code&amp;gt; says &lt;/ins&gt;to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;remove &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;last &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; and everything after it from &lt;/ins&gt;the path &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and name of &lt;/ins&gt;the script, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;leaving &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;directory where &lt;/ins&gt;the script is located.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The script uses &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&amp;lt;code&amp;gt;dirname $0&amp;lt;/code&amp;gt;&amp;quot; to change directory to the location of this script, and &lt;/del&gt;to set the value of &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The script uses &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;that &lt;/ins&gt;to set the value of &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;then &lt;/ins&gt;runs GRAMPS.&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Setting &lt;/ins&gt;&amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt; on the same line as the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;GRAMPS &lt;/ins&gt;command &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;makes the value available &lt;/ins&gt;to GRAMPS&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&amp;#160; The other way of making the &lt;/ins&gt;value &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;available, with the &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt; &lt;/ins&gt;command&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, would cause the new value to &lt;/ins&gt;carry &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;over into &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;environment &lt;/ins&gt;of the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;shell that ran this &lt;/ins&gt;script &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;after GRAMPS has run.&amp;#160; That could cause problems running GRAMPS normally later, so we do it this way instead&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Once that is set up&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the script &lt;/del&gt;runs GRAMPS.&amp;#160; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Because the value of &lt;/del&gt;&amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is set &lt;/del&gt;on the same line as the command to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;run &lt;/del&gt;GRAMPS&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, that &lt;/del&gt;value &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is only used for that &lt;/del&gt;command &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and will not &lt;/del&gt;carry &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on past &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;end &lt;/del&gt;of the script.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Software Versions==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Software Versions==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Diggernet</name></author>	</entry>

	<entry>
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5904&amp;oldid=prev</id>
		<title>Diggernet: /* Usage */</title>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5904&amp;oldid=prev"/>
				<updated>2008-04-03T06:03:38Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 06:03, 3 April 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the settings in this script (or a copy of it) to match the target computer.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the settings in this script (or a copy of it) to match the target computer.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Edit gramps/keys.ini and remove database-path from the [behavior] section, if present.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Edit gramps/keys.ini and remove database-path from the [behavior] section, if present.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run this script &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;using its full path &lt;/del&gt;to run GRAMPS.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run this script to run GRAMPS.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the media base path in GRAMPS to match your mount point.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# If necessary, edit the media base path in GRAMPS to match your mount point.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Diggernet</name></author>	</entry>

	<entry>
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5903&amp;oldid=prev</id>
		<title>Diggernet: /* &lt;code&gt;gramps.sh&lt;/code&gt; */</title>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5903&amp;oldid=prev"/>
				<updated>2008-04-03T06:02:59Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;&amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 06:02, 3 April 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;# You MUST use the full path to this script when you run it.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# START OF SETTINGS&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# START OF SETTINGS&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;GRAMPS_COMMAND=&amp;quot;/usr/bin/gramps&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;GRAMPS_COMMAND=&amp;quot;/usr/bin/gramps&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;DIRNAME_COMMAND=&amp;quot;/usr/bin/dirname&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# END OF SETTINGS&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# END OF SETTINGS&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;# Go to this script location for good measure&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;cd `$DIRNAME_COMMAND &amp;quot;$0&amp;quot;`&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Set GRAMPSHOME to the path of this script&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Set GRAMPSHOME to the path of this script&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run GRAMPS&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run GRAMPS&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;GRAMPSHOME=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;`$DIRNAME_COMMAND &lt;/del&gt;&amp;quot;$0&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;` &lt;/del&gt;&amp;quot;$GRAMPS_COMMAND&amp;quot; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;GRAMPSHOME=&amp;quot;$&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/ins&gt;0&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;%/*}&lt;/ins&gt;&amp;quot; &amp;quot;$GRAMPS_COMMAND&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;$*&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Diggernet</name></author>	</entry>

	<entry>
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5733&amp;oldid=prev</id>
		<title>Diggernet: /* &lt;code&gt;gramps.sh&lt;/code&gt; */</title>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5733&amp;oldid=prev"/>
				<updated>2008-03-27T05:46:01Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;&amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:46, 27 March 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===&amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt;===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===&amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt;===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/bin/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bash&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#!/bin/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sh&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# You MUST use the full path to this script when you run it.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# You MUST use the full path to this script when you run it.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Set GRAMPSHOME to the path of this script&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Set GRAMPSHOME to the path of this script&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run GRAMPS&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Run GRAMPS&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;GRAMPSHOME=`$DIRNAME_COMMAND &amp;quot;$0&amp;quot;` &amp;quot;$GRAMPS_COMMAND&amp;quot; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;GRAMPSHOME=`$DIRNAME_COMMAND &amp;quot;$0&amp;quot;` &amp;quot;$GRAMPS_COMMAND&amp;quot; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Diggernet</name></author>	</entry>

	<entry>
		<id>http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5722&amp;oldid=prev</id>
		<title>Diggernet: Move from sandbox</title>
		<link rel="alternate" type="text/html" href="http://www.gramps-project.org/wiki/index.php?title=Run_Gramps_from_a_portable_drive&amp;diff=5722&amp;oldid=prev"/>
				<updated>2008-03-26T07:35:52Z</updated>
		
		<summary type="html">&lt;p&gt;Move from sandbox&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:How do I...]]&lt;br /&gt;
&lt;br /&gt;
Some users want to keep their GRAMPS data on a removable drive, either for portability between computers or for security.  This document describes how to accomplish that, and should work whether using a floppy disk, a flash drive, or an external hard drive.  Unfortunately, there are no easy instructions for installing GRAMPS and its dependencies on a removable drive, so these instructions assume and require that GRAMPS be installed on any computer to which you connect the drive.&lt;br /&gt;
&lt;br /&gt;
{{man warn| Make Regular Backups |Since removable drives can be more fragile and more easily lost than the hard drive in your computer, be sure to make regular backups of your data if you use this technique.  For that matter, you should always make regular backups of important data anyway, because stuff can happen to your hard drive, too.  But be especially careful if your data is stored on floppies or flash drives.}}&lt;br /&gt;
&lt;br /&gt;
==What this does==&lt;br /&gt;
The magic is done in scripts that you use to start GRAMPS.  The scripts figure out the location of the directory they are run from, on your removable drive, then tell GRAMPS to use that directory as its home directory.  They do that using the &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt; environment variable, which GRAMPS checks to see if its home directory should be somewhere other than the user's home directory.  GRAMPS will then read and write its configuration and data to a subdirectory named &amp;lt;code&amp;gt;gramps&amp;lt;/code&amp;gt; in directory that contains these scripts.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
Save the scripts below in the directory you want to use as your GRAMPS home directory on the removable drive.  When run, the scripts will direct GRAMPS to the directory they are installed in.  Edit the SETTINGS section of the scripts you will use, so that the values there are correct for your computer.&lt;br /&gt;
&lt;br /&gt;
If you keep your media files on the removable drive with your GRAMPS data (what use are they otherwise?), be sure to make them use relative paths.  Doing so will allow the paths to continue working as you move between computers (with adjustments to the media base path), while absolute paths are almost certain to break.&lt;br /&gt;
&lt;br /&gt;
You will probably need to change the media base path setting in GRAMPS each time you run it on a different computer.  You may also need to edit some settings in the scripts for different computers.  If there are certain computers which you use regularly that need different settings in the scripts, you can easily make separate script copies for each one, to avoid the need to re-edit them.&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;gramps.bat&amp;lt;/code&amp;gt;===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@echo off&lt;br /&gt;
&lt;br /&gt;
REM Make changes to environment variables local to this block&lt;br /&gt;
setlocal&lt;br /&gt;
&lt;br /&gt;
REM START OF SETTINGS&lt;br /&gt;
&lt;br /&gt;
set PYTHON_COMMAND=C:\Python25\pythonw.exe&lt;br /&gt;
set GRAMPS_DIR=C:\Program Files\gramps&lt;br /&gt;
&lt;br /&gt;
REM END OF SETTINGS&lt;br /&gt;
&lt;br /&gt;
REM Set GRAMPSHOME to the drive and path of this script&lt;br /&gt;
set GRAMPSHOME=%~dp0&lt;br /&gt;
REM Go to this script location for good measure&lt;br /&gt;
%~d0&lt;br /&gt;
cd &amp;quot;%~p0&amp;quot;&lt;br /&gt;
REM Run GRAMPS&lt;br /&gt;
&amp;quot;%PYTHON_COMMAND&amp;quot; &amp;quot;%GRAMPS_DIR\gramps.py&amp;quot;&lt;br /&gt;
&lt;br /&gt;
REM End the local environment block&lt;br /&gt;
endlocal&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
# Make sure GRAMPS is installed and working on the target computer.&lt;br /&gt;
# Attach your drive to the target computer.&lt;br /&gt;
# If necessary, edit the settings in this batch file (or a copy of it) to match the target computer.&lt;br /&gt;
# Edit gramps/keys.ini and remove database-path from the [behavior] section, if present.&lt;br /&gt;
# Double click the batch file to run GRAMPS.&lt;br /&gt;
# If necessary, edit the media base path in GRAMPS to match your removable drive.&lt;br /&gt;
&lt;br /&gt;
===How it works===&lt;br /&gt;
The &amp;lt;code&amp;gt;setlocal&amp;lt;/code&amp;gt; command tells Windows that you want to use a temporary copy of the environment that will be discarded later.  The &amp;lt;code&amp;gt;endlocal&amp;lt;/code&amp;gt; command tells Windows to go ahead and throw away that temporary environment.  What this does is ensure that any changes made to the environment in the script (especially to &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt;) do not carry on past the end of the script.&lt;br /&gt;
&lt;br /&gt;
Batch files use &amp;lt;code&amp;gt;%0&amp;lt;/code&amp;gt; to refer to the drive, path and name of the batch file itself.  You can also insert codes to reference specific parts of the batch file location.  For example, &amp;lt;code&amp;gt;%~d0&amp;lt;/code&amp;gt; refers to just the drive letter, and &amp;lt;code&amp;gt;%~p0&amp;lt;/code&amp;gt; refers to just the path.  These codes can be combined.  Thus, &amp;lt;code&amp;gt;%~dp0&amp;lt;/code&amp;gt; refers to the drive letter and path where the batch file is located.  The batch file uses these to set the value of &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt;, then change drive and directory to that location.&lt;br /&gt;
&lt;br /&gt;
Once that is set up, the batch file runs GRAMPS.&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt;===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# You MUST use the full path to this script when you run it.&lt;br /&gt;
&lt;br /&gt;
# START OF SETTINGS&lt;br /&gt;
&lt;br /&gt;
GRAMPS_COMMAND=&amp;quot;/usr/bin/gramps&amp;quot;&lt;br /&gt;
DIRNAME_COMMAND=&amp;quot;/usr/bin/dirname&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# END OF SETTINGS&lt;br /&gt;
&lt;br /&gt;
# Go to this script location for good measure&lt;br /&gt;
cd `$DIRNAME_COMMAND &amp;quot;$0&amp;quot;`&lt;br /&gt;
# Set GRAMPSHOME to the path of this script&lt;br /&gt;
# Run GRAMPS&lt;br /&gt;
GRAMPSHOME=`$DIRNAME_COMMAND &amp;quot;$0&amp;quot;` &amp;quot;$GRAMPS_COMMAND&amp;quot; &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
# Make sure GRAMPS is installed and working on the target computer.&lt;br /&gt;
# Attach your drive to the target computer and mount it.&lt;br /&gt;
# If necessary, edit the settings in this script (or a copy of it) to match the target computer.&lt;br /&gt;
# Edit gramps/keys.ini and remove database-path from the [behavior] section, if present.&lt;br /&gt;
# Run this script using its full path to run GRAMPS.&lt;br /&gt;
# If necessary, edit the media base path in GRAMPS to match your mount point.&lt;br /&gt;
&lt;br /&gt;
===How it works===&lt;br /&gt;
This is a little less forgiving than the Windows version, because bash doesn't have the equivalent of the Windows %0 modifiers.  $0 only contains exactly what was used to start the script, so if you don't use the full path to the script (for example, if it's on the search path), the script has no way to determine where it is located.&lt;br /&gt;
&lt;br /&gt;
The script uses &amp;quot;&amp;lt;code&amp;gt;dirname $0&amp;lt;/code&amp;gt;&amp;quot; to change directory to the location of this script, and to set the value of &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Once that is set up, the script runs GRAMPS.  Because the value of &amp;lt;code&amp;gt;GRAMPSHOME&amp;lt;/code&amp;gt; is set on the same line as the command to run GRAMPS, that value is only used for that command and will not carry on past the end of the script.&lt;br /&gt;
&lt;br /&gt;
==Software Versions==&lt;br /&gt;
While these instructions help you easily move your GRAMPS data between computers, '''''no''''' testing has been done to explore compatibility between different software versions.  It is recommended that you only move your data between computers that share the same GRAMPS, Python, database and operating system versions.  The more those versions differ, the greater risk of database corruption and data loss.  You are encouraged to export your database to GRAMPS XML for safety when moving the data between computers with differing (or unknown) software versions.  Do this on your known safe computer before moving to an unknown computer, and again when you have finished with GRAMPS on the new computer before moving back to your regular computer.&lt;br /&gt;
&lt;br /&gt;
===GRAMPS===&lt;br /&gt;
GRAMPS 2.x and 3.x are ''NOT'' compatible with each other.  The instructions and scripts here are intended for use with GRAMPS 3.0, and it is highly recommended that you ensure the '''same''' version of GRAMPS is installed on each computer.  A similar technique to that described here could be used with GRAMPS 2.2, but doing so is discouraged due to the risk of [[Recover corrupted grdb|database corruption]].&lt;br /&gt;
&lt;br /&gt;
===Python and Database===&lt;br /&gt;
GRAMPS stores its data with the BSDDB engine bundled with Python.  While the Python and BSDDB developers do make an effort to keep new versions of their software backward compatible, the risk of incompatibility increases with the distance between versions.  To determine the versions of Python and BSDDB on a computer, enter the following commands in a terminal window (the input prompts are &amp;lt;code&amp;gt;&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; python&lt;br /&gt;
Python 2.5.1 (r251:54863, Mar  7 2008, 03:41:45)&lt;br /&gt;
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2&lt;br /&gt;
Type &amp;quot;help&amp;quot;, &amp;quot;copyright&amp;quot;, &amp;quot;credits&amp;quot; or &amp;quot;license&amp;quot; for more information.&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import bsddb&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; bsddb.__version__&lt;br /&gt;
'4.4.5.2'&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; exit()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Operating System===&lt;br /&gt;
Moving your GRAMPS data between computers with different operating systems seems possible, but is '''''NOT''''' officially supported.  '''Do so at your own risk!'''&lt;br /&gt;
&lt;br /&gt;
{{man warn| Backup, backup, backup! |If you do try to move your data between operating systems like this, '''''ALWAYS''''' export your database to GRAMPS XML before changing operating system.  If you don't, you may live to regret it.}}&lt;br /&gt;
&lt;br /&gt;
You can experiment with this by simply putting both the above &amp;lt;code&amp;gt;gramps.bat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt; scripts in the same directory on your removable drive.  If you then run &amp;lt;code&amp;gt;gramps.bat&amp;lt;/code&amp;gt; on Windows and &amp;lt;code&amp;gt;gramps.sh&amp;lt;/code&amp;gt; on Linux, GRAMPS will use the same configuration and data files on both operating systems.&lt;br /&gt;
&lt;br /&gt;
Since this behavior is neither encouraged nor tested, there are any number of possible problems you may encounter.  Here are some of the known problems you will see:&lt;br /&gt;
* When first opening a database after changing operating system, you may get an error that says &amp;quot;Low level database corruption detected&amp;quot; and instructs you to use the Repair button to fix the problem.  This seems to work, but ''it is not known for sure whether any data loss may occur in the process''.&lt;br /&gt;
* You will need to update the media base path in Preferences every time you switch operating system.&lt;br /&gt;
* If your media files are referenced with any directory information (either absolute paths or relative paths with subdirectories), each path will only work on the operating system on which it was entered.&lt;/div&gt;</summary>
		<author><name>Diggernet</name></author>	</entry>

	</feed>