← 返回
开发者工具 中文

Dotfiles

Backup, sync, and version-track dotfiles across multiple machines. Use when syncing configs, backing up settings, restoring on new machines.
跨多机备份、同步及版本追踪 dotfiles。适用于同步配置、备份设置及新机器恢复。
bytesagain1
开发者工具 clawhub v2.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 588
下载
💾 8
安装
2
版本
#latest

概述

Dotfiles

Sysops toolkit for scanning, monitoring, reporting, and maintaining system configurations. Track changes, create backups, run benchmarks, and keep your environment healthy — all from the command line.

Commands

CommandDescription
----------------------
dotfiles scan Scan and log a system configuration entry
dotfiles monitor Record a monitoring observation
dotfiles report Log a report entry for review
dotfiles alert Create an alert record
dotfiles top Record top-level metrics or priorities
dotfiles usage Log resource usage data
dotfiles check Run a check and record results
dotfiles fix Log a fix or remediation action
dotfiles cleanup Record a cleanup operation
dotfiles backup Log a backup event
dotfiles restore Log a restore operation
dotfiles log Add a general log entry
dotfiles benchmark Record benchmark results
dotfiles compare Log a comparison between configurations
dotfiles statsShow summary statistics across all logs
dotfiles export Export all data (json, csv, or txt)
dotfiles search Search across all log files for a term
dotfiles recentShow the 20 most recent activity entries
dotfiles statusHealth check — version, disk usage, last activity
dotfiles helpShow all available commands
dotfiles versionShow current version

Each command without arguments displays the most recent 20 entries from its log file.

Data Storage

All data is stored in ~/.local/share/dotfiles/:

  • Per-command logsscan.log, monitor.log, report.log, alert.log, top.log, usage.log, check.log, fix.log, cleanup.log, backup.log, restore.log, log.log, benchmark.log, compare.log
  • Activity historyhistory.log (unified timeline of all actions)
  • Exportsexport.json, export.csv, or export.txt (generated on demand)

Data format: each entry is stored as YYYY-MM-DD HH:MM|, pipe-delimited for easy parsing.

Requirements

  • Bash 4+ with set -euo pipefail
  • Standard POSIX utilities (date, wc, du, head, tail, grep, cut, basename)
  • No external dependencies or API keys required

When to Use

  1. System configuration auditing — scan and record the state of config files across machines, track drift over time
  2. Incident response logging — use alert, fix, and log to maintain a structured timeline during outages or issues
  3. Backup and restore tracking — log every backup and restore event to maintain an audit trail for compliance
  4. Performance benchmarking — record benchmark results over time and compare configurations side by side
  5. Daily ops monitoring — capture usage metrics, run health checks, and clean up stale resources on a regular schedule

Examples

# Scan a configuration and log the result
dotfiles scan "nginx.conf updated to v1.25"

# Record a monitoring observation
dotfiles monitor "CPU at 78% during peak hours"

# Create an alert for high memory usage
dotfiles alert "Memory usage exceeded 90% threshold"

# Log a fix action after resolving an issue
dotfiles fix "Rotated /var/log/syslog, freed 2.3GB"

# Export all collected data as JSON for analysis
dotfiles export json

# Search all logs for entries related to nginx
dotfiles search nginx

# View recent activity across all commands
dotfiles recent

# Check overall health and disk usage
dotfiles status

# Show summary statistics
dotfiles stats

Output

All command output goes to stdout. Redirect to a file if needed:

dotfiles stats > report.txt
dotfiles export json

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 2 个版本

  • v2.0.1 当前
    2026-03-29 23:04 安全 安全
  • v1.0.3
    2026-03-19 14:03

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Cad

bytesagain1
CAD参考工具
★ 0 📥 2,722
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,853
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 667 📥 323,812