ROBOCOPY probs alternate method for new and changed files

  1. jimbo45's Avatar
    Posts : 10,886
    Windows / Linux : Arch Linux
       #1

    ROBOCOPY probs alternate method for new and changed files


    Hi folks

    If you are getting hosed up with ROBOCOPY then alternate method :

    If you have the WSL or a Linux VM (or a NAS with a CMD line on it) and you just want to copy new and changed files only

    then simply do : rsync -avP /source/path/ /dest/path/

    parameters a = archive mode - duplicates the source tree as closely as possible, v = verbose -- displays diagnostics , P = progress -- displays progress

    This method won't be suitable for a lot but I do know quite a few have Linux VM.s the WSL or NAS systems and a requirement is often simply to backup new and changed Data files only. (For the OS I'd always image the whole system but that's another issue).

    Remember often from Windows you can often get to a NAS command line via SSH.

    W10 has openssh client installed by default and openssh server is installable from the extra apps - you'll need the openssh server service running on Windows to send files from Windows to NAS by this method as the command is executing ON the NAS.

    The NAS can of course read NTFS files - I'm assuming your NAS is either a NAS proprietary box e.g QNAP or whatever or a "Home build Linux server" rather than just "Dumb" HDD's with network capability like say a network printer.

    Cheers
    jimbo
      My Computer


  2. Posts : 3
    windows 10
       #2

    Great ideas, but How I can do this in real? , was running on the same issue, and for sorry, copying the new files only or the updates from windows to NAS without copying the whole file again is not something easy with Robocopy, and we should take into count that we need this job to be run automatically, this made us search for a script or something can be run automatically for such jobs, so this led us to tools like GoodSync, GsRichCopy360, Carbonite .....etc, the trial versions checked and it sounds good to work fine for this request.
    my Cons is only with the price with these tools so my question is, how can I use Robocopy to backup the updated data automatically from windows server to NAS ? and which switch would I use to make all the types of permissions copied from the windows server to the NAS and to be sure that it will applied?
      My Computer

  3. jimbo45's Avatar
    Posts : 10,886
    Windows / Linux : Arch Linux
    Thread Starter
       #3

    Hi there
    @Fiolori

    There's loads of ways to do this but probably the easiest is FROM Windows TO the NAS. Ensure openssh-server and the WSL is installed on Windows.

    Then :

    Backup with rsync on Windows (WSL)

    Start by backing up to an external drive.

    Once you've got used to rsync you should be able to automate the command via crontab to run directly on the NAS using the IP address of the Windows Machine. There's loads of options in rsync so I'd test with the external HDD first and WSL and copy manually the data from the external HDD to the NAS. (Note NAS data should be backed up too so the fact you've already got it on an external HDD isn't a waste of time !!!).

    Any probs - just post again.

    Cheers
    jimbo
      My Computer


  4. Posts : 3
    windows 10
       #4

    I didn't know that Rsync can work on windows !! but as per the mentioned link , it can .
    So , this means I can backup the updated data automatacly without have to run the code every time using this way ?
    I think I will give your way a try , many thanks
      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 00:25.
Find Us




Windows 10 Forums