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

              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 10 Unconventional Diet Tips: How to lose 50 pounds in three months

              Trending in Featured

              1 The Science of Setting Goals (And How It Affects Your Brain) 2 How to Stay Motivated and Reach Your Big Goals in Life 3 How to Take Notes Effectively: Powerful Note-Taking Techniques 4 How to Stop Procrastinating: 11 Practical Ways for Procrastinators 5 50 Businesses You Can Start In Your Spare Time

              Read Next

              Advertising
              Advertising
              Advertising

              Last Updated on July 17, 2019

              The Science of Setting Goals (And How It Affects Your Brain)

              The Science of Setting Goals (And How It Affects Your Brain)

              What happens in our heads when we set goals?

              Apparently a lot more than you’d think.

              Goal setting isn’t quite so simple as deciding on the things you’d like to accomplish and working towards them.

              According to the research of psychologists, neurologists, and other scientists, setting a goal invests ourselves into the target as if we’d already accomplished it. That is, by setting something as a goal, however small or large, however near or far in the future, a part of our brain believes that desired outcome is an essential part of who we are – setting up the conditions that drive us to work towards the goals to fulfill the brain’s self-image.

              Apparently, the brain cannot distinguish between things we want and things we have. Neurologically, then, our brains treat the failure to achieve our goal the same way as it treats the loss of a valued possession. And up until the moment, the goal is achieved, we have failed to achieve it, setting up a constant tension that the brain seeks to resolve.

              Advertising

              Ideally, this tension is resolved by driving us towards accomplishment. In many cases, though, the brain simply responds to the loss, causing us to feel fear, anxiety, even anguish, depending on the value of the as-yet-unattained goal.

              Love, Loss, Dopamine, and Our Dreams

              The brains functions are carried out by a stew of chemicals called neurotransmitters. You’ve probably heard of serotonin, which plays a key role in our emotional life – most of the effective anti-depressant medications on the market are serotonin reuptake inhibitors, meaning they regulate serotonin levels in the brain leading to more stable moods.

              Somewhat less well-known is another neurotransmitter, dopamine. Among other things, dopamine acts as a motivator, creating a sensation of pleasure when the brain is stimulated by achievement. Dopamine is also involved in maintaining attention – some forms of ADHD are linked to irregular responses to dopamine.[1]

              So dopamine plays a key role in keeping us focused on our goals and motivating us to attain them, rewarding our attention and achievement by elevating our mood. That is, we feel good when we work towards our goals.

              Dopamine is related to wanting – to desire. The attainment of the object of our desire releases dopamine into our brains and we feel good. Conversely, the frustration of our desires starves us of dopamine, causing anxiety and fear.

              Advertising

              One of the greatest desires is romantic love – the long-lasting, “till death do us part” kind. It’s no surprise, then, that romantic love is sustained, at least in part, through the constant flow of dopamine released in the presence – real or imagined – of our true love. Loss of romantic love cuts off that supply of dopamine, which is why it feels like you’re dying – your brain responds by triggering all sorts of anxiety-related responses.

              Herein lies obsession, as we go to ever-increasing lengths in search of that dopamine reward. Stalking specialists warn against any kind of contact with a stalker, positive or negative, because any response at all triggers that reward mechanism. If you let the phone ring 50 times and finally pick up on the 51st ring to tell your stalker off, your stalker gets his or her reward, and learns that all s/he has to do is wait for the phone to ring 51 times.

              Romantic love isn’t the only kind of desire that can create this kind of dopamine addiction, though – as Captain Ahab (from Moby Dick) knew well, any suitably important goal can become an obsession once the mind has established ownership.

              The Neurology of Ownership

              Ownership turns out to be about a lot more than just legal rights. When we own something, we invest a part of ourselves into it – it becomes an extension of ourselves.

              In a famous experiment at Cornell University, researchers gave students school logo coffee mugs, and then offered to trade them chocolate bars for the mugs. Very few were willing to make the trade, no matter how much they professed to like chocolate. Big deal, right? Maybe they just really liked those mugs![2]

              Advertising

              But when they reversed the experiment, handing out chocolate and then offering to trade mugs for the candy, they found that now, few students were all that interested in the mugs. Apparently the key thing about the mugs or the chocolate wasn’t whether students valued whatever they had in their possession, but simply that they had it in their possession.

              This phenomenon is called the “endowment effect”. In a nutshell, the endowment effect occurs when we take ownership of an object (or idea, or person); in becoming “ours” it becomes integrated with our sense of identity, making us reluctant to part with it (losing it is seen as a loss, which triggers that dopamine shut-off I discussed above).

              Interestingly, researchers have found that the endowment effect doesn’t require actual ownership or even possession to come into play. In fact, it’s enough to have a reasonable expectation of future possession for us to start thinking of something as a part of us – as jilted lovers, gambling losers, and 7-year olds denied a toy at the store have all experienced.

              The Upshot for Goal-Setters

              So what does all this mean for would-be achievers?

              On one hand, it’s a warning against setting unreasonable goals. The bigger the potential for positive growth a goal has, the more anxiety and stress your brain is going to create around it’s non-achievement.

              Advertising

              It also suggests that the common wisdom to limit your goals to a small number of reasonable, attainable objectives is good advice. The more goals you have, the more ends your brain thinks it “owns” and therefore the more grief and fear the absence of those ends is going to cause you.

              On a more positive note, the fact that the brain rewards our attentiveness by releasing dopamine means that our brain is working with us to direct us to achievement. Paying attention to your goals feels good, encouraging us to spend more time doing it. This may be why outcome visualization — a favorite technique of self-help gurus involving imagining yourself having completed your objectives — has such a poor track record in clinical studies. It effectively tricks our brain into rewarding us for achieving our goals even though we haven’t done it yet!

              But ultimately, our brain wants us to achieve our goals, so that it’s a sense of who we are that can be fulfilled. And that’s pretty good news!

              More About Goals Setting

              Featured photo credit: Alexa Williams via unsplash.com

              Reference

              Read Next