A journal (write-ahead log) records intended metadata changes (and optionally data) before applying them; after a crash the file system replays or discards the journal instead of scanning the whole disk, so recovery is fast and the file system stays consistent.
Examples: ext3 and ext4, NTFS and XFS; copy-on-write file systems (Btrfs, ZFS, APFS) achieve consistency differently by never overwriting live data in place.
Journaling protects consistency of the file system structure; it does not replace backups.
Loading…