Results 1 to 4 of 4

Thread: CMD line to do backups     submit to reddit submit to twitter

  1. #1
    Ridill
    Join Date
    Jul 2008
    Posts
    11,255
    BG Level
    9

    CMD line to do backups

    Have a homework assignment where I need to list the commands used to do full, differential and incremental backups for specific directories. I just have to list the command, here's a sample of the questions

    Spoiler: show

    Write the command(s) in this document that will do a Full backup all the files and subdirectories from C:\Temp to D:\
    not including the directory “Temp”

    Write the command(s) in this document that will do a differential backup all the files and subdirectories from C:\Temp to D:\ including the directory “Temp”

    Write the command(s) in this document that will do an incremental backup all the files and subdirectories from C:\Temp to D:\ including the directory “Temp”


    I found the command Ntbackup browsing MS help but i'm not sure if that's the right one or not.

    Or am I missing something and it's just Xcopy command? We never went over Ntbackup, but I have no idea what/how Xcopy would distinguish between Full/Differential/Incremental unless it's just a trick question.

  2. #2
    BG's most likeable Québécois
    Pens win! Pens Win!!! PENS WIN!!!!!

    Join Date
    Sep 2007
    Posts
    37,887
    BG Level
    10

    You can 'cheat' the way

    Open the backup software from M$ and create a planified backup 1 differential and 1 incremental.

    When it's done open Task planifier and check the backup properties the command line is there

    Copy it and paste it in a .bat and test it it should work

    Then write that command in your exam hehe.

    Ok i'm sure there is an easier way but meh :D

  3. #3
    Ridill
    Join Date
    Jul 2008
    Posts
    11,255
    BG Level
    9

    I figured it out, he just wanted something like


    Xcopy C:\Temp D:\ and then /s /i for Full, add /a for differential and /m for incremental to change the archive bit.

  4. #4
    BG's most likeable Québécois
    Pens win! Pens Win!!! PENS WIN!!!!!

    Join Date
    Sep 2007
    Posts
    37,887
    BG Level
    10

    k lol