data.sync.station
data.sync.station is the utility used to synchronize a station's data directories with a remote server. It assumes that an SSH key have been exchanged with the target.
The defualt mode of operation is NOAA authoritative. In this mode all directories except the edit directives and clean archive are local authoritative and pushed to the target. The edit directives and clean archive are remote authoritative and read from the target.
The secondary mode is station authoritative. This is the inverse of NOAA authoritative. Only the edit directives and clean archive are local authoritative, everything else is remote.
The final mode is station authoritative sync to NOAA. This sets all directories to remote authoritative and reads them from the target.
By default the edit directives, comments and segmentation are synchronized bidirectionally. That is the authoritative is transfered first but then the non-authoritative copy is retrieved if it is newer.
Command Line Usage
data.sync.station [--mode=noaa|station|stationsync] [--local=directory] [--remote=directory] [--target=server] [--localrawdata] [--verbose] station
Arguments
--mode=noaa|station|stationsync
Set the mode to one of the modes described above. “noaa” for the default NOAA authoritative. “station” for station authoritative. “stationsync” for station authoritative sync to NOAA.
--local=directory
Add directory to the list of local authoritative ones, removing from the remote authoritative list if needed.
--remote=directory
Add directory to the list of local authoritative ones, removing from the local authoritative list if needed.
--unidirectional=directory
Set directory to unidirectional synchronization.
--bidirectional=directory
Set directory to bidirectional synchronization.
--target=server
Set the target server, by default aerolab6.cmdl.noaa.gov.
--localrawdata
Do not alter the local raw data archive.
--verbose
Enable verbose output.
station
Station to sync for.
Example Usage
data.sync.station --mode=noaa lln