macOS Mojave by default prevents programs run from within Terminal.app from doing exciting things like listing directory contents of Time Machine backups.
Terminal.app needs "Full Disk Access" in System Preferences, Security & Privacy.
See Fix Terminal “Operation not permitted” Error in MacOS Mojave for instructions.