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...

Комментарии • 12

  • @suryap6564
    @suryap6564 6 месяцев назад +3

    Thanks for the video

  • @kaiviti2013
    @kaiviti2013 Месяц назад

    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

    • @lessonzilla
      @lessonzilla  Месяц назад

      Are you running the command as administrator?

  • @commonmanchennai
    @commonmanchennai 3 месяца назад

    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

    • @lessonzilla
      @lessonzilla  3 месяца назад

      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

  • @penthouseikoyi
    @penthouseikoyi 3 месяца назад

    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?

    • @lessonzilla
      @lessonzilla  3 месяца назад

      You can test with the XO switch/command and see if it gives the results that you are looking for.

  • @rickh4828
    @rickh4828 4 месяца назад

    I use the mirror command, will the folder be constantly mirror or do i need to run the command every time?

    • @lessonzilla
      @lessonzilla  4 месяца назад +1

      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.

    • @rickh4828
      @rickh4828 4 месяца назад

      @@lessonzilla first thank you for the video great video.. would I run the same code I originally ran with Mirror commend or different?

    • @lessonzilla
      @lessonzilla  4 месяца назад

      @@rickh4828 same mirror command every time you want to mirror