Simple File Backup
v1.0.0Create a timestamped backup copy of a file in the same directory. Use when the user wants to save a copy of a file before making changes.
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description match the artifacts. The skill only requires cp and date, which are exactly what the described functionality needs. The included run.sh implements the stated behavior (timestamped copy).
Instruction Scope
SKILL.md shows a single cp command using date; run.sh implements the same steps and only reads the specified file path and optional backup directory. It does not reference other files, environment variables, or external endpoints.
Install Mechanism
No install spec; this is instruction/code-only and does not download or extract external artifacts. The included shell script is small, readable, and self-contained.
Credentials
No environment variables, credentials, or config paths are requested. The script only uses standard POSIX tools (cp, date) and only accesses the file path(s) supplied by the caller.
Persistence & Privilege
Skill does not request persistent presence (always: false) and does not modify other skills or system-wide settings. It only performs an on-demand local file copy.
Assessment
This skill is coherent and small. If you plan to run it, review run.sh (already short and readable) to confirm it meets your expectations. Note: the script copies files locally and will overwrite only when a timestamp collision occurs (unlikely); it does not send data anywhere. Consider whether you need preservation of ownership/permissions/extended attributes (cp options like -p or -a) or handling of symlinks — the current script uses plain cp. If you need different behavior, modify the script accordingly before use.Like a lobster shell, security has layers — review code before you run it.
latest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
📋 Clawdis
Binscp, date
SKILL.md
File Backup
Create a timestamped backup copy of any file with a single command.
Usage
cp <FILE_PATH> <FILE_PATH>.bak.$(date +%Y%m%d_%H%M%S)
Arguments:
| # | Name | Description |
|---|---|---|
| 1 | FILE_PATH | Path to the file to back up |
Example
cp /home/user/config.yaml /home/user/config.yaml.bak.$(date +%Y%m%d_%H%M%S)
Output:
(no output on success)
The backup file is created as: ORIGINAL_NAME.bak.YYYYMMDD_HHMMSS
Example: config.yaml → config.yaml.bak.20260328_143022
Success / Failure
- Success: No output, exit code 0. Backup file created in same directory.
- Failure: Error message from
cp(exit code non-zero, e.g. file not found)
Verify Backup
To confirm the backup was created:
ls -la <FILE_PATH>.bak.*
Files
3 totalSelect a file
Select a file to preview.
Comments
Loading comments…
