Advertising
Advertising

Four ways to automatically backup your hard drive

Four ways to automatically backup your hard drive

There are many pieces of software that are available to help you backup your hard drive. However in my opinion, the simplest and most customizable way of backing up your hard drive is to do so with a homemade script. I will show you how to create a very simple script that will backup your entire hard drive on the first run. With each successive run of the script, it will only backup the files that have been modified. I will show you how to set it up so that you can backup your hard drive automatically without interrupting your work flow and without hampering any productivity. No longer will you unnecessarily lose any files again! I will show you how to do the following:

  • 1. Backup your hard drive on startup without using any extra software
  • 2. Backup your hard drive at scheduled intervals using AutomaticDailyBackup.bat
  • 3. Backup your hard drive at scheduled intervals using Windows Task Scheduler
  • 4. With the use of Xecutor, backup only the files you’ve changed on shutdown

This tutorial is demonstrated using Windows XP, however it will extend equally well into Windows Vista.

The first step is to create the backup script. The script is very short and very easy to create. First, open Notepad (Start >> All Programs >> Accessories >> Notepad) and copy and paste the following text into your Notepad file:

cd c:\
xcopy c: e:\AutomaticDailyBackup /s /e /t /h /D

Make sure that you copy the text onto two separate lines exactly as it is shown above. Also, please note that this script will backup your hard drive to an external location at e:\. If your external hard drive is located at another location, you will want to change the e:\ to a letter that corresponds to your specific external hard drive. Also, if you do not have a folder called “AutomaticDailyBackup” (I’m betting you won’t) in your e:\ drive you should create the folder manually.

Advertising

Save your Notepad file with the name “AutomaticDailyBackup.bat” it is very important to include the “.bat” at the end of the file so Windows knows that it is a script and not just a plain-Jane text file. Additionally, please make sure you save the file to C:\. You can now close Notepad and you should have the file C:\AutomaticDailybackup.bat. This is shown below:

20070313-backup.JPG

    This script file will be used by three of the four methods of backing up your hard drive that are shown below.

    1. Backup your hard drive on startup without using any extra software

    This is probably the quickest and easiest way to backup your hard drive. Right-click on your AutomaticDailyBackup.bat file and select “Create Shortcut.” After you have created the shortcut, move it to Start >> All Programs >> Startup and your hard drive will get automatically backed up every time you log in. These two steps are shown below:

    Advertising

    20070313-backup1.JPG

      20070313-backup2.JPG

        In order to prevent this file from interrupting your work flow when it is backing up your hard drive, right-click on the shortcut in your “Startup” folder and choose “Properties.” In the “Properties” dialog, change “Run Normal” to “Minimized” and click “OK.”

        2. Backup your hard drive at scheduled intervals using AutomaticDailyBackup.bat

        The second way to backup your hard drive is to schedule an automatic backup using Windows Task Scheduler. First, you need to open Task Scheduler (Start >> Control Panel >> Performance and Maintenance >> Scheduled Tasks).

        Advertising

        Once you launch Windows Task Scheduler, click “Add Scheduled Task” and then click “Next.” On the “Click the program you want Windows to run” selection screen, click “Browse…” and choose C:\AutomaticDailyBackup.bat and click “OK”.

        20070313-backup3.JPG

          Choose the frequency you would like the task to run (I chose weekly) and click “Next.” Select the day and time you would like the task to run and click “Next.” Enter your password (if you have one), click “Next” and then click “Finish.” Your scheduled task is all set and it will execute itself automatically at the day and time you chose. If you would like to backup your hard drive more frequently (for example, two or three times per week) create several tasks identical to what is shown above and set them to run on different days of the week.

          3. Backup your hard drive at scheduled intervals using Windows Task Scheduler

          You probably noticed that Windows Task Scheduler has a backup utility built right into it. I prefer to use the AutomaticDailyBackup file to backup the hard drive because it has a finer-grained control of the backup process. However, if you prefer, simply select “Backup” (shown below) and Windows Task Scheduler will automatically control your backup.

          Advertising

          20070313-backup4.JPG

            4. Backup your hard drive on shutdown

            In order to backup your hard drive on shutdown, you need to download Xecutor. Xecutor is a free download that you can download from the Xecutor homepage. Once you install Xecutor and run it for the first time, it will ask you if you want to run Xecutor on Startup — choose “Yes.”

            Next, select the “Shutdown” tab and then the green plus sign. On the properties screen, navigate to C:\AutomaticDailyBackup.bat and click “OK” (don’t worry about changing any other settings). You should see the following:

            20070313-backup5.JPG

              Now when you shutdown Windows, Xecutor will automatically run the AutomaticDailyBackup script.

              Hopefully you found at least one of the four ways to backup your hard drive useful. Coming from someone who lost everything on a hard drive without backing up, please don’t underestimate the importance of backing up your hard drive. If your hard drive crapped out right now, how much information (documents, music, pictures, videos, etc.) would you lose?

              More by this author

              How to Lose 50 Pounds in 3 Months: 10 Unconventional Diet Tips The daily routine of 17 CEOs Productivity Boost: How to start your day at 5:00 AM Search social media content Four ways to automatically backup your hard drive

              Trending in Featured

              1 15 Tips to Restart the Exercise Habit (and How to Keep It) 2 8 Simple Ways to Be a Better Listener 3 The Art of Humble Confidence 4 How to Learn Something New Every Day and Stay Smart 5 How to Overcome Procrastination and Start Doing What Truly Matters

              Read Next

              Advertising
              Advertising
              Advertising

              Last Updated on November 18, 2020

              15 Tips to Restart the Exercise Habit (and How to Keep It)

              15 Tips to Restart the Exercise Habit (and How to Keep It)

              It’s okay, you can finally admit it. It’s been two months since you’ve seen the inside of the gym. Getting sick, family crisis, overtime at work and school papers that needed to get finished all kept you for exercising. Now, the question is: how do you start again?
              Once you have an exercise habit, it becomes automatic. You just go to the gym, there is no force involved. But after a month, two months or possibly a year off, it can be hard to get started again. Here are some tips to climb back on that treadmill after you’ve fallen off.

              1. Don’t Break the Habit – The easiest way to keep things going is simply not to stop. Avoid long breaks in exercising or rebuilding the habit will take some effort. This may be advice a little too late for some people. But if you have an exercise habit going, don’t drop it at the first sign of trouble.
              2. Reward Showing Up – Woody Allen once said that, “Half of life is showing up.” I’d argue that 90% of making a habit is just making the effort to get there. You can worry about your weight, amount of laps you run or the amount you can bench press later.
              3. Commit for Thirty Days – Make a commitment to go every day (even just for 20 minutes) for one month. This will solidify the exercise habit. By making a commitment you also take pressure off yourself in the first weeks back of deciding whether to go.
              4. Make it Fun – If you don’t enjoy yourself at the gym, it is going to be hard to keep it a habit. There are thousands of ways you can move your body and exercise, so don’t give up if you’ve decided lifting weights or doing crunches isn’t for you. Many large fitness centers will offer a range of programs that can suit your tastes.
              5. Schedule During Quiet Hours – Don’t put exercise time in a place where it will easily be pushed aside by something more important. Right after work or first thing in the morning are often good places to put it. Lunch-hour workouts might be too easy to skip if work demands start mounting.
              6. Get a Buddy – Grab a friend to join you. Having a social aspect to exercising can boost your commitment to the exercise habit.
              7. X Your Calendar – One person I know has the habit of drawing a red “X” through any day on the calendar he goes to the gym. The benefit of this is it quickly shows how long it has been since you’ve gone to the gym. Keeping a steady amount of X’s on your calendar is an easy way to motivate yourself.
              8. Enjoyment Before Effort – After you finish any work out, ask yourself what parts you enjoyed and what parts you did not. As a rule, the enjoyable aspects of your workout will get done and the rest will be avoided. By focusing on how you can make workouts more enjoyable, you can make sure you want to keep going to the gym.
              9. Create a Ritual – Your workout routine should become so ingrained that it becomes a ritual. This means that the time of day, place or cue automatically starts you towards grabbing your bag and heading out. If your workout times are completely random, it will be harder to benefit from the momentum of a ritual.
              10. Stress Relief – What do you do when your stressed? Chances are it isn’t running. But exercise can be a great way to relieve stress, releasing endorphin which will improve your mood. The next time you feel stressed or tired, try doing an exercise you enjoy. When stress relief is linked to exercise, it is easy to regain the habit even after a leave of absence.
              11. Measure Fitness – Weight isn’t always the best number to track. Increase in muscle can offset decreases in fat so the scale doesn’t change even if your body is. But fitness improvements are a great way to stay motivated. Recording simple numbers such as the number of push-ups, sit-ups or speed you can run can help you see that the exercise is making you stronger and faster.
              12. Habits First, Equipment Later – Fancy equipment doesn’t create a habit for exercise. Despite this, some people still believe that buying a thousand dollar machine will make up for their inactivity. It won’t. Start building the exercise habit first, only afterwards should you worry about having a personal gym.
              13. Isolate Your Weakness – If falling off the exercise wagon is a common occurrence for you, find out why. Do you not enjoy exercising? Is it a lack of time? Is it feeling self-conscious at the gym? Is it a lack of fitness know-how? As soon as you can isolate your weakness, you can make steps to improve the situation.
              14. Start Small – Trying to run fifteen miles your first workout isn’t a good way to build a habit. Work below your capacity for the first few weeks to build the habit. Otherwise you might scare yourself off after a brutal workout.
              15. Go for Yourself, Not to Impress – Going to the gym with the only goal of looking great is like starting a business with only the goal to make money. The effort can’t justify the results. But if you go to the gym to push yourself, gain energy and have a good time, then you can keep going even when results are slow.

              Read Next