TarBackup is a dependency-free Swift package for creating, editing, comparing, inspecting, and restoring TAR backups on iOS and macOS.
- Incremental and direct append without repacking existing entries
- File and batch deletion
- Source-directory comparison and exclusion patterns
- Archive listing and selective extraction
- Wildcard and subdirectory extraction
- Archive recovery and compaction
- iOS background compaction support
Add TarBackup 1.2.0 or later to your Package.swift:
dependencies: [
.package(
url: "https://github.com/logdok/TarBackup.git",
from: "1.2.0"
),
],
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "TarBackup", package: "TarBackup"),
]
),
]Explore TarBackupExample, an iOS SwiftUI application that demonstrates incremental backups, exclusions, direct append, archive comparison and inspection, deletion, selective extraction, repair, and compaction.
See the TarBackup User Guide for setup, complete API examples, workflows, error handling, safety behavior, and TAR format limitations.
See Release Notes for the version history.
- Swift 5.9 or later
- iOS 14 or later
- macOS 11 or later
TarBackup is available under the MIT License.