All right. Hello and welcome to come
in line BASIX, this video, we're
going to go over those final
commands to.
I'm Christopher Haler and let's
begin.
So we're learning objectives for
this video. We're going to do a
refresher on the copy and the move
commands, learned the robocopy
command and learn the exact copy
command as well.
Pre assessment.
What is an advantage to use robocopy
instead of copy?
A robocopy can copy only
change files be
robocopy can copy on local system
only C copy
offers logging or D
copy can mirror remote folder
structures
answers a robocopy
can copy only changed files.
And these are files that have that
archive bit set where
they have changed since the last
backup or the last copy of the file.
So this is a very useful way to
significantly reduce the amount of
files that are being copied with
these command and help reduce any
kind of network throughput that may
be saved for other purposes.
RoboCup, you can copy
on remote file shares.
This is one of the very useful
portions of it.
And Copy does not offer logging.
The Windows copy command by
itself is very,
very basic, whereas the
robocopy command is robust.
That is the role of
robocopy and it will offer logging.
So you can see exactly which files
were copied and copy
cannot be removed.
Folder structures.
That is another useful function of
the robocopy command, not the
copy command.
So a quick refresher on the copying.
The move creates another
copy of the file, another duplicate
of the original file.
So two of the same file
exist.
This is a very useful way if you
want to have backups of a specific
file or if you need to send
somebody a copy of the file
as well for them to use where
we have the move command,
it removes the original
file from the system when you
move it.
So it places a copy
of the original file in
the destination folder first.
And then once it verifies that the
new copy of the file has
been copied correctly, it will
remove the old file.
That way, you're not wasting any
disk space if you're trying to move
files or reorganize them all in your
system.
So move is very useful if we need
to be able to
either remove stuff from our system
or reorganize what we're doing
at at the file system
level.
Copy the copy command is
used to copy files and directory
trees, and it's a little
more strong than
the copy command.
It does operate faster than
the basic Windows copy command.
And this is due to an increased
buffer size. So it can hold
a little more work a little quicker.
And it is really, really good at
copying directories so it
can help copy that directory tree
structure when you are utilizing
the copy command.
So we'll hop into the prompt really
quick and I will give you a
quick overview
of the copy command.
So we're going to do X copy forward
slash questionmark.
And this brings up all of the help
for the copy command.
As we can see, we can copy files and
directory trees so we can choose
a whole bunch of different switches.
Depending on what our needs
are. We can choose depending on
some different type of date.
If a file is changed after the
specific date and we can use that,
we can also copy files that have the
archive attributes.
These are the types of files that
changed since the last backup.
So there's all sorts of different
useful uses of
the copy commit.
And then we have the robocopy come
in, I'm very partial to the robocopy
command just because it supports so
many different uses and utilities
at the Windows command line.
So it does support logging,
mirroring and purging.
And with the purging is is it
will take any it will compare
the two folder's structures
from your system
and a remote system and
it will say, hey, if
these files don't exist on this
system, but they do exist in
this remote directory, this remote
share, I want you to delete
any files that do not exist
in this remote
share. So it will copy
almost exactly the similar to
the mirroring aspect of
robocopy and help of
remove any files that no longer
exist at that remote share.
So it can also be used to select
very specific files.
Just like the copy command.
We can look for files that only have
the archive attributes set.
That way, we could save a lot of
bandwidth when we are
copying over the network and
it offers a significant amount
of functionality over the basic
copy command.
So if we come into our command line,
let's do robocopy
slash questionmark.
And as we see, we already have a
whole lot of options,
very useful.
This will take you a long time to
read through, but it is very
useful if you need to do some very
specific copying and
backup information as well.
So we can either copy
subdirectories, but not ones that
are empty or we can copy ones that
do have empty ones.
We can look for exactly which type
of files to copy, depending
on different attributes or
ECLSS.
The purge, we can delete destination
files and directories that no longer
exist in the source, so
very useful and it's
good to keep in mind and if
you're using the robocopy, come in
to help back up user data.
It's it's very robust
post assessment, which can and
should be used to create a log of
all copy items.
Is it A, copy, B,
copy, C, robocopy
or D, F.C..
The answer is C, robocopy.
As we've learned, we can create a
log of every file that was copied
over the network or to a different
share using the
robocopy command.
It's a very useful way to be able to
validate the files were copied
properly.
So it's a very useful
in the end and to help maintain that
integrity of your system.
All right. So in this video, we
learned a refresher on the move and
the copy commands and how
those files are treated.
We also learned about the robocopy
command and we learned about the X
copy command.
And I hope to see you in the next
video.