tj2419 Posted December 20, 2018 Posted December 20, 2018 I am going to be migrating the files on a QNAP NAS over to a windows NAS. I want to start the copying during term time and have it syncing any changes over each night for a little bit. Is there an application people would recommend for this? Ideally I want it to keep the permissions and only the latest version of the file overwriting any older versions. Cheers
mikkydoos Posted December 20, 2018 Posted December 20, 2018 (edited) MS cmd util Robocopy will do this fine for you. You might have to run a scheduled task to fire each copy task off from a batch file. How much data ?? EDIT: I did this recently from one Windows file server to another.... robocopy "%SOURCEFILEPATH%" "%DESTFILEPATH%" /e /r:3 /w:5 /fp /zb /COPY: DATSO https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy Edited December 20, 2018 by mikkydoos 2
mdrabble Posted December 20, 2018 Posted December 20, 2018 +1 for Mikkydoos way - i did the exact same thing move files from an old 2008 (32bit) server to a new 2019 server. 1
tj2419 Posted December 20, 2018 Author Posted December 20, 2018 MS cmd util Robocopy will do this fine for you. You might have to run a scheduled task to fire each copy task off from a batch file. How much data ?? EDIT: I did this recently from one Windows file server to another.... robocopy "%SOURCEFILEPATH%" "%DESTFILEPATH%" /e /r:3 /w:5 /fp /zb /COPY: DATSO https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy So if I just schedule that command to run each day it will just overwrite the files in the new location? Is there a way to set it to trigger another copy once the first has completed? E.g. wrap it all in a bat file? Thanks
mikkydoos Posted December 20, 2018 Posted December 20, 2018 (edited) a) You should be able to schedule every x (time) but you need to time it right so you don't get multiple tasks running concurrently. The first run will take much longer than subsequent 'syncs'. b) Depends on your switches. Look at the technet link I put there.... my command keeps perms, overwrites older, retries 3 time every x seconds, etc etc. I'd run it over a weekend and have your new path ready for a Monday morning. Like I said... depends on how much data you have and the number of files. Mine took about 2 days over a gigabit LAN but was about 5TB of data. Look at your trigger options in Task Scheduler. Edited December 20, 2018 by mikkydoos
The_IT_Guy Posted December 20, 2018 Posted December 20, 2018 If I run it manually or run the .bat manually it works but as soon as I set it up via scheduler it stops with a username or password incorrect error.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now