Page 1 of 2 12 LastLast
  1.    23 Jul 2015 #1
    Join Date : Jul 2015
    On a microphone
    Posts : 9
    Windows 10 x64

    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 ComputerSystem Spec
  2.    23 Jul 2015 #2
    Join Date : Jul 2015
    Posts : 243
    Win 10 Pro 64bit

    Quote Originally Posted by unpetru View Post
    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 ComputerSystem Spec
  3.    24 Jul 2015 #3
    Join Date : Jul 2015
    On a microphone
    Posts : 9
    Windows 10 x64
    Thread Starter

    Quote Originally Posted by Nus View Post
    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 ComputerSystem Spec
  4.    24 Jul 2015 #4

    Take a look at Uranium Backup. Excellent bit of software.
      My ComputersSystem Spec
  5.    24 Jul 2015 #5
    Join Date : Jul 2015
    On a microphone
    Posts : 9
    Windows 10 x64
    Thread Starter

    Quote Originally Posted by swarfega View Post
    Take a look at Uranium Backup. Excellent bit of software.
    Can it wake up my computer?
      My ComputerSystem Spec
  6.    24 Jul 2015 #6

    You'd have to ask them that. I can't see it mentioned on their website.
      My ComputersSystem Spec
  7.    24 Jul 2015 #7
    Join Date : Jul 2015
    Posts : 243
    Win 10 Pro 64bit

    Quote Originally Posted by unpetru View Post
    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 ComputerSystem Spec
  8.    24 Jul 2015 #8
    Join Date : Jul 2015
    On a microphone
    Posts : 9
    Windows 10 x64
    Thread Starter

    Quote Originally Posted by Nus View Post
    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 ComputerSystem Spec
  9.    24 Jul 2015 #9
    Join Date : Jul 2015
    Posts : 243
    Win 10 Pro 64bit

    Quote Originally Posted by unpetru View Post
    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 ComputerSystem Spec
  10.    24 Jul 2015 #10
    Join Date : Jul 2015
    Posts : 243
    Win 10 Pro 64bit

    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 ComputerSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Solved Time Zone change causes error in Task Scheduler for every task
My issue is kind of strange. I am an insider currently on Windows 10 build 10240. All the build I have tried so far has this same error in task scheduler when I change my time zone to my current location which is kathmandu (UTC+5:45). When i change...
Performance & Maintenance
CloneApp - Backup All Your App Settings
I came across this yesterday and tried it out on my new Windows 8.1 system. It does what it says - backs up all the settings folders and registry keys for your installed apps/applications. It should be useful for generating a list of what...
Backup and Restore
Can we enable Windows Backup?
Some parts are there but some are not. My Win10 Ent' won't let me pick a backup drive for example. And before you say it I only want to use the default MS backup.
Backup and Restore
Image Backup - Win 10
I may be the first one to do it, or maybe not. But just a reminder to everyone (who did hard installation on SSDs and HDDs). All of us here have just clean installed the Win 10 Tech Preview. If it's running okay now, before you go any further...
Backup and Restore
It's Backup Season Again
It's almost the end of the summer season. It's time to image my PCs again. This is also a reminder to all who have not done so. And while you are waiting for Win 9 to arrive, start backing up you system now. It will come in handy specially to those...
Backup and Restore
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 17:58.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums