Update source/agent-remote/datacommands_v2.sh
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 28s
Build-Test-Publish / build (linux/arm64) (push) Successful in 52s

This commit is contained in:
j
2026-01-03 16:23:17 +13:00
parent a36c387eb5
commit 637ae51f29

View File

@@ -1,12 +1,14 @@
#!/bin/bash
# Refactored data commands with type-specific functions and standardized labels
# Format: <command>_<type> <label> <location>
# Format: <command>_<type> <type1:label1:location1> <type2:label2:location2> ....
# where:
# - command: create, destroy, backup, restore
# - type: file, path, volume
# - label: standardized identifier (e.g., "config", "data", "logs")
# - location: actual path/volume name (varies per installation)
# - location: for files - full file path.
# for paths - full directory path
# for volumes - volume label
MYID=$(id -u)
MYGRP=$(id -g)