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

Discus and support How to setup Task Scheduler to backup folders from NAS to PC over LAN? in Windows 10 Backup and Restore to solve the problem; 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... Discussion in 'Windows 10 Backup and Restore' started by unpetru, Jul 23, 2015.

  1. unpetru Win User

    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!

    :)
     
    unpetru, Jul 23, 2015
    #1
  2. pekkan4 Win User

    Why Task Scheduler runs only the first action from the action list after upgrade from Win10 to Win10 Anniversary update

    I have had a task in task scheduler for years that has a handful of robocopy commands with respective RJC files that backup my files to a NAS drive.

    It has been running successfully but now it only runs the first robocopy command (succesfully) on the list and not the remaining ones. I don't see any errors anywhere in task schedule or in the event viewer (I was looking at all the windows logs and app
    logs specifically for task scheduler in the event viewer). When I run the actions manually from elevated CMD they run just fine. I also tried re-entering my user name & PW for the task as it as been the issue in the past after some upgrades but that did not
    help either.

    The robocopy commands are basically all the same with same options in RJC files and flags except for output to different log file and the source and destination folders are different but all between the same local HDD and the NAS drive.

    Also, I have another task which is similar but instead takes the backup to USB drive. It is now having the same problem after the upgrade.

    Any idea what is wrong or how to troubleshoot the issue?
     
    pekkan4, Jul 23, 2015
    #2
  3. mouse2404 Win User
    set Task Scheduler automatic shutdown after a spercific program has run

    I have 2PC's on 1 I use as a backup for my file backup from PC 1, which automatically will start PC2 if it is not running. How do I schedule a task to switch of PC 2 after file backup has run using Task Scheduler.

    PC 1 runs file backup once a day, if PC 2 is not running it will start it up, both PC's are on a home network.

    Any help would be appreciated.
     
    mouse2404, Jul 23, 2015
    #3
  4. NUS
    Nus Win User

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

    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.
     
  5. unpetru Win User
    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.
     
    unpetru, Jul 23, 2015
    #5
  6. swarfega Win User
    Take a look at Uranium Backup. Excellent bit of software.
     
    swarfega, Jul 23, 2015
    #6
  7. unpetru Win User
    Can it wake up my computer?
     
    unpetru, Jul 23, 2015
    #7
  8. swarfega Win User

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

    You'd have to ask them that. I can't see it mentioned on their website.
     
    swarfega, Jul 23, 2015
    #8
  9. NUS
    Nus Win User
    Apologies, I didn't read your post properly. Backing up a NAS to a PC, eh? How unconventional. *Wink

    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[/quote] 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.
     
  10. unpetru Win User
    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.[/quote] 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! *Smile
     
    unpetru, Jul 23, 2015
    #10
  11. NUS
    Nus Win User
    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.
     
  12. NUS
    Nus Win User
    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'.
     
  13. unpetru Win User

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

    I tried. Doesn't work. I don't know why. It just doesn't work in hidden mode.
     
    unpetru, Jul 23, 2015
    #13
  14. NUS
    Nus Win User
    You have to change the user account to run the task under to SYSTEM and have 'Run with highest privileges' and 'Hidden' ticked. Did you try that?

    Otherwise, attempt to start the task to run under NT AUTHORITY\SYSTEM. It may throw an error after you enter the password but it should set the user to SYSTEM with the correct privileges.
     
  15. unpetru Win User
    Thank you for your feedback. I will try to hide the process but even if I couldnt, my problem is solved. Thanks a lot! *Smile
     
    unpetru, Apr 5, 2018
    #15
Thema:

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

Loading...
  1. How to setup Task Scheduler to backup folders from NAS to PC over LAN? - Similar Threads - setup Task Scheduler

  2. Task Scheduler: UpdateOrchestrator Schedule Backup Scan can not be dis

    in Windows 10 Backup and Restore
    Task Scheduler: UpdateOrchestrator Schedule Backup Scan can not be dis: Hello, I would like to ask you and at the same time a Microsoft representative to send me the exact way how to uncheck / disable forever the checked function in Task Scheduler - UpdateOrchestrator - Backup Scan - on the folder "Conditions" - "Wake the computer to run this...
  3. Task Scheduler: UpdateOrchestrator Schedule Backup Scan can not be dis

    in Windows 10 Support
    Task Scheduler: UpdateOrchestrator Schedule Backup Scan can not be dis: Hello, I would like to ask you and at the same time a Microsoft representative to send me the exact way how to uncheck / disable forever the checked function in Task Scheduler - UpdateOrchestrator - Backup Scan - on the folder "Conditions" - "Wake the computer to run this...
  4. Windows Folder Custom Icon over LAN

    in Windows 10 Network and Sharing
    Windows Folder Custom Icon over LAN: Hi, I've got a folder with a few sub-folders. Each subfolder I have created a custom icon for. The folder is Shared on my LAN. When i access the folder from another computer, by default, it seems to load the default folder icon, not the custom icon I've set it to. Is...
  5. How do I stop M$ from disabling my LAN over and over and over....

    in Windows 10 Network and Sharing
    How do I stop M$ from disabling my LAN over and over and over....: Every single time there's any kind of update, my LAN gets disabled. See details here: Network Computers are Not Visible in Windows 10 All I have to do is open Winaero Tweaker and click a box (instead of opening services and scrolling down to "Function Discovery Resource...
  6. How do I stop M$ from disabling my LAN over and over and over....

    in Windows 10 Network and Sharing
    How do I stop M$ from disabling my LAN over and over and over....: Every single fucking time there's any kind of update, my LAN gets disabled. See details here: Network Computers are Not Visible in Windows 10 I all have to do is open Winaero Tweaker and click a box (instead of opening services and scrolling down to "Function Discovery...
  7. Accessing NAS from task scheduler to run under SYSTEM

    in Windows 10 Network and Sharing
    Accessing NAS from task scheduler to run under SYSTEM: I'm trying determine if a (non-Microsoft) product creates a security exposure. In order to do this I need to run a task under "NT AUTHORITY\SYSTEM". My first step was to create a task that accesses a public share on NAS and schedule it to run under SYSTEM. (I'm not really...
  8. How do I use task scheduler to setup hourly reminders

    in Windows 10 Support
    How do I use task scheduler to setup hourly reminders: I want to use task scheduler to setup periodic reminders and since I'd no idea how to do this I googled and tried this but no success. So how do I do this. I'm trying to setup a reminder on a hourly or so basis to do exercises for RSI in my hands. Appreciate any help *Smile...
  9. Empty folder in task scheduler

    in Windows 10 Support
    Empty folder in task scheduler: I open task scheduler as administrator. I navigate to Microsoft, Windows, RAC. The task is empty. The RAC folder is System32 is there, but empty as well. The reason I looked is that my Reliability Monitor is no longer an option in Security and Maintenance. I've been having...
  10. Export Task from Task Scheduler in Windows

    in Windows 10 Tutorials
    Export Task from Task Scheduler in Windows: export all tasks: Create a folder "task" in the desktop Run Powershell as admin: Code: Get-ScheduledTask | foreach { Export-ScheduledTask -TaskName $_.TaskName -TaskPath $_.TaskPath | Out-File (Join-Path "C:\Users\Me\Desktop\task" "$($_.TaskName).xml") }[/quote]...