--listed-incremental (optional, if time allows) #136

Closed
opened 2026-04-09 16:59:36 +00:00 by fuzzy · 1 comment
Owner
No description provided.
fuzzy self-assigned this 2026-04-09 16:59:36 +00:00
Author
Owner

Implemented --listed-incremental flag for --create and --extract modes.

Create mode: Reads a snapshot file (JSON format) containing previous backup state (path, mtime, size). Files unchanged since the snapshot are skipped; changed or new files are added. After the archive is created, the snapshot is updated with current file metadata.

Extract mode: Updates the snapshot with metadata of extracted files (as stored in the archive), so future incremental backups treat them as up-to-date.

Snapshot format is JSON for simplicity; each entry includes absolute path, modification time, and size. Directories and symlinks are also recorded (size 0).

This provides GNU tar‑style incremental backup support within reptar’s multi‑format architecture.

Implemented `--listed-incremental` flag for `--create` and `--extract` modes. **Create mode:** Reads a snapshot file (JSON format) containing previous backup state (path, mtime, size). Files unchanged since the snapshot are skipped; changed or new files are added. After the archive is created, the snapshot is updated with current file metadata. **Extract mode:** Updates the snapshot with metadata of extracted files (as stored in the archive), so future incremental backups treat them as up-to-date. Snapshot format is JSON for simplicity; each entry includes absolute path, modification time, and size. Directories and symlinks are also recorded (size 0). This provides GNU tar‑style incremental backup support within reptar’s multi‑format architecture.
fuzzy closed this issue 2026-04-12 10:58:15 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thwap/manta-archiver#136
No description provided.