Web Analytics


Windows Guides Feed

You can backup a copy of an entire website and automate this process with a simple batch file (more on that later) and a piece of software named wget.

Wget will allow you to save a backup of every file of a Web site.

Setup wget

  • Download Wget here
  • Create a folder at C:\WebsiteBackup (or whatever and wherever you want to name it)
  • Extract the contents of Wget into the folder you created.

Set up the batch file

  • Open Notepad and type the following on the first line:
  • cd C:\WebsiteBackup
  • On the second line type:
  • wget -r -k -p
  • Save the file as WebsiteBackup.bat.

The file should look like this.

wget

To run the file click on WebsiteBackup.bat. You should see the following screen – now wait as the website downloads.

wget

You can automate this process if you right click on the file, create a shortcut, and put that shortcut into your “Startup” folder. Whenever you log into Vista/XP, a backup of a Web site will be made.



About Rich

Rich is the owner and creator of Windows Guides; he spends his time breaking things on his PC so he can write how-to guides to fix them.

Free PC tips by email

Search Windows Guides




Comments

27 thoughts on “Automatically Backup an Entire Web Site or Directory”

  1. Jocie says:

    I have heard that this website is wonderful, there is some fresh and interesting information.

  2. Jocie says:

    I have heard that this website is wonderful, there is some fresh and interesting information.

  3. Jocie says:

    I have heard that this website is wonderful, there is some fresh and interesting information.

  4. profano says:

    Not working

  5. profano says:

    Not working

  6. profano says:

    Not working

  7. Rich says:

    Just verified the link — the site was probably down — so it should work for you now

  8. Rich says:

    Just verified the link — the site was probably down — so it should work for you now

  9. Rich says:

    Just verified the link — the site was probably down — so it should work for you now

  10. Matthew clark says:

    Great little tip and software. I will share this with my hosting clients so they can do some personal backups of their websites.

    Make it great,
    Matt

  11. Matthew clark says:

    Great little tip and software. I will share this with my hosting clients so they can do some personal backups of their websites.

    Make it great,
    Matt

  12. Matthew clark says:

    Great little tip and software. I will share this with my hosting clients so they can do some personal backups of their websites.

    Make it great,
    Matt

  13. Aviator365 says:

    Is this legal? I mean someone might not like their porperty being used this way? but then its nice back up huh…!

  14. Aviator365 says:

    Is this legal? I mean someone might not like their porperty being used this way? but then its nice back up huh…!

    1. Rich says:

      @Aviator – You will need a password to get to any server-side data.

  15. Aviator365 says:

    Is this legal? I mean someone might not like their porperty being used this way? but then its nice back up huh…!

    1. Rich says:

      @Aviator – You will need a password to get to any server-side data.

  16. Rich says:

    @Aviator – You will need a password to get to any server-side data.

  17. Arlandi Landjono says:

    Just keep in mind, becareful if you use this command. since it will recursively download ALL the files from that website. Can you imagine what would happen if you use this on a site with gazillion pages, like http://www.microsoft.com or http://www.cnn.com??

  18. Arlandi Landjono says:

    Just keep in mind, becareful if you use this command. since it will recursively download ALL the files from that website. Can you imagine what would happen if you use this on a site with gazillion pages, like http://www.microsoft.com or http://www.cnn.com??

  19. Arlandi Landjono says:

    Just keep in mind, becareful if you use this command. since it will recursively download ALL the files from that website. Can you imagine what would happen if you use this on a site with gazillion pages, like http://www.microsoft.com or http://www.cnn.com??

  20. Mel says:

    I thought wget was just a linux thing.

  21. Mel says:

    I thought wget was just a linux thing.

  22. Mel says:

    I thought wget was just a linux thing.

  23. O B says:

    Works fine on my site, but some directories are password protected, how do I get those?

  24. O B says:

    Works fine on my site, but some directories are password protected, how do I get those?

  25. O B says:

    Works fine on my site, but some directories are password protected, how do I get those?

Comments are closed.


Computer tips in your inbox
Sign up for the Windows Guides newsletter to get PC tips and access to free Windows books (More details)

Enter your email address:
 

Popular Guides

See which sites have been visited on your PC (even if private browsing mode is used)

Create a Windows 7 System Repair Disc

Best Free Anti-malware

Hibernate vs. Sleep vs. Shut-Down

i3, i5, and i7; Dual, Quad, Hexa Core Processors. How to they Differ?

Intel's Ivy Bridge Processor: new Features

Submit Your Tip
Submit your computer tip to us; receive full credit for all published tips

Windows Guides on Facebook