Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJasmine Caldwell
837 Pointshow do i retrieve my website if i deleted it by accident
I was trying to upload Nick's images for my website, but I deleted the file that was the website was. The coding part was still there, but the actual website was gone.
2 Answers
Jon Mirow
9,864 PointsHi there!
Really sorry to hear about this! Where is your website hosted? If you have shared web hosting, a great many, I would say most plans include some form of backup, so the first thing to do would be to log into your hosting account and open a support ticket. Even if the plan doesn't include backup, the hosts usually make backups by default in case their own hardware or software causes you data loss. In those cases, you may have to pay a restoration fee, but I would say it's very rare for a shared web host not to make backups of websites. However you don't know how long they keep backups, etc, so it's important to reach out to them ASAP.
Any other options will depend on the specifics of your set up - did you upload your files via ftp? If so they should still be saved somewhere on your PC, If that's the case, you can just upload the files again. Finally, did you develop the site on your team tree house workspace? If so, you can click on the workspaces tab above and look through your workspaces to find the relevent one.
I hope this is helps you, and wish you a successful recovery of your work.
Jan Oberreiter
78,020 Points... if your website was hosted, you can "download it back" via ftp ... take a ftp-client like FileZilla or Cyberduck and then just drag the files you want back into a folder on your machine ... FileZilla shows all the files on the server on the left and your system on the right ... hope that helped you ... if you did not host the site ... then you would need a back-up of the system... if you are on a mac and use time machine ... grab it from there ... hope you can recover your files ... regards, Jan.