I'm using robocopy to copy files to a samba share. The drive contains around 800 GB of data with over a million files that are 20-80K each. The issue I'm having is that robocopy copies all files each time (which takes around 12 hours). I'd like it to only copy new or changed files each time. Below is the command line I'm using:
robocopy d:\ \\samba\share\ /e /z /r:0 /w:0 /copy:DAT /xd $RECYCLE.BIN /xd "System Volume Information"
I've used these options when copying to Windows shares and it's worked as I want but for whatever reason when copying to a samba share it copies all files. Any ideas on how to get robocopy to only copy new/changed files to a samba share? Also, anyone have a better solution than robocopy?
Synchronization or syncing files is an important task that should not be taken for granted. It is a way in which you can keep the updated version of your data and use it as restore points. In case of any disaster i.e. technical (system crash) or physical, you may lose your data. Using the synced copy of data, you can rehabilitate your device to the last working condition. Though there are number of built-in tools and mechanism for carrying out the sync function, yet there is a new tool in market. Robocopy is there to sync your files. This article is all about introduction of Robocopy /xo as tool, Robocopy sync capabilities and how to use Robocopy to sync folders.
As a tool, Robocopy (robust file copy) is a special command based directory that works on commands to deal with syncing and copying functionalities for windows operating system. It is a top notch feature presented by windows with NT4.0. Robocopy became a standard utility of windows with arrival of Vista. The command line used in the utility are different from the regular ones as it excels in mirroring and copying folders and directories of any size. Along with copying the folders, the Robocopy cmd mirror the essentials like time stamps, properties and NTFS ACLS. For the network based folders, Robocopy /xo comes up with a feature of resume copy. With this feature, it can tolerate the faulty network and resume the sync function from the point it left, as the name implies ‘resume copy’. It also has the capacity of skipping the infinite loops that causes sync failures. It can copy between the ranges of 259-32,000 characters without any error. As mentioned above, this tool works on command lines, so here are some of the commands that are employed to copy the files/folders.
This article would be discussing every detail linked to this Robocopy /xo and gives a thorough explanation regarding how to use Robocopy to sync folders. Here are the topics that would be discussed in detail.
As mentioned above, Robocopy /xo is used to copy the files and folders on network along with the complete directories, you can also employ the tool copying only new files i.e. Robocopy only new files. Using Robocopy for this purpose is quite common. Why? Let’s have a look!
These two points are valid to save time and to avoid the space linked issues. Hence, Robocopy /xo can be used for syncing/copying/mirroring the new files only i.e. Robocopy copy only new files.
As mentioned above, Robocopy copy only new files technique is fascination g for all. It helps to sync files and folders quite easily without consuming time and disk space. So here ae the steps to elaborate how to copy changes only with Robocopy command.
Step 1: In the main menu of windows, click start and in the search box, type CMD to run he command prompt.
Step 2: In the drop down, select the option of command prompt and again in the drop down click on run as administrator.
Step 3: As soon as the command prompt launches, type the desired Robocopy command lines to perform targeted function. Here is the command:
Here “/maxage:” denotes the farthest modification time. The file with a huge time frame would not be copied i.e. as mentioned above, it can only copy the newly made changes to save time and space.
Here are some of the commonly employed command parameters:
Enter the desired command line or parameter in the command prompt and leave the rest to this amazing tool. It will copy/sync/mirror smartly.
Sometimes, it is quite difficult for the users, mostly for the newbies to use the command lines. They can make mistakes and end up with no results. So here is an alternative for the, using a third party application software can help at this time. AOMEI backupper professional is a top notch backup software that carries outstanding data migration tools. It is compatible for your Windows 10/8/7, XP and Vista. It helps to create system and disk images that occupies less space. Here is how you can use the software to sync or copy files and folders.
Step 1: Download the software and then run an install as administrator.
Step 2: Once installed successfully, launch the software on your device and in the main interface select the option of backup followed by selecting file backup.
Step 3: In the file backup window, next step is to click on add folder to add the source drive/folder targeted for backup. Click ok to proceed.
Step 4: From the drop down, select the destination drive (be it Cloud drive, shared folder or NAS).
Step 5: In case you want to schedule the backup function, configure the schedule settings. Check the box of differential backup and click ok to continue.
Step 6: Once all steps are completed, click start backup to complete the action.
Your backup would be automatically saved on the destination location/drive. Scheduling your backup can be done on daily, weekly or monthly basis. Moreover, you would get an email notification regarding the completion or failure of the process.
Hence, as mentioned earlier, synchronization or syncing the files and folders saved on multiple locations is an important task. You have to carry out a regular sync function in order to keep your data updated on all locations. In this regard, Windows present you with a built-in sync tool i.e. Robocopy /xo. It is used by the users to copy/sync and mirror the files and folders efficiently. The top notch tool helps to perform the sync function smartly, as it only sync/copy the files and folders only for new changes. This can help to save time and disk space. The tool follows command lined based technique for carrying out functionality. Enter the particular command line and you are done with the task in no time. But using command lines is not easy. So for the newbies, here is this third party help alert. You can use AOMEI backupper professional for creating file backups in few steps.