Restore Overwritten Folder on Mac: Step-by-Step
In this article
If you accidentally overwrote a folder on your Mac (e.g., replaced it with another folder of the same name), the original data is not necessarily gone. macOS keeps local snapshots and versions that can often recover the previous folder, provided you act quickly and haven't emptied the Trash or run out of disk space. This guide covers the most reliable methods: using Time Machine, local snapshots, and third-party recovery tools as a last resort.
What You'll Need
- Access to the Mac where the overwrite happened.
- If you use Time Machine, the backup drive must be connected and available.
- If you don't use Time Machine, you'll rely on local snapshots (APFS) or third-party software.
- Enough free disk space to restore the folder (check via Apple menu > About This Mac > Storage).
Step-by-Step
Method 1: Restore from Time Machine (Recommended)
- Connect your Time Machine backup drive to your Mac (if it's not already connected).
- Open the folder that contained the overwritten folder. For example, if you overwrote
Documents/Projects, go toDocumentsin Finder. - Enter Time Machine by clicking the Time Machine icon in the menu bar and selecting "Enter Time Machine," or by opening Time Machine from the Applications folder. If you don't see the icon, go to System Settings > Control Center and add Time Machine to the menu bar.
- Use the timeline on the right edge or the up/down arrows to go back to a date and time before the overwrite occurred. The Finder window will change to show that past state.
- Locate the folder you want to restore. It should appear as it was at that time, with its original contents.
- Select the folder and click the "Restore" button at the bottom right. The folder will be copied back to its original location. If a folder with the same name already exists, macOS will ask if you want to keep both, replace, or stop. Choose "Keep Both" to avoid overwriting the current version.
Method 2: Use Local Snapshots (No Time Machine Drive)
If you have an APFS-formatted startup disk (standard for macOS 10.13+), macOS automatically creates local snapshots even without a Time Machine backup, as long as the disk has free space. These snapshots are stored on the same disk and can be accessed via Time Machine.
- Open the parent folder where the overwritten folder resides.
- Enter Time Machine as described above (even without a backup drive, you can enter).
- Look for a timeline that shows snapshots. You may see a list of dates/times when snapshots were taken. If you see them, select a date before the overwrite and restore the folder as in Method 1.
- If no snapshots appear, local snapshots may not be available because the disk is nearly full or because the file system is not APFS (e.g., older HFS+). In that case, skip to Method 3.
Method 3: Use a Data Recovery Tool (Last Resort)
- Stop using the Mac immediately if the overwrite happened recently and you can't find a backup. Continued use may overwrite the deleted data.
- Download a reputable data recovery app from the Mac App Store or the developer's official website. Examples include Disk Drill, Data Rescue, and EaseUS Data Recovery Wizard (all have free trials).
- Install the app on a different drive if possible (e.g., an external drive) to avoid writing to the affected disk.
- Open the recovery app and select the drive where the overwritten folder was located.
- Run a scan. The app will search for recoverable files, including deleted or overwritten data.
- Preview and recover the folder or its contents. Save the recovered files to a different drive to prevent further data loss.
Common Mistakes
- Waiting too long: The longer you wait, the higher the chance that the old data is overwritten by new files. Act immediately.
- Restoring into the same folder without checking: If you restore a Time Machine backup and choose "Replace," you'll lose the current version. Always choose "Keep Both" if you're unsure.
- Ignoring local snapshots: Many users don't know they exist. Check Time Machine even without a backup drive.
- Using the Mac normally after the overwrite: This can permanently erase the old data. Stop using the Mac or at least avoid writing new files to the same disk.
Tips
- Enable Time Machine: If you don't use it, start now. It's the most reliable way to recover from accidental overwrites.
- Use versioning apps: For important folders, consider using cloud storage (iCloud Drive, Dropbox, etc.) which keeps version history.
- Check the Trash: If you moved the folder to Trash instead of overwriting, you can simply restore it from the Trash.
- Create a manual backup: Before making major changes, copy the folder to an external drive or cloud.
- Be careful with "Merge" vs. "Replace": When copying a folder that already exists, macOS may ask if you want to merge or replace. "Replace" will overwrite the existing folder—only use it if you're sure.
Troubleshooting
If Time Machine doesn't show any backups:
- Make sure the backup drive is connected and recognized. Check System Settings > General > Time Machine.
- If you never set up Time Machine, you won't have backups. Use Method 2 or 3.
- If local snapshots are missing, they may have been deleted due to low disk space. Try using a recovery tool.
If the recovery tool doesn't find the folder:
- Run a deep scan (often slower but more thorough).
- Try a different recovery tool—some are better at certain file systems.
- If the data is critical, consider professional data recovery services. They are expensive but may succeed where software fails.
If you can't enter Time Machine:
- Ensure the Time Machine menu bar icon is enabled. Go to System Settings > Control Center and add Time Machine.
- If the system won't let you enter because no backup drive is connected, you can still try by connecting any external drive (even an empty one) and entering Time Machine—it may allow you to browse local snapshots.
Frequently Asked Questions
Can I recover an overwritten folder without Time Machine?
Yes, if local snapshots exist (APFS) or if you use a third-party recovery tool. However, success is not guaranteed, especially if the disk has been heavily used since the overwrite.
How long do local snapshots stay on my Mac?
Local snapshots are kept until the disk runs low on space. macOS may delete older snapshots to free up space, so they can be gone within hours or days if you're actively using the Mac.
What's the difference between "Merge" and "Replace" when copying folders?
"Merge" combines the contents of both folders, keeping files with the same name from the new folder. "Replace" deletes the existing folder and copies the new one. Always choose "Merge" if you want to avoid losing data.
Can I recover a folder that was overwritten months ago?
It depends. If you have a Time Machine backup from that time, yes. Local snapshots are unlikely to last that long. Third-party recovery tools may find traces, but the older the data, the lower the chance.
Will using a recovery tool damage my Mac?
No, but it can be resource-intensive. Follow the tool's instructions and avoid writing new data to the affected drive while scanning.
Does the Trash help with overwritten folders?
Only if the folder was moved to Trash, not overwritten. Overwriting replaces the folder's data, so the Trash won't have the old version unless you previously trashed it.