HOW2 copy file-tree?

no not with mc. That works fine.

I need to restore some setting to a re-booted llve-disk installation,
as part of a script.   .....

echo "AND also mc !!!"
installpkg \
echo "tests OK"

echo "AND also Kogi:/root .*<setting file/S>
 from previous conditions,
 perhaps Kogi/root should be saved before shutdown ?
 ?? and now COPY /sa10/Chroot/KogiRoot to Kogi ??"
#cp -r /sa10/Chroot/KogiRoot /root ? copies INside
#cp -r /sa10/Chroot/KogiRoot/* /root
#       copy all SOURCE arguments into DIRECTORY

I just want to overwrite/update the new file-tree: /root
  with the saved: /sa10/Chroot/KogiRoot

So simple. I can't believe that this can be a problem !!

Of course with mc it's no problem, but I want it done as
part of the <setup script>.

`cp --help` is a disaster, too.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]