Documentation
PLEASE NOTE: This document applies to latest version and not to the latest stable release v2.21
Documentation for other releases can be found by using the version selector in the top right of any doc page.lbu
Manage Alpine Local Backup (lbu) for diskless Alpine systems.
Attributes
check_mode:
support: full
Parameters
| Parameter | Required | Type | Values | Description |
|---|---|---|---|---|
| executable | string | Path of the lbu binary to use. [default: "lbu"] |
||
| extra_args | string | Additional options to pass to lbu. | ||
| path | string | LBU overlay directory path. | ||
| include | array | File or list of files to add to LBU include list. | ||
| exclude | array | File or list of files to remove from LBU include list. | ||
| state | string | commit rollback |
Action to perform: commit saves changes, rollback reverts to last commit. |
|
| message | string | Commit message for lbu commit. | ||
| package | string | Create an apk package backup at the specified path. | ||
| media | string | Backup media type (e.g., usb, floppy). |
||
| verbose | boolean | Enable verbose output. [default: false] |
Example
- name: Commit LBU changes
lbu:
state: commit
- name: Commit with custom message
lbu:
state: commit
message: "Added app configuration"
- name: Rollback to last committed state
lbu:
state: rollback
- name: Add files to LBU include list
lbu:
include:
- /etc/config/app.conf
- /etc/app/settings.yaml
- name: Remove files from LBU include list
lbu:
exclude:
- /etc/config/temp.conf
- name: Create backup package
lbu:
package: /backup/backup.apk
- name: Set backup media
lbu:
media: usb