gpfault said:Furthermore when
using DA custom httpd configuration whatever is added
gets added to BOTH <VirtualHost> tags and I think we
as DA users should have the option of adding to these
tags seperately. As I don't want the directives added to
both.
Yikes2000 said:To prevent DA from overriding your httpd.conf, change the file's owner to root. I also save an extra copy (httpd.conf.bak) just in case.
# cd /usr/local/directadmin/data/users/<user>
# chown root httpd.conf
# chmod 644 httpd.conf
# cp httpd.conf httpd.conf.bak
Now you won't "accidentally" delete the file through DA.
gpfault said:Anyone know a way to be logged into SSH as root and can then copy a users home directory say from a backup archive but when copying the home directory all ownerships would stay they way they should be?
cd /home
tar cvfz /BACKUPS/yourclient.tgz yourclient
tar xvfz /BACKUPS/yourclient.tgz
gpfault said:Yes I realize what you are saying but what if I am using a full system backup. Is there a way to just extract the one users "home" directory from the archive?
-x
--extract
--get
Extract files from an archive. The owner, modification
time, and file permissions are restored, if possible. If
no file arguments are given, extract all the files in the
archive. If a filename argument matches the name of a
directory on the tape, that directory and its contents are
extracted (as well as all directories under that direc-
tory). If the archive contains multiple entries corre-
sponding to the same file (see the --append command
above), the last one extracted will overwrite all earlier
versions.
Webcart said:I second Jeff: man tar is your friend
Here is a snapshot: