ROBOCOPY - Create Backup Script

Page 10 of 32 FirstFirst ... 8910111220 ... LastLast

  1. Posts : 21
    Win7 64bit
       #90

    i hope my prayers come true and someone can help me create a backup script, also shows the users how many % is it doing,
    actually i want to copy the users documents, and pictures and outlook PST files to different Partition,
    thank you so much
      My Computer


  2. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #91

    Hi jamerson,

    No worries. Can you provide some more information about users/paths/file/etc. and I'll write one for you?

    Regards,
    Golden
      My Computer


  3. Posts : 21
    Win7 64bit
       #92

    Golden said:
    Hi jamerson,

    No worries. Can you provide some more information about users/paths/file/etc. and I'll write one for you?

    Regards,
    Golden
    Thank you So much,
    is it possibly to back up the whole C:\Users\James or it gonna take long time?
    actually i don't need the whole folder only the importants one where windows saves document or pictures,
    here are the Paths and want them to be saved to W:\Backup folder
    C:\Users\James\Desktop
    C:\Users\James\Favorites
    C:\Users\James\Pictures
    C:\Users\James\Documents
    C:\Users\James\Music
    C:\Users\James\Videos
    C:\Users\JamesAppData\Local\Microsoft\Outlook
    also i want outlook PST folder to be backed up which is on the Apps folder,so i added the path too,

    once again much appreciate your support
      My Computer


  4. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #93

    No problem James. Can you tell me the driver letter of the partition you want to backup too?

    The time for backup depends on how large the folders are. If its very large, then initially the backup takes as long as it would if you used a straightforward Windows copy command, but we can use the 'mirror' facility of robocopy so that subsequent backups only copy recent files (new files or changes to existing files), whic means it will be quicker.

    *EDIT : I see you mentioned W: so thats OK. I'll post back in a few minutes with the .BAT file.
      My Computer


  5. Posts : 21
    Win7 64bit
       #94

    Golden said:
    No problem James. Can you tell me the driver letter of the partition you want to backup too?

    The time for backup depends on how large the folders are. If its very large, then initially the backup takes as long as it would if you used a straightforward Windows copy command, but we can use the 'mirror' facility of robocopy so that subsequent backups only copy recent files (new files or changes to existing files), whic means it will be quicker.

    *EDIT : I see you mentioned W: so thats OK. I'll post back in a few minutes with the .BAT file.
    Thank you So much Golden, really appreciated,
    the script you gonna make, it gonna show the process as well?
      My Computer


  6. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #95

    jamerson said:
    Golden said:
    No problem James. Can you tell me the driver letter of the partition you want to backup too?

    The time for backup depends on how large the folders are. If its very large, then initially the backup takes as long as it would if you used a straightforward Windows copy command, but we can use the 'mirror' facility of robocopy so that subsequent backups only copy recent files (new files or changes to existing files), whic means it will be quicker.

    *EDIT : I see you mentioned W: so thats OK. I'll post back in a few minutes with the .BAT file.
    Thank you So much Golden, really appreciated,
    the script you gonna make, it gonna show the process as well?
    Yes, it will show progress.
      My Computer


  7. Posts : 21
    Win7 64bit
       #96

    Golden said:
    jamerson said:
    Golden said:
    No problem James. Can you tell me the driver letter of the partition you want to backup too?

    The time for backup depends on how large the folders are. If its very large, then initially the backup takes as long as it would if you used a straightforward Windows copy command, but we can use the 'mirror' facility of robocopy so that subsequent backups only copy recent files (new files or changes to existing files), whic means it will be quicker.

    *EDIT : I see you mentioned W: so thats OK. I'll post back in a few minutes with the .BAT file.
    Thank you So much Golden, really appreciated,
    the script you gonna make, it gonna show the process as well?
    Yes, it will show progress.
    Thank you so much, i am waiting for your script, really much appreciate it
      My Computer


  8. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #97

    Hi,

    OK. Here it is.

    Instructions:
    1. Download the attached .bat file, and save it to your desktop

    jamerson.bat

    2. Ensure OUTLOOK has been closed before running this BAT file
    3. Right-click on the BAT file and choose Run as Administrator
    4. If prompted by UAC, click YES
    5. The BAT file will now run

    It will copy everything under \\James (incl. folders) to W:\Backup. It will also copy everything under \\Outlook to W:\Backup. It will shows the progress on the screen, and also create a file called backup_log.txt on your desktop which you can open using NotePad to view the history of the backup.

    At this stage, I haven't used the /mir switch - we can do that once you have seen how the BAT works, and are happy with it. Once you have run it, place a copy of the backup_log.txt file so I can check that it worked correctly.

    Regards,
    Golden
      My Computer


  9. Posts : 21
    Win7 64bit
       #98

    Golden said:
    Hi,

    OK. Here it is.

    Instructions:
    1. Download the attached .bat file, and save it to your desktop

    jamerson.bat

    2. Ensure OUTLOOK has been closed before running this BAT file
    3. Right-click on the BAT file and choose Run as Administrator
    4. If prompted by UAC, click YES
    5. The BAT file will now run

    It will copy everything under \\James (incl. folders) to W:\Backup. It will also copy everything under \\Outlook to W:\Backup. It will shows the progress on the screen, and also create a file called backup_log.txt on your desktop which you can open using NotePad to view the history of the backup.

    At this stage, I haven't used the /mir switch - we can do that once you have seen how the BAT works, and are happy with it. Once you have run it, place a copy of the backup_log.txt file so I can check that it worked correctly.

    Regards,
    Golden
    Thank you so much,
    this script gonna works with Windows scheduele? and will use Admin access if i add it to the windows scheduele?
    Edit: I tried the script somehow it can't read or copy the files located on AppData/Microsoft/Outlook
    i used the script with admin right!
      My Computer


  10. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #99

    Hi,

    Is this path correct?

    C:\Users\JamesAppData\Local\Microsoft\Outlook

    or should it be

    C:\Users\James\AppData\Local\Microsoft\Outlook

    You can edit the BAT file and correct the path if required, and try it again please?
      My Computer


 
Page 10 of 32 FirstFirst ... 8910111220 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:32.
Find Us