2024-10-18 14:28:25 +02:00
|
|
|
# lbu
|
|
|
|
|
|
|
|
> Manage `apk` overlay files on a diskless Alpine Linux system.
|
|
|
|
> Note: subcommands like `include` write to `/etc`, which is stored in RAM. You need to run `lbu commit` to save the changes.
|
|
|
|
> More information: <https://wiki.alpinelinux.org/wiki/Alpine_local_backup>.
|
|
|
|
|
|
|
|
- Commit changes to persistent storage (only files in `/etc` by default):
|
|
|
|
|
2025-03-10 16:09:57 +00:00
|
|
|
`lbu {{[ci|commit]}}`
|
2024-10-18 14:28:25 +02:00
|
|
|
|
|
|
|
- List files that would be saved using `commit`:
|
|
|
|
|
2025-03-10 16:09:57 +00:00
|
|
|
`lbu {{[st|status]}}`
|
2024-10-18 14:28:25 +02:00
|
|
|
|
|
|
|
- Display changes in tracked files that would be saved using `commit`:
|
|
|
|
|
|
|
|
`lbu diff`
|
|
|
|
|
|
|
|
- Include a specific file or directory in the `apk` overlay:
|
|
|
|
|
2025-03-10 16:09:57 +00:00
|
|
|
`lbu {{[inc|include]}} {{path/to/file_or_directory}}`
|
2024-10-18 14:28:25 +02:00
|
|
|
|
|
|
|
- Exclude a specific file or directory in `/etc` from the `apk` overlay:
|
|
|
|
|
2025-03-10 16:09:57 +00:00
|
|
|
`lbu {{[ex|exclude]}} {{path/to/file_or_directory}}`
|
2024-10-18 14:28:25 +02:00
|
|
|
|
|
|
|
- Display the list of manually included/excluded files:
|
|
|
|
|
2025-03-10 16:09:57 +00:00
|
|
|
`lbu {{include|exclude}} -l`
|
2024-10-18 14:28:25 +02:00
|
|
|
|
|
|
|
- List backups (previously created overlays):
|
|
|
|
|
2025-03-10 16:09:57 +00:00
|
|
|
`lbu {{[lb|list-backup]}}`
|
2024-10-18 14:28:25 +02:00
|
|
|
|
|
|
|
- Revert to a backup overlay:
|
|
|
|
|
|
|
|
`lbu revert {{overlay_filename.tar.gz}}`
|