← Back to the Export tab · Export, Stats & Notifications
Export to central experimental
This script (export/DEVELOPMENT/export_central_sync.script, a C-shell
script) mirrors the whole project directory to a remote
machine with rsync over SSH — in Focus, 4d's predecessor, a central
server where the dataset was pruned and reprocessed without burdening the
workstation next to the microscope. Run from the project's merge/
directory, it sends everything one level up (../*, that is, every
image group and merge/ itself) to
<user>@<host>:<remote path>/<project directory name>.
Status. One of the four Development exports inherited from
Focus, not shown in 4D-STEM or Fibril picking projects and awaiting
porting. Its parameters (
rsync_host, rsync_user,
rsync_remote_path, rsync_del, rsync_large,
rsync_max_size) are not defined in the current parameter files, so
the Parameters panel shows nothing to set, and it expects the Focus helper
variables (proc_2dx). It does not run as it stands.
Parameters
| Parameter | Role |
|---|---|
rsync_host, rsync_user | The remote machine and the account there. SSH login without a password (a shared key) must be set up for that account, with permission to write to the project storage. |
rsync_remote_path | The directory on the remote machine under which the project is placed, in a directory of the project's own name. |
rsync_del | y adds --delete: files removed here are removed there too, making the copy an exact mirror. |
rsync_large, rsync_max_size | rsync_large = n leaves out files larger than rsync_max_size gigabytes (--max-size), e.g. to skip the raw stacks. |
Algorithm
- Builds the option list from the parameters and prints the command.
- Runs
rsync -avzhuP [--delete] [--max-size=…G] ../* user@host:remote/project: archive mode, compressed, only files newer than the copy (-u), with progress. A second run transfers only what changed.