Skip to content

Preventing Data Loss #3986

Answered by twpayne
Xevion asked this question in Q&A
Oct 12, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

chezmoi already does this.

You can always use chezmoi diff to see exactly what changes chezmoi will make to your system.

chezmoi apply will warn you if a file managed by chezmoi has been changed since chezmoi last wrote it.

chezmoi managed and chezmoi unmanaged tell you exactly which files are managed by chezmoi.

chezmoi encourages you to keep your dotfiles in version control, so you can always roll back to a previous version.

Of course, in the case of accidentally overwriting a file, you can always retrieve the file from your backup system. chezmoi is a dotfile manager, not a backup system.

More or less, I wish Chezmoi had options to provide data loss mitigation or warnings by default. …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Xevion
Comment options

Answer selected by Xevion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants