none
Robocopy delete the files from backup location , RRS feed

  • Question

  • i am using window server 2008

    I want  files that  are deleted from source , should be available at backup place .

    For this i am using following script.

    When files is deleted from source , it is also deleted from destination. can anyone help me

    set datetime=%date:~-7,2%%date:~-10,2%%date:~-4%
    set datetime=%datetime: =%
    echo %datetime%
    net use z:/delete
    net use z: \\svr1\data_files /user:administrator password /persistent:yes



    robocopy Z:\fileserver_spring2011 \\svr2\data_files /E /XO /log+:D:\backup-

    log\1_%datetime%.txt

    SET filename=DATE

    Result from log file

       

    -------------------------------------------------------------------------------
       ROBOCOPY     ::     Robust File Copy for Windows                              
    -------------------------------------------------------------------------------

      Started : Tue Apr 30 03:19:28 2013

       Source : Z:\fileserver_spring2011\
         Dest : \\172.16.100.149\SLATE_FILES_ISB\

        Files : *.*

      Options : *.* /S /E /COPY:DAT /XO /R:1000000 /W:30 

    ------------------------------------------------------------------------------

                      0 Z:\fileserver_spring2011\
    *EXTRA Dir        -1 \\172.16.100.149\SLATE_FILES_ISB\webapps\
     *EXTRA File   4.6 m 161112sts4.txt
     *EXTRA File      21 9.txt
     *EXTRA File     560 route-eth0
     *EXTRA File     144 samigo.txt
                      0 Z:\fileserver_spring2011\2011\
                      0 Z:\fileserver_spring2011\2011\019\
                      2 Z:\fileserver_spring2011\2011\019\08\
                      1 Z:\fileserver_spring2011\2011\019\10\

    (I have my self removed some lines)

                    32 Z:\fileserver_spring2011\2013\119\10\
     *EXTRA File  128226 0d27364b-a684-4d16-a644-ae6184529878
     *EXTRA File  128226 9be017eb-fb7f-4ba5-8698-b2b58106c72c
     *EXTRA File  128226 c4ea7038-c74f-431e-8217-914328694b7f
                     69 Z:\fileserver_spring2011\2013\119\11\
                     23 Z:\fileserver_spring2011\2013\119\12\
                      4 Z:\fileserver_spring2011\2013\119\13\
                     23 Z:\fileserver_spring2011\2013\119\14\
       New File     77605 1789ee40-58db-4d97-8bc2-9f89df1104ba
      0%  
    100%  
       New File      1104 28e444b4-fc8b-4c8a-8fd8-4d2c0a991414
      0%  
    100%  
       New File     69351 28eba226-e250-42a3-92ff-f4cb1d115b6e
      0%  
    100%  
       New File    564248 38023929-e2f2-428f-b6db-386b06bf5011
      0%  
     46%  
     92%  
    100%  
       New File      1135 39ecd55a-3f75-4dc1-986f-031c19cc751e
      0%  
    100%  
       New File     18542 69c43e6d-2bcd-494d-a9fe-7e928ec32494
      0%  
    100%  
       New File     11518 7ffe3b9f-8880-400f-97be-84bcf11411a8
      0%  
    100%  
       New File     11560 93bdf4c0-7ff0-4f04-b0c0-93f079465cc2
      0%  
    100%  
       New File     93236 98d1afa7-b52d-417f-88f8-4a4964761a14
      0%  
    100%  
       New File     11539 995b76b2-774c-4536-a4bf-d2289a511ba7
      0%  
    100%  
       New File     1.8 m a2d2bcbc-5e2e-4fa0-8ca2-c0dc2696d40f
      0%  
     13%  
     27%  
     40%  
     54%  
     67%  
     81%  
     95%  
    100%  
       New File     2.0 m bb0f0119-738c-4981-90b6-b265d89feef5
      0%  
     24%  
     49%  
     74%  
     98%  
    100%  

    (I have my self removed some lines)

       New File     39196 c45e2e0b-58d0-4c3b-ab37-a163b51b8862
      0%  
    100%  
     New Dir          1 Z:\fileserver_spring2011\2013\119\22\
       New File       598 3cae254d-9ff0-4d1f-aa07-a24862bbc14f
      0%  
    100%  
                      0 Z:\fileserver_spring2011\samigo\

    ------------------------------------------------------------------------------

                   Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :     12264         8     12256         0         0         2
       Files :    152513       252    152261         0         0      3579
       Bytes :  82.490 g   88.99 m  82.403 g         0         0   6.441 g
       Times :   0:01:16   0:00:02                       0:00:00   0:01:14


       Speed :            45280286 Bytes/sec.
       Speed :            2590.958 MegaBytes/min.

       Ended : Tue Apr 30 03:20:44 2013


    yasir arfat


    • Edited by rana238 Tuesday, April 30, 2013 5:56 AM
    Tuesday, April 30, 2013 5:54 AM