PTGBastion

The BASTION app

Syncing

The Network Gate, syncing by hand or on a schedule, and what a sync does and never does.

The Network Gate

BASTION sends and receives nothing until you allow it. The switch for that is the Network Gate, on the Sync screen under NETWORK CONTROL.

State What the screen says What it means
Off DISARMED — no sockets open. Arm to enable sync. Nothing can transfer.
On ARMED — transfers permitted. Sync can run. The screen also says when the gate will switch itself off.

With the default settings the gate disarms 10 minutes after the last transfer, or when you leave the Sync screen.

Leaving the Sync screen stops a sync that is running, unless you change the setting below. Disarming the gate cancels the transfer.

Change when the gate disarms

Choose Tune auto-disarm…:

  • Disarm after transmit: on by default. Off means the gate stays armed until you switch it off.
  • Idle time after transmit: 1 to 30 minutes. The default is 10.
  • Keep transmitting while…:
    • On the Sync screen only (the default, and the most cautious);
    • Anywhere in the app, so you can read or work in the app while it syncs;
    • Even in the background, so it keeps going when the app is closed.

Choose Save.

Going dark

  • Wi-Fi Panel opens Android's own Wi-Fi panel.
  • Go Dark opens Android's airplane-mode settings. When you come back, the screen confirms Verified RF DARK — no active transports, or tells you transports are still active.

BASTION cannot switch the device's radios itself. Android does not allow apps to do that.

Sync by hand

  1. Arm the Network Gate.
  2. Choose Sync Now to sync the default server. To sync a different one, use the sync button on its card.

Only one server syncs at a time.

While it runs you see the file name, a count such as "File 3 of 5", the amount transferred and the time left. Cancel Sync stops it. You can hide the progress sheet and the sync keeps running while you stay on the Sync screen; a Sync in progress card with VIEW brings it back. To move around the app while it syncs, set Keep transmitting while… to Anywhere in the app first.

When it finishes, Last sync under the button shows the date.

Sync on a schedule

Under AUTO-SYNC on the Sync screen, turn on Scheduled auto-sync. Then choose Edit schedule…:

  • Window start and Window end. The default is 02:00 to 04:00. The window may cross midnight.
  • Sync every: 15 min, 30 min, 1 hr or 2 hr. The default is 30 min.

Choose Save schedule.

How it behaves:

  • Inside the window the app arms the Network Gate by itself for each run and disarms it afterwards.
  • A sync only starts inside the window. One that is already running when the window ends is allowed to finish, so the last run can go on for a few minutes past the end time.
  • It needs the device to have a connection. Airplane mode always wins.
  • It syncs the default server only. It does not pull a PTG library.
  • It skips an SFTP server you haven't trusted yet. Do one sync by hand first.
  • Timing is approximate. Android decides the exact moment, a few minutes either way.

With scheduled auto-sync off, the device transmits only when you tap Sync Now.

What a sync does

On a personal device, a sync:

  • Downloads books, map packs and overlays, drawing layers and waypoints, app installers and configuration from the server's folders.
  • Uploads only your assistance reports. They stay on the device after upload.
  • Moves only what changed. Content is compared by its fingerprint where the server provides one, and otherwise by name, size and date, so a file the device already holds is not downloaded again.
  • Files books into categories named after the folders they sit in on the server.
  • Carries on past a failure. A file that fails is listed under ERRORS and the rest of the sync continues.

A map pack the server is still preparing is not an error. It is listed under PENDING, with the time to try again, and arrives on a later sync.

Keeping your own shelf layout

The switch Adopt incoming shelf layout on the Sync screen decides what happens to books you already have when a sync brings the same book filed differently:

  • On: the book moves to the sender's folders and categories. Your old filing is kept as secondary categories.
  • Off: the book stays where you filed it.

What a sync never does

  • It never runs while the gate is disarmed, except for a scheduled sync that started inside an auto-sync window you set.
  • It never uploads your books, maps, drawings or waypoints from a personal device. For content, sync is one-way: server to device.
  • It never installs an app by itself. Installers only appear under SYNCED APPS for you to install.
  • It never removes content from the device because it disappeared from the server.
  • It only contacts the server you saved.

One thing to know about maps: if you delete a synced map on the device while it is still on the server, the next sync downloads it again.

Sync history

SYNC HISTORY, at the bottom of the Sync screen, has one row for each run. Tap a row for SYNC DETAIL:

  • the server, transport, start time and duration;
  • how much was downloaded, uploaded and already held;
  • WHAT MOVED, item by item;
  • ERRORS and PENDING, if there were any.

Clear removes the log on the device. It doesn't affect your content.