Docs Home Return to Homepage
Get Started Login

How to Restore Files and Folders with JetBackup

Last updated Changelog

On this page

Deleted a file by mistake, or an edit broke a page? Restore just that file or folder from one of our nightly backups. In this example we deleted one page of our site, members/index.html, and got it back from the night before. Our screenshots are from cPanel; it works the same in DirectAdmin.

Steps

  1. Open JetBackup (see how to open it) and click Home Directory.

    The JetBackup dashboard with Home Directory highlighted

  2. Click a backup from before the problem happened. The newest is at the top. The row turns orange and says All Files/Directories Selected. Click Change Files Selection to choose only what you need.

    The newest backup selected, showing All Files/Directories Selected and the Change Files Selection link

    Warning: If you don’t change the selection, JetBackup restores your whole home folder from that backup.

  3. Click folder names to open them. Your websites are in public_html in cPanel, and in domains › your domain › public_html in DirectAdmin. Tick the files or folders you want back, and click Select Files.

    The Select files window in public_html/members with index.html ticked and Select Files highlighted

  4. The backup row now shows how many items you picked. Click Restore.

    The backup row showing 1 Files/Directories Selected, and the Restore button highlighted

  5. In the Restore Summary, tick Merge backup data with live account data, then click Restore Selected Items.

    The Restore Summary with Merge backup data with live account data ticked and Restore Selected Items highlighted

    Warning: Without Merge, a restored folder goes back exactly to how it was in the backup: JetBackup deletes any files in it that are newer than the backup. We tested it, and a file we’d added after the backup was gone. With Merge ticked, it stayed.

  6. JetBackup opens the Queue. When the Status says Completed, your files are back. Ours took 6 seconds.

    The Queue showing the restore with the status Completed

The restored file was identical to the one we deleted, with its original date.

Troubleshooting

Problem What to do
The file isn’t in the backup It was created after that backup ran. Backups run every night, so anything from today is only in tonight’s backup.
I can’t see files starting with a dot, like .htaccess Make sure Show Hidden Files, at the top of the Select files window, is ticked.
I need a WordPress site back the way it was Restore its folder here, then its database from Databases, both from the same date. See Restore a database.
The restore shows Failed in the Queue Contact support with the date of the backup and what you tried to restore.

Snagged on something? Contact support and we’ll get you sorted.

Snagged on something?

Our sysadmins answer tickets around the clock.