Expand description
Config and disk backup ops.
reference: horto-os/scripts/s3_backup_etc_configs.sh reference: horto-os/scripts/timestamped_backup_etc_configs.sh reference: horto-os/scripts/partclone_backup_sda5.sh reference: horto-os/docs/BACKUP_YOUR_HORTO-OS.MD
Structsยง
- Backup
Status - Snapshot of backup-related host state for status API / TUI.
- Disk
Backup Flags - Boolean disk-backup readiness flags (flattened in JSON).
- Disk
Backup Opts - Options for a partclone-based eMMC partition backup.
- Disk
Backup Probe - Readiness probe for full-disk / partition image backup.
- EtcBackup
Report - Result of copying managed
/etcentries into a backup tree. - Shrink
Backup Opts - Options for shrink-backup wrapper (optional third method).
Functionsยง
- backup_
disk - Apply partclone backup when guards pass.
- backup_
etc_ initial - Protected initial
/etcbackup (same destination as setup step s3). - backup_
etc_ timestamped - Timestamped
/etcbackup under/srv/backup/etc/YYYYMMDD-HHMMSS. - backup_
shrink - Plan or run shrink-backup when the tool is on PATH.
- backup_
status - Aggregate backup status for API / dashboard.
- copy_
managed_ etc - Copy managed
/etcpaths (from embedded config top-level names) intodest. - disk_
image_ ๐name - list_
timestamped_ etc_ backups - List timestamped backup directory names (newest last).
- looks_
like_ ๐emmc_ root - looks_
like_ ๐removable_ root - plan_
disk_ backup - Plan actions for a partclone backup (always safe to call).
- probe_
disk_ backup - Probe whether a partclone eMMC backup is safe to run now.
- root_
mount_ source - Resolve what
/is mounted from (best effort). - run_
partclone_ ๐gzip - should_
skip_ ๐control