05-29-2002
Well, several different ways...
It depends on what you're using to backup / restore, and how you want it to work. One way if you're using tar is:
tar vcf /dev/rmt/0m files* >/path/to/log 2>&1
Or if you're allowing a user to add a definite set of files (one or many), you could do:
for each in $file_list
do
echo "$each -- `date`" >/path/to/log
# assuming you're adding to an already created tarball:
tar rf /dev/rmt/0m $each 2>/path/to/log
done
Can you give more details? What Unix system? What backup software are you using?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a SCO R5 Open Server Box running at a remote location, and from time to time it seems to "spontaneously" re-boot itself. Is there a specific log file that I can examine to see why the machine is doing this ? Any suggestions gratefully appreciated (1 Reply)
Discussion started by: pcs7088
1 Replies
2. Cybersecurity
is there a log/ how do i make a log that logs every packet inbound or outbound through my server?
I want every packet or packet fragment to be logged that comes to my server. (5 Replies)
Discussion started by: The Fridgerator
5 Replies
3. UNIX for Dummies Questions & Answers
Is there a file that captures info whenever someone logs to su? i know it comes across as standard output on the server, but is it saved anywhere? Time and date info included??
thanks, kym (1 Reply)
Discussion started by: kymberm
1 Replies
4. UNIX for Dummies Questions & Answers
Hi, just wriiten a sh script and as my script will try to log into another server to delete some files but when i run , it keeps on saying that my files do not exist. It seems to refer to my local directory instead. Below is my script :
FTP_HOST=ip_number
FTP_USER="user password"
... (1 Reply)
Discussion started by: blueberry80
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all!
On our current Solaris 8 machine we only have "standard" logging configured, and now i need to put on more. What i specificly need is time in the logfiles. Ex. When a user is logging in,
when a user makes it self SU. etc.
Regards...
dOzY (3 Replies)
Discussion started by: dozy
3 Replies
6. Programming
Hi
How to manage logging in an application.
Actually I am developing a Client-Server application in c/c++ and want to manage an optional logging in my application, but since prior I have never done ths activity.
Plz guide me.
thanks. (2 Replies)
Discussion started by: sumsin
2 Replies
7. AIX
What is the best way to logoff users from my Unix system? I have done a search and found that you can do a w or who - find who is on, and ps-ef | grep <user> and kill their processes. But what if you have a bunch of users and you need them off the system quickly? Killing individual processes... (1 Reply)
Discussion started by: outtacontrol
1 Replies
8. Shell Programming and Scripting
Hi all
Can anyone tell me how to login inot telnet,i heard that it is an interface between unix and windows,if i am wrong please correct me.
Thanks in anticipation (1 Reply)
Discussion started by: vinayrao
1 Replies
9. Post Here to Contact Site Administrators and Moderators
Hi Everyone. First, I want to thank all of you for letting me participate in this great group.
I am having a bit of a problem.
After I get an email from a responder, I login to make my reply.
In the mean time I get another response by email from another member, I go to reply to them and I... (6 Replies)
Discussion started by: Ccccc
6 Replies
10. Linux
When unlocking a Linux server's console there's no event indicating successful logging
Is there a way I can fix this ?
I have the following in my rsyslog.conf
auth.info /var/log/secure
authpriv.info /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies
LEARN ABOUT MOJAVE
device_maps
device_maps(4) File Formats device_maps(4)
NAME
device_maps - device_maps file
SYNOPSIS
/etc/security/device_maps
DESCRIPTION
The device_maps file contains access control information about each physical device. Each device is represented by a one line entry of the
form:
device-name : device-type : device-list :
where
device-name This is an arbitrary ASCII string naming the physical device. This field contains no embedded white space or non-
printable characters.
device-type This is an arbitrary ASCII string naming the generic device type. This field identifies and groups together devices
of like type. This field contains no embedded white space or non-printable characters.
device-list This is a list of the device special files associated with the physical device. This field contains valid device
special file path names separated by white space.
The device_maps file is an ASCII file that resides in the /etc/security directory.
Lines in device_maps can end with a `' to continue an entry on the next line.
Comments may also be included. A `#' makes a comment of all further text until the next NEWLINE not immediately preceded by a `'.
Leading and trailing blanks are allowed in any of the fields.
The device_maps file must be created by the system administrator before device allocation is enabled.
This file is owned by root, with a group of sys, and a mode of 0644.
EXAMPLES
Example 1: A sample device_maps file
# scsi tape
st1:
rmt:
/dev/rst21 /dev/nrst21 /dev/rst5 /dev/nrst5 /dev/rst13
/dev/nrst13 /dev/rst29 /dev/nrst29 /dev/rmt/1l /dev/rmt/1m
/dev/rmt/1 /dev/rmt/1h /dev/rmt/1u /dev/rmt/1ln /dev/rmt/1mn
/dev/rmt/1n /dev/rmt/1hn /dev/rmt/1un /dev/rmt/1b /dev/rmt/1bn:
FILES
/etc/security/device_maps
SEE ALSO
allocate(1), bsmconv(1M), deallocate(1), dminfo(1M), list_devices(1)
NOTES
The functionality described in this man page is available only if the Basic Security Module (BSM) has been enabled. See bsmconv(1M) for
more information.
SunOS 5.10 16 Jan 2001 device_maps(4)