Hi folks,
FreeBSD 5.4-RELEASE-p6 i386
We have a script in our environment that is used to back up our mail
logs. In essence it does:
cp -p /var/log/maillog.0.bz2 /stats/maillogs/maillog-testcopy.bz2
According to the cp man page:
snip
-p Cause cp to preserve the following attributes of
You need to run this as root so the permissions and ownership all can be
set.
-Derek
On Mon, 28 Aug 2006, Gabriel O'Brien wrote:
Hi folks,
FreeBSD 5.4-RELEASE-p6 i386
We have a script in our environment that is used to back up our mail logs.
In essence it does:
cp -p
According to the cp man page:
-p Cause cp to preserve the following attributes of each source file
in the copy: modification time, access time, file flags, file
mode,
user ID, and group ID, as allowed by permissions.
If the user ID and group ID cannot be preserved, no error message