Skip to content

VMBackup: Document vmbackup.conf options including df -kl local flag#2180

Open
jonathanbrenes wants to merge 1 commit into
Azure:masterfrom
jonathanbrenes:investigate/vmbackup-df-kl-documentation
Open

VMBackup: Document vmbackup.conf options including df -kl local flag#2180
jonathanbrenes wants to merge 1 commit into
Azure:masterfrom
jonathanbrenes:investigate/vmbackup-df-kl-documentation

Conversation

@jonathanbrenes
Copy link
Copy Markdown

Summary

Documents the user-facing configuration options available in /etc/azure/vmbackup.conf, which were previously undocumented outside of inline code comments.

This was prompted by the onlyLocalFilesystems option introduced in PR #1562, which switches df -k to df -kl to prevent the size calculation from hanging when network mounts (NFS, CIFS, FUSE, etc.) are unreachable or slow. That option had no documentation in the README or the template config file, making it essentially undiscoverable.

What's documented

Option Purpose
fsfreeze Freeze filesystems before snapshot for application consistency
onlyLocalFilesystems Use df -kl to avoid hangs on network mounts (PR #1562)
MountsToSkip Exclude specific mount points from freeze
seqsnapshot Control parallel vs sequential disk snapshots

Changes

  • README.txt: Added a Configuration section with plain-text descriptions of all user-relevant options and an example config.
  • vmbackup.conf template: Added commented-out entries with descriptions for each option so they are discoverable without reading source code.

Impact

Documentation-only change. No behavior changes.

Document user-facing configuration options in README.txt and the
template vmbackup.conf. This addresses the lack of documentation
for the onlyLocalFilesystems option originally introduced in PR Azure#1562
("Fix local filesystems size calculation"), which added the 'df -kl'
flag to restrict size calculation to local filesystems only and
prevent hangs on unreachable network mounts.

Documented options:
- fsfreeze: filesystem freeze before snapshot
- onlyLocalFilesystems: use 'df -kl' instead of 'df -k' (PR Azure#1562)
- MountsToSkip: mount points to exclude from freeze
- seqsnapshot: parallel vs sequential snapshot ordering

Also added commented-out examples with descriptions to the template
vmbackup.conf so options are discoverable without reading the code.
@jonathanbrenes jonathanbrenes requested a review from a team as a code owner June 2, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant