Skip to content

9. Updates and backups ​

9.1 A new version of the stack ​

On the Mac, online:

bash
cd ~/x30/x30_ros
git pull
bash tools/pack_sources.sh ~/x30/x30_sources.tar.gz

At the robot, to both hosts:

bash
cd ~/x30
scp x30_sources.tar.gz ysc@192.168.1.106:~/
scp x30_sources.tar.gz ysc@192.168.1.105:~/

On each host a clean workspace and its build (Section 4.4):

bash
cd ~/x30_ws
rm -rf src.prev build devel
mv src src.prev
tar -xzf ~/x30_sources.tar.gz
bash src/x30_ros/tools/check_deps.sh
bash src/x30_ros/tools/x30_host.sh build

The build ends with the host’s restart: sudo systemctl restart x30-navigation on .106, sudo systemctl restart x30-perception on .105; the services stay installed. A new version may need a new package (check_deps.sh says so); the CHANGELOG.md of x30_ros says what changed and whether a settings file needs a new line.

9.2 A new app ​

bash
cd ~/x30
gh release download -R DarmawanRobotics/X30Controller \
  -p 'x30-controller-*.apk' --clobber
adb install -r x30-controller-*.apk

9.3 A new NETRA ​

Online:

bash
cd ~/x30/Netra
git pull
git submodule update --init --recursive
scripts/local.sh up

up rebuilds what changed.

9.4 What to keep ​

WhereWhat
~/x30/map/<site>/ (.106)the site: routes, tags, inspection points. Small, precious: copy it after every change
~/x30/reports/ (.106)the inspection reports; days go when the disk is short
~/x30/recordings/ (.105)the camera recordings; the oldest go first
/etc/x30/*.envthe settings and secrets of each host
NETRAscripts/local.sh export: database, photos and plans in one file
bash
rsync -a ysc@192.168.1.106:x30/map/ ~/x30/backup/map/
rsync -a ysc@192.168.1.106:x30/reports/ ~/x30/backup/reports/