How to use Robocopy to copy files, folders and permissions
HTML-код
- Опубликовано: 7 фев 2025
- Join this channel to get access to perks:
/ @lessonzilla
#robocopy #microsoft #commandprompt #commandline #copy #files #folders #ntfs #permission #acl #itadmin #itsupport #windows #windows7 #windows10 #windows11 #networking #freetutorial #freesoftware #data #migration #subscribetomychannel #1000subscriber
Microsoft documentation on Robocopy features - learn.microsof...
Thanks for the video
Our pleasure!
What would be the syntax in the command to copy the source folder (Folder A) along with all its contents to Folder B. i.e copy Folder A into Folder B? I been trying different combinations including "/MOVE" to simply move Folder A into Folder B, but Folder A keeps getting left behind. ChaptGPT seems to give me correct syntax but its not working
Are you running the command as administrator?
Which is the best command line to move files and folders completely from SOurce to destination without missing any files or folders even empty or restricted everything. Pls help
You can use something like below. Change the source, destination and log file path to suit your needs. Always test the command before deploying.
robocopy "C:\Source\Path" "D:\Destination\Path" /MIR /COPYALL /R:3 /W:5 /LOG:"C:\Path\to\LogFile.log" /TEE
Hello,
I know robocopy ''Mirror'' command sync both source and destination, but is there a way to stop files that were deleted from source from being deleted at the destination?
You can test with the XO switch/command and see if it gives the results that you are looking for.
I use the mirror command, will the folder be constantly mirror or do i need to run the command every time?
Yes. Depending on how often the files on the source folder changes you may want to run it daily or alternate days or weekly etc. if you do not want to do this manually, you can create a batch file and create a task schedular task to run it automatically on a frequency of your choice.
@@lessonzilla first thank you for the video great video.. would I run the same code I originally ran with Mirror commend or different?
@@rickh4828 same mirror command every time you want to mirror