Creating a script/batch file to backup my files to a USB

Posted on 2008-11-03
Last Modified: 2012-05-05
Can someone please help me out here.. i tried going through xcopy /? commands but am very confused.

I basically need to back up files and folders from a folder on my C:\ to my USB sticck which is the F:\.

i constantly work on my C:\ files and at the end of each day i want to run the script so it copys all the files which have been modified onto the USB stick. So basically, i need to know the command and switches which will copy all files and folder structure.. then after the first backup.. will copy over all the modified files and if a file was modified, it will replace the version on the USB stick..

I hope that is clear enough

Please help me out if you get a chance.

Question by:tikelz10
    LVL 11

    Expert Comment

    synctoy by microsoft will do exactly what you want
    LVL 11

    Accepted Solution

    LVL 11

    Expert Comment

    Here is another program - Toucan -

    Toucan is a small utility allowing you to synchronise, backup and secure your data with more options than the built in suite utilities. It is split up into 7 tabs, allowing you to easily find the function that you want. This version features:

        * Four synchronisation modes, copy, update, mirror and equalise.
        * Backup and restore in industry standard zip and 7-zip files, with support for complete backups, updating existing backups and incremental backups, as well as restoring files from an archive.
        * AES-256 encryption using ccrypt
        * Command line support, allows you to create a batch file for repeated jobs
        * Portable variables, point to places on you USB drive no matter what its drive letter is

    Author Closing Comment

    Hi Thank you.. i download Synctoy and it is exactly what i needed. Worked perfect and very easy to understand.

    As for the other membver who responded.. i am sorry but i did not try your software as jgiordano's suggestion was good enough. Thanks though

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
    You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now