Created
July 16, 2026 15:57
-
-
Save jkeam/5aa842c8b706dd99e62c2714073a76a0 to your computer and use it in GitHub Desktop.
OpenClaw Backup Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| BACKUP_DIR="/home/claw/Backups/$(date +%Y-%m-%d_hours-%H)" | |
| mkdir -p "$BACKUP_DIR" | |
| echo "π€ Backing up OpenClaw and Workspace..." | |
| openclaw backup create --output "$BACKUP_DIR" --verify | |
| echo "π¦ Exporting Fedora DNF package list..." | |
| rpm -qa --qf "%{NAME}\n" > "$BACKUP_DIR/fedora-packages.txt" | |
| echo "βοΈ Archiving Systemd User Services..." | |
| cp -r ~/.config/systemd/user "$BACKUP_DIR/systemd-user-services" | |
| echo "π Archiving SSH and Shell config..." | |
| cp -r ~/.ssh "$BACKUP_DIR/ssh-config" | |
| cp ~/.bashrc ~/.bash_profile "$BACKUP_DIR/" | |
| echo "π οΈ Archiving local custom binaries..." | |
| tar -czf "$BACKUP_DIR/local-binaries.tar.gz" /usr/local/bin/ 2>/dev/null | |
| echo "β Backup complete! Stored in $BACKUP_DIR" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment