How to setup Task Scheduler to backup folders from NAS to PC over LAN?

Page 1 of 2 12 LastLast

  1. Posts : 9
    Windows 10 x64
       #1

    How to setup Task Scheduler to backup folders from NAS to PC over LAN?


    Hello everybody,


    In my LAN I have a PC, NAS and a Laptop. I need to schedule a backup from NAS to PC once a week. My NAS automaticaly powers on but I need my PC to do the same and to copy certain folders from NAS to a backup folder in my PC. The NAS has a letter asigned in my PCs Windows Explorer. Fist, it needs to delete those folders from the previous backup, and then to start backing up from NAS.


    Thanks a lot guys!
    Last edited by unpetru; 24 Jul 2015 at 01:59.
      My Computer


  2. Nus
    Posts : 242
    Win 10 Pro 64bit
       #2

    unpetru said:
    Hello everybody,

    In my LAN I have a PC, NAS and a Laptop. I need to schedule a backup from NAS to PC once a week. My NAS automaticaly powers on but I need my PC to do the same and to copy certain folders from NAS to a backup folder in my PC. The NAS has a letter asigned in my PCs Windows Explorer (Windows 10).

    Thanks a lot guys!
    Go to Control Panel and use the applet called Back up & Restore (Windows 7). You can choose what & where to back up and set a schedule.
      My Computer


  3. Posts : 9
    Windows 10 x64
    Thread Starter
       #3

    Nus said:
    Go to Control Panel and use the applet called Back up & Restore (Windows 7). You can choose what & where to back up and set a schedule.
    Not going to work. I can't see network drives there. I need to backup some folders over LAN from a server (NAS) to my PC.
      My Computer


  4. Posts : 7,254
    Windows 10 Pro 64-bit
       #4

    Take a look at Uranium Backup. Excellent bit of software.
      My Computers


  5. Posts : 9
    Windows 10 x64
    Thread Starter
       #5

    swarfega said:
    Take a look at Uranium Backup. Excellent bit of software.
    Can it wake up my computer?
      My Computer


  6. Posts : 7,254
    Windows 10 Pro 64-bit
       #6

    You'd have to ask them that. I can't see it mentioned on their website.
      My Computers


  7. Nus
    Posts : 242
    Win 10 Pro 64bit
       #7

    unpetru said:
    Not going to work. I can't see network drives there. I need to backup some folders over LAN from a server (NAS) to my PC.
    Apologies, I didn't read your post properly. Backing up a NAS to a PC, eh? How unconventional.

    You can achieve what you want to do with a simple batch file. Like this:

    Code:
    :: Delete old destination backup folder
    
    RD "Y:\Backup" /S /Q
    
    
    :: Wait until folder has been deleted
    
    :waiting
    TIMEOUT /T 1
    IF EXIST "Y:\Backup" GOTO waiting
    
    
    :: Copy source backup folder and files to destination
    
    XCOPY "Z:\Backup" "Y:\Backup" /E /I /H
    Then you can have task scheduler run the batch file whenever you want, and it can also wake your PC to run the task.

    I tested this using two network drives, one as source, one as destination, and it works fine.
      My Computer


  8. Posts : 9
    Windows 10 x64
    Thread Starter
       #8

    Nus said:
    Apologies, I didn't read your post properly. Backing up a NAS to a PC, eh? How unconventional.

    You can achieve what you want to do with a simple batch file. Like this:

    Code:
    :: Delete old destination backup folder
    
    RD "Y:\Backup" /S /Q
    
    
    :: Wait until folder has been deleted
    
    :waiting
    TIMEOUT /T 1
    IF EXIST "Y:\Backup" GOTO waiting
    
    
    :: Copy source backup folder and files to destination
    
    XCOPY "Z:\Backup" "Y:\Backup" /E /I /H
    Then you can have task scheduler run the batch file whenever you want, and it can also wake your PC to run the task.

    I tested this using two network drives, one as source, one as destination, and it works fine.
    Thanks a lot. I will check it out. Now i am testing a batch with robocopy programe /mir. The bad part is that CMD is always visible. It cant run the procces with it being hidden. And I have to check if task scheduler can wake up my computer. Does it have to be in sleep mode only or it can wake it up from shut down?

    Thanks again!

    I need a reverse backup solution because my RAID broke (one HDD dead) and I cant afford right now another one. After just 2 weeks, my UPS died too, so i have my precious NAS connected directly to the electrical socket and I had some pretty bad experiences in the past with that. So, besides my automatic backup to the external HDD connected to the NAS, I need another redundant automatic backup to PC. I am a freak! :)
      My Computer


  9. Nus
    Posts : 242
    Win 10 Pro 64bit
       #9

    unpetru said:
    Does it have to be in sleep mode only or it can wake it up from shut down?
    Well, there's various different levels of sleep states. Which ones you have depends on your motherboard and hardware. But if you want the PC completely turned off then no OS can wake from that.

    However, there is a little used feature that's been in BIOS for years that can turn on the PC at a certain time. How much control you have with the schedule will depend on your BIOS. It should at least allow your PC turn turn on at the same time every day or on a certain date.

    In the BIOS Setup look under Power Saving Settings (or similar) for something like 'Resume on RTC Alarm'. (RTC = real time clock).

    Task scheduler can turn off the PC.
      My Computer


  10. Nus
    Posts : 242
    Win 10 Pro 64bit
       #10

    Oh, and you can have the batch file run completely hidden, do this in the Task Scheduler task's properties:

    On the 'General' page change user account to SYSTEM.

    Tick 'Run with highest privileges' and 'Hidden'.
      My Computer


 

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

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




Windows 10 Forums