Copy and Backup Utility Review – Robocopy or Xcopy, Which One?

by Dorian on March 9, 2012. Updated April 1, 2012

Robocopy or Xcopy Which One to Use?

These two command line file copy utilities seem to provide the same functions. However don’t be deceived by the number of options xcopy provides. It is just a as it is a poor relative of the more robust, featured,
When to Use Xcopy and When to use Robocopy?
If you need advanced features such as backing-up, type of copy and you want 100% reliability of the copy process then Robocopy (robust copy) is your choice. If on the other hand, you don’t have a complex copy job Xcopy will do it. Xcopy is part of the operating system, it comes with Windows, whereas robocopy needs to be copied from another system, or you need to install the Resource Kit. To put it more simple, xcopy is always available as the shell command "copy".

Features of Xcopy and Robocopy

Why not use the shell command copy then, is the next question. Because "copy" is just too minimal and cannot accomplish what the other two can. It only copies files and not directories with the afferent directory structure. It cannot copy attributes and ACLs.
In contrast, the other two file copy utilities are featured in such way that they can be easily used as backup systems if the correct options are setup. In conjunction with the scheduler and using a batch script this can be a powerful backup solution that is both inexpensive and flexible.
The features of Xcopy and Robocopy are: selective attributes replication, ACLs can be maintained or not for the files copied, ownership can be copied or not, folder structure replication, fully automation, archive attribute support – which makes it a real backup utility, file exclusion option, verification of the copied files, performance tuning.

What are the differences between Xcopy and Robocopy?

If we were to sum up we could say that Robocopy is way more powerful than Xcopy. But of course you might ask me for arguments to support my statement, here they are:
The most annoying thing about Xcopy is that you can’t use the network restartable mode if you copy ACls. Isn’t this annoying? For me this was enough of a reason to install the Resource Kit and get the Robocopy immediately. But wait, the list doesn’t stop here.

Robocopy as a Backup Software

Why is Robocopy worth writing about? Robocopy is a great software that can be used as a backup utility. Its features makes it fit for maintaining automated file backup using various approaches. It can be used for directory mirroring, for archiving files, for moving files, etc…
It can be used to copy only new or changed files, it can use the archive bit, as any good backup software would.
If the target directory is enabled for compression, it can save space as well.
Another application of Robocopy is during migrations or server upgrades. Because sometimes migrations or server changes are time sensitive, we need to copy as much as possible before switching to the new server. This where Robocopy comes in handy. You start the mirroring ahead of time, so all the files are copied. When the time of switching is close there are only minor changes to be done so the operation is very fast. The key options for this applications are: robocopy /MIR to mirror the directory, robocopy /MON:n to MONitor the source and run again when more than n changes occur and robocopy /MOT:m to MOnitor source and run again in m minutes Time, if changed.
Another neat application is to archive files that haven’t been used in a given period.
This command moves files that haven’t been used in 500 days, in restartable mode, copying the attributes, the file’s owner, and the ACL, excluding older files.
robocopy C:\FILES \\SERVER\FILES-ARCHIVE /e /zb /r:0 /w:1 /copy:daso /xo /move /MINLAD:500

Other Cheap Backup Utilities

Another cheap, (free), utility is xxcopy.
The utility competes with Robocopy, has versions for both 32 bit and 64 bit OS, and has more command switches.
However, this isn’t a free program for businesses, it is free for for personal use though.

Downloads and Resources

Download the resource kit for Windows 2003 here, (the resource kit contains robocopy): http://www.microsoft.com/download/en/details.aspx?id=17657
You can download xxcopy here: http://www.xxcopy.com/xcpydnld.htm
A robocopy GUI interface can be downloaded here: http://download.microsoft.com/download/f/d/0/fd05def7-68a1-4f71-8546-25c359cc0842/UtilitySpotlight2006_11.exe
Another robocopy GUI interface can be downloaded here: http://download.microsoft.com/download/f/d/0/fd05def7-68a1-4f71-8546-25c359cc0842/HoffmanUtilitySpotlight2009_04.exe

{ 1 comment }

Centos Network Configuration – on a Barebones from Command Line

by Dorian on February 22, 2012. Updated January 10, 2013

Centos Network Configuration – is very simple on a full installation. However, I downloaded the Centos’ “Minimal Install” cd and used yum to install various packages I needed.

The simple way to do it if you have a standard installation is to use the Network Administration
Tool (system-config-network), which is a graphical interface to edit the configuration files. Since I haven’t installed this tool, I needed to edit the files manually.

How to Configure Network in Centos from Command Line:

A quick way to see if your interface works and if you can ping internal resources.
ifconfig eth0 192.168.0.2 netmask 255.255.255.0
Use your IP addresses.
Note that this is not persistent, at the first reboot, ot first network services restart this will be lost.

For a DHCP address assignment use:
ifdown eth0
dhclient eth0

To get a persistent centos network configuration use the following procedure:

Edit the network configuration file

vi /etc/sysconfig/network-scripts/ifcfg-eth0
Edit the configuration file so it contains your IP address configuration as follows:
DEVICE="eth0"
BOOTPROTO=none
HWADDR="00:00:00:00:00:00"
NM_CONTROLLED="yes"
ONBOOT="yes"
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
IPADDR=192.168.0.2
PEERDNS=no
USERCTL=no

This configures your interface with the IP 192.168.0.2 and the netmask 255.255.255.0.
For more info about Centos’ network configuration look here: .

Set up Name Resolution

Name resolution configuration, is more consistent across various Linux distributions. Most of the Linux distros will have the configuration file at /etc/resolv.conf.
Edit this file and change according to your network:
vi /etc/resolv.conf
Modify the file so it contains pointers to your DNS servers like this:
nameserver 192.168.0.254
nameserver 192.168.0.253

{ 0 comments }

Scalix Administration – Useful Commands

February 16, 2012

Scalix is now a mature email server, reliable and powerful, that can accommodate environments with thousands of users. Most of the tasks can be accomplished using the web interface, which is a nice and intuitive interface. However, not all the [...]

Read the full article →

PROTECT IP / SOPA Breaks The Internet

January 18, 2012

Update to the probably most infamous attempt of civilized world to bring the darkness of communism and censorship into the Internet world. Lamar Smith, creator of the bill, pulled the bill “until there is wider agreement on a solution. Yay!!! [...]

Read the full article →

Start a Blog – Dedicated WordPress Hosting

December 3, 2011

You’ve finally decided that you want to start a blog. Whether the blog is for a business for a nonprofit association or as a personal blog has little importance, the important thing is to have a plan an the know-how. [...]

Read the full article →

Major Top Level Domain Name Expansion to Include more Generic TLDs

September 1, 2011

More gTLDs will be available soon for Corporations, Cities and other big entities. The new gTLDs could include names such as .google or .microsoft.

Read the full article →

Sales Management Software

August 19, 2011

Businesses must be able to track orders all along the sales process in order to be successful. Small businesses are especially affected by problems due to misinformation, or little problems encountered in fulfilling the client’s order. More than 50% of [...]

Read the full article →

Start an Internet Store

August 17, 2011

E-commerce is an acronym for Electronic Commerce and consists of the selling products and services over electronic systems such as the Internet and other types of computer networks.

Read the full article →

How to troubleshoot a slow computer network?

April 11, 2011

You have problems on your network? Network is slow or it doesn’t work? Follow this Network troubleshooting Guide to find where the bottleneck is.

Read the full article →