🦀 ClawHub
Config Rollback
by @2233admin
Auto-rollback protection for config changes. Backs up before edit, sets a 5-minute system timer to restore if things go wrong. Works with any service config,...
⚡ When to Use
💡 Examples
Say "auto rollback" or "自动回滚" before editing any config:
# Backup + set 5-min restore timer
cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak
echo "cp /etc/nginx/nginx.conf.bak /etc/nginx/nginx.conf && systemctl reload nginx" | at now + 5 minutesMake your changes...
vim /etc/nginx/nginx.conf
systemctl reload nginxIf everything works, cancel the timer:
atrm
TERMINAL
clawhub install config-rollback