From 7bdc1f543549fe3a95c2ba82fa727fcb422134ed Mon Sep 17 00:00:00 2001
From: "Philip Sargent (muscogee)" This is NOT a tutorial. This is a set of reminders for people who already know all this stuff.
+
+
+ Photos, scans (logbooks, drawn-up cave segments) (This was about
+40GB of stuff in 2019 which you probably don't actually need locally).
+ If you don't need an entire copy of all of it, then it is probably best to use Filezilla/ftp to
+copy just a small part of the filesystem to your own machine and to upload the bits you add to or edit.
+Instructions for installing and using Filezilla are found in the expo user instructions for
+uploading photographs: uploading.html.
+
+ To sync all
+the files from the server to your local expofiles directory on your laptop: rsync -nazv --delete-after --prune-empty-dirs expo@expo.survex.com:expofiles/ /home/expo/expofiles To sync the local expofiles directory back to the server after you have edited updates (e.g. scanned some hand-drawn surveys into expofiles/surveyscans/ (but only if your machine runs Linux): rsync -nazv /home/expo/expofiles/surveyscans/2019/ expo@expo.survex.com/expofiles/surveyscans/2019 Always
+ (do be incredibly careful not to delete piles of stuff then rsync back, or to get the directory level of the command wrong - as it'll all get deleted on the server too, and we may not have backups!). It's absolutely vital to use rsync --dry-run --delete-after first to check what would be deleted.
+
+ If you are using rsync from a Windows machine you will not get all the files as some filenames are incompatible with Windows. What will happen is that rsync will invisibly change the names as it downloads them from the Linux expo server to your Windows machine, but then it forgets what it has done and tries to re-upload all the renamed files to the server even if you have touched none of them. Now there won't be any problems with simple filenames using all lowercase letters and no funny characters, but we have nothing in place to stop anyone creating such a filename somewhere in that 40GB or of detecting the problem at the time. So don't do it. If you have a Windows machine use Filezilla not rsync.
+
+ (We may also have an issue with rsync not using the appropriate user:group attributes for files pushed back to the server. This may not cause any problems, but watch out for it.) This is a complete list for doing software development of survex and tunnel (but not troggle) as well as accessing expo data and doing survey data reduction.
-The software development stuff should be separated out into separate pages. For Windows users only:
+ For Android phones:
CUCC Expedition Handbook
Logbooks Import
+
Importing the logbook into troggle
diff --git a/handbook/computing/qstart-rsync.html b/handbook/computing/qstart-rsync.html
new file mode 100644
index 000000000..978aab2c6
--- /dev/null
+++ b/handbook/computing/qstart-rsync.html
@@ -0,0 +1,59 @@
+
+
+
+
+CUCC Expedition Handbook - rsync Quick
+
+Quick Reminder - rsync
+Manual Version Control using rsync
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/handbook/computing/yourlaptop.html b/handbook/computing/yourlaptop.html
index 1de280f12..f710f117a 100644
--- a/handbook/computing/yourlaptop.html
+++ b/handbook/computing/yourlaptop.html
@@ -18,8 +18,12 @@
This is a complete list for doing software development of survex and tunnel
+ (but not troggle) as well as accessing expo data and doing survey data reduction.
+This page needs to be edited so that the software development stuff is separated
+out into separate pages.
+So that the people who only want to do cave data stuff
+don't see a lot of complex stuff they don't need.Operating Systems
@@ -76,17 +80,21 @@ but all the recommended software here is open source (and please don't install p
-
+
@@ -110,6 +118,9 @@ You can do this entirely on your own if you have access to the expo laptopOn a Windows machine you will need to configure pageant (the putty authentication agent)
to run at startup to load your key. Note that you are loading your private key, the .ppk file, into pageant and that this key never leaves your laptop.
Idiots guide to setting up git for expo + - PDF - Brendan's guide. Uses PuTTy and GitKraken. +
The above gets TortoiseHg and the command-line PuTTY tools (ssd, sftp, pscp) running, but doesn't get Cygwin rsync working. You might like to try this (untested).
Full illustrated instructions:
Again, we hope that this issue will go away when we migrate the expoweb repo from mercurial to git before the 2020 Expo. -
If you know what you are doing here is the basic info on what's where:
-(if you don't know what you're doing, skip to Editing the data management system below.)
+
This section is all about how to use mercurial. Since we are changing to git it has been -removed to a separate place. - - -
Photos, scans (logbooks, drawn-up cave segments) (This was about -40GB of stuff in 2019 which you probably don't actually need locally). -
If you don't need an entire copy of all of it, then it is probably best to use Filezilla/ftp to -copy just a small part of the filesystem to your own machine and to upload the bits you add to or edit. -Instructions for installing and using Filezilla are found in the expo user instructions for -uploading photographs: uploading.html. - -
To sync all -the files from the server to your local expofiles directory on your laptop:
- -rsync -nazv --delete-after --prune-empty-dirs expo@expo.survex.com:expofiles/ /home/expo/expofiles
- -To sync the local expofiles directory back to the server after you have edited updates (e.g. scanned some hand-drawn surveys into expofiles/surveyscans/ (but only if your machine runs Linux):
- -rsync -nazv /home/expo/expofiles/surveyscans/2019/ expo@expo.survex.com/expofiles/surveyscans/2019
- -then CHECK that the list of files it produces matches the ones you absolutely intend to delete forever! ONLY THEN do it without the "-n" option. "-n" is the same as "--dry-run" which shows you the overwriting changes but doesn't actually do them. - -Always -
(do be incredibly careful not to delete piles of stuff then rsync back, or to get the directory level of the command wrong - as it'll all get deleted on the server too, and we may not have backups!). It's absolutely vital to use rsync --dry-run --delete-after first to check what would be deleted. - -
If you are using rsync from a Windows machine you will not get all the files as some filenames are incompatible with Windows. What will happen is that rsync will invisibly change the names as it downloads them from the Linux expo server to your Windows machine, but then it forgets what it has done and tries to re-upload all the renamed files to the server even if you have touched none of them. Now there won't be any problems with simple filenames using all lowercase letters and no funny characters, but we have nothing in place to stop anyone creating such a filename somewhere in that 40GB or of detecting the problem at the time. So don't do it. If you have a Windows machine use Filezilla not rsync. - -
(We may also have an issue with rsync not using the appropriate user:group attributes for files pushed back to the server. This may not cause any problems, but watch out for it.)
-To edit the data management system fully, you need to use the disributed version control system -(DVCM) software which is currently mercurial/TortoiseHg. +
To edit the data management system fully, you need to use the version control system + software which is currently git and mercurial. Some (static text) pages can be edited directly on-line using the 'edit this page link' which you'll see if you are logged into troggle. In general the dynamically-generated pages, such as those describing caves which are generated from the cave survey data, can not be edited in this way, but forms are provided for some types of these like 'caves'.
If you know what you are doing here is the basic info on what's where:
+(if you don't know what you're doing, skip to Editing the data management system below.)
So, you have staggered off the plateau with a fist-full of notes and surveys, diff --git a/handbook/survey/newsurvex.html b/handbook/survey/newsurvex.html index 2925d2288..6eaf18b12 100644 --- a/handbook/survey/newsurvex.html +++ b/handbook/survey/newsurvex.html @@ -14,6 +14,9 @@
If you have not come to this page from the sequence starting at Starting a New Cave" then go and read that first.
@@ -34,7 +37,7 @@ and tell someone nerdy when you have finished and they will ensure that it is saved, committed, and pushed appropriately.
If you have several parts of the cave surveyed on one trip, create several distinct .svx files.
to be documented
Tunnel only produces plan surveys, but they are very pretty. diff --git a/handbook/survey/newwallet.html b/handbook/survey/newwallet.html index 4e2a0e7cb..09e7b6fff 100644 --- a/handbook/survey/newwallet.html +++ b/handbook/survey/newwallet.html @@ -15,6 +15,10 @@