{"id":8100,"date":"2024-12-24T09:03:28","date_gmt":"2024-12-24T03:33:28","guid":{"rendered":"https:\/\/www.conceptworld.com\/blog\/?p=8100"},"modified":"2024-12-24T09:03:28","modified_gmt":"2024-12-24T03:33:28","slug":"sync-files-between-source-and-destination-folders-using-powershell-alternative-replacement","status":"publish","type":"post","link":"https:\/\/www.conceptworld.com\/blog\/index.php\/sync-files-between-source-and-destination-folders-using-powershell-alternative-replacement\/","title":{"rendered":"Sync Files Between Source and Destination Folders using PowerShell alternative replacement"},"content":{"rendered":"\n<p>Syncing files between source and destination folders is a common task, whether for creating backups, maintaining uniformity across systems, or transferring updated data. Copywhiz and PowerShell are two of the tools for this purpose. This guide explores their step-by-step processes<\/p>\n\n\n\n<p>Now let&#8217;s look at step by step guide using Copywhiz.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Copywhiz?<\/h2>\n\n\n\n<p>Copywhiz enhances your file-copy experience by letting you to have more flexibility &amp; control over the file copying and backup process. <\/p>\n\n\n\n<p>Here is how Copywhiz makes file copying a breeze: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy only new or modified files<\/li>\n\n\n\n<li>Easily pick files by name, extension, folder etc from bunch of folders<\/li>\n\n\n\n<li>Automatically organize files based on file attributes and metadata<\/li>\n\n\n\n<li>Copy files to multiple folders\/computers<\/li>\n\n\n\n<li>Copy files from multiple folders and paste them at once<\/li>\n\n\n\n<li>Sync files between source and destination<\/li>\n\n\n\n<li>Pick files from multiple folders and compress in single .zip file<\/li>\n\n\n\n<li>Schedule file backups<\/li>\n\n\n\n<li>Verify copied files for data integrity<\/li>\n\n\n\n<li>Retain security attributes of files &amp; folders (ownership\/user access)<\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.conceptworld.com\/Copywhiz\/Features\" target=\"_blank\">Several more hidden nuggets<\/a>&nbsp;designed to make your file-copy task easier.<\/li>\n<\/ul>\n\n\n\n<p>Here&#8217;s a short video on this feature:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Windows: Sync files between source and destination folders in Windows using Copywhiz\" width=\"660\" height=\"495\" src=\"https:\/\/www.youtube.com\/embed\/yUBfeJidYHM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Transcription: <\/h2>\n\n\n\n<p>1. After you select your files in Copywhiz, go to the destination folder and Choose \u2018Copywhiz -&gt; Paste Advanced\u2019.<\/p>\n\n\n\n<p>2. The Copywhiz main window will open. Choose the Advanced Settings Tab from there.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"715\" height=\"555\" src=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2020\/09\/Main-Window.png\" alt=\"\" class=\"wp-image-6517\" srcset=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2020\/09\/Main-Window.png 715w, https:\/\/www.conceptworld.com\/blog\/uploads\/2020\/09\/Main-Window-300x233.png 300w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/figure><\/div>\n\n\n<p>3. Go to the General Tab and choose the option &#8216;Automatically identify &amp; paste only new or modified files&#8217;. After that, select the option &#8216;Delete files from destination if deleted from source&#8217;.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"458\" height=\"557\" src=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2020\/09\/Settings_Sync_Delete_From_Destination-1.png\" alt=\"\" class=\"wp-image-6630\" srcset=\"https:\/\/www.conceptworld.com\/blog\/uploads\/2020\/09\/Settings_Sync_Delete_From_Destination-1.png 458w, https:\/\/www.conceptworld.com\/blog\/uploads\/2020\/09\/Settings_Sync_Delete_From_Destination-1-247x300.png 247w\" sizes=\"(max-width: 458px) 100vw, 458px\" \/><\/figure><\/div>\n\n\n<p>  4. Click on OK and proceed with \u2018Paste Now\u2019 option. The files will be pasted and the folders will be set to sync.<\/p>\n\n\n\n<p>5. Save the project to run it again in the future. <\/p>\n\n\n\n<p>The next time you make any changes in the source folder, run the saved project file. The folders will sync and the changes will be reflected in the destination folder as well. <\/p>\n\n\n\n<p>We will have a look at step by step guide using PowerShell.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Using PowerShell<\/strong>:<\/h2>\n\n\n\n<p>PowerShell is a scripting tool built into Windows, allowing users to automate tasks like file synchronization. Below is a step-by-step guide to syncing files using PowerShell.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step-by-Step Guide<\/strong>: <\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open PowerShell: <br>Press Win + S, type &#8220;PowerShell,&#8221; and open it.<\/li>\n\n\n\n<li>Use the Copy-Item Cmdlet for Basic Copying<\/li>\n<\/ol>\n\n\n\n<p>To copy all files from SourceFolder to DestinationFolder:<br>Copy-Item -Path &#8220;C:\\SourceFolder*&#8221; -Destination &#8220;D:\\DestinationFolder&#8221; -Recurse<\/p>\n\n\n\n<p>Add the -Force parameter to overwrite existing files:<br>powershell<br>Copy-Item -Path &#8220;C:\\SourceFolder*&#8221; -Destination &#8220;D:\\DestinationFolder&#8221; -Recurse -Force<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Use the Robocopy Command for Advanced Syncing<br>PowerShell can execute Robocopy, which is better for syncing:<br>Robocopy &#8220;C:\\SourceFolder&#8221; &#8220;D:\\DestinationFolder&#8221; \/MIR<\/li>\n<\/ol>\n\n\n\n<p>\/MIR: Mirrors the source folder to the destination (adds, updates, and deletes files).<br>\/XF: Excludes specific files.<br>\/XD: Excludes specific directories.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Automate with a PowerShell Script<br>Save the script below in a .ps1 file:<br>$Source = &#8220;C:\\SourceFolder&#8221;<br>$Destination = &#8220;D:\\DestinationFolder&#8221;<br>Robocopy $Source $Destination \/MIR<\/li>\n<\/ol>\n\n\n\n<p>Schedule this script using Task Scheduler for automated syncing. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p><strong>Choose Copywhiz<\/strong> if you prefer simplicity, a graphical interface, or need advanced options like selective file copying and scheduling without delving into scripting.<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/www.conceptworld.com\/Copywhiz\" target=\"_blank\">Learn more about<\/a>&nbsp;Copywhiz. Download the free trial&nbsp;<a href=\"https:\/\/www.conceptworld.com\/Copywhiz\/Download\">from here<\/a>.<\/p>\n\n\n\n<p>For short tutorial videos,&nbsp;<a href=\"https:\/\/www.conceptworld.com\/Copywhiz\/Videos\" target=\"_blank\" rel=\"noreferrer noopener\">Check out this page<\/a>.<\/p>\n\n\n\n<p>Subscribe to our&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/channel\/UCULI5s6KJn-0iDIeqJRUWQA\/featured?view_as=subscriber\" target=\"_blank\">YouTube channel<\/a>&nbsp;for interesting videos.<\/p>\n\n\n\n<p>Check out our&nbsp;<a href=\"https:\/\/www.conceptworld.com\/\" rel=\"noreferrer noopener\" target=\"_blank\">other cool products<\/a>.<\/p>\n\n\n\n<p>Have a good day!<\/p>\n\n\n\n<p>Thanks :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Syncing files between source and destination folders is a common task, whether for creating backups, maintaining uniformity across systems, or transferring updated data. Copywhiz and PowerShell are two of the tools for this purpose. This guide explores their step-by-step processes Now let&#8217;s look at step by step guide using Copywhiz. What is Copywhiz? Copywhiz enhances &hellip; <a href=\"https:\/\/www.conceptworld.com\/blog\/index.php\/sync-files-between-source-and-destination-folders-using-powershell-alternative-replacement\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Sync Files Between Source and Destination Folders using PowerShell alternative replacement<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-8100","post","type-post","status-publish","format-standard","hentry","category-copywhiz"],"_links":{"self":[{"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/8100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=8100"}],"version-history":[{"count":6,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/8100\/revisions"}],"predecessor-version":[{"id":8150,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/8100\/revisions\/8150"}],"wp:attachment":[{"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=8100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=8100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.conceptworld.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=8100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}