Files
ermnvldmr.com/services/docs/content/en/root/reference/sync.md
T

1.9 KiB

title, description, weight
title description weight
Synchronization Actions Repository updates, package synchronization, and data backups. 54

Synchronization actions ensure that the host's state remains consistent with the defined configurations in the remote repositories.

Core Synchronization Actions

Action Description
sync/packages Synchronizes node packages and their configurations across the system.
sync/repository Updates the main configuration repository to its latest state from GitHub.
sync/tiers Triggers the node-specific backup strategy for the configured Tiers.

Repository Synchronization (sync/repository)

The sync/repository action is responsible for keeping the host's configuration repository up-to-date with its remote source. It typically performs a git pull on the main configuration repository and may optionally trigger sub-module updates for the Commons repository.

This ensures that any changes to the node configurations, actions, or source files are correctly pulled down to the target host.

Backup Synchronization (sync/tiers)

The sync/tiers action is the primary entry point for a node's backup strategy.

  • No Default Implementation: The framework itself does not provide a default backup mechanism, allowing operators to design a custom strategy suitable for their needs.
  • Custom Overrides: As a "Smart Dispatcher" action, you can define your backup logic by placing a custom script in .operator/local/scripts/actions/sync/tiers.
  • Example Implementation: A common practice is to use a tool like Restic within this custom script to perform off-site backups of critical data (Tiers 1 and 2) to an S3-compatible storage backend.

See also: