Backup & Recovery¶
QUASAR automatically backs up files before modifying them.
How It Works¶
Every time QUASAR modifies a file:
- Backup: Original saved to
.quasar/backups/ - Modify: Changes applied to file
- Confirm: Success reported
Backup Location¶
.quasar/
└── backups/
├── main.py.backup.2024-02-08T10-30-00
├── config.py.backup.2024-02-08T10-35-15
└── utils.py.backup.2024-02-08T11-00-22
Filename format: {original}.backup.{timestamp}
List Backups¶
Ask QUASAR:
Or use the tool directly:
Restore Backup¶
Ask QUASAR:
Or specify a timestamp:
View Diff¶
Compare current with backup:
QUASAR will show:
Automatic Behavior¶
| Action | Backup Created? |
|---|---|
create_file |
❌ No (new file) |
modify_file |
✅ Yes |
patch_file |
✅ Yes |
delete_file |
✅ Yes |
move_file |
✅ Yes |
Retention¶
By default, backups are retained indefinitely. To clean up:
Best Practices¶
Before Major Changes
QUASAR creates backups automatically, but for major refactors, consider using git: