[Solved]Understanding some basics
This post is deleted!
@Rudy-Trujillo The middle two commands with
taressentially moves everything from
/mnt. The reason why this method was used instead of a simple
cp -rwas because this way all the timestamp and ownership of the files and directories are preserved.
The way it works is essentially getting tar to create a compressed version of all files in
/overlay. The compressed data is then passed via the pipe to another
tarcommand, which decompresses that in the
/mntdirectory. Note that instead of taking a filename as the argument in the second
tarcommand, it reads directly from stdin.