12-14-2009
thank you for the response but this going to be harder than i thought so this is the details in full:
a software company has established standards with regards to the naming and organisation of files in its linux based filestore. in particular, users are directed to store files of a particular type in the same directory, for example, users sre instructed to store all word processor files in a directory named wp. for the purpose of this exercise therea re 3 types of file available - wordprocessing, spreadsheet and picture files.
up until now house keeping practices have been a bit haphazard and it has been upto the individual user as to the manner in which they organise back up of files, if indeed this is done at all. therefore the company wishes to to develop a new utility which will aid the users in backing up and restoring files in their own personal directory area. in doing this development, it should be recognised that script files are treated like any other i.e. they should be stored in a directory called scriptfiles.
only one utility is to be developed
the utility will give the user the option to back up or restore a set of files
the utility will give the user the ability to specify which type of file is to be used in a particular back up or restore session.
the utility should be robust with respect to files and directories and the possible overwriting of files; the utility should provide help to allow the novice user to make use of the utility.
hopefully someone can understand what is required (because i dont) and hopefully when i do start college it wont be as hard as this for a beginner
cheers
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Test1.ksh
#! /bin/ksh
for i in $*
do
#echo "$i"
ksh test2.ksh $i &
done
test2.ksh
#! /bin/ksh
sleep 5s
echo "From Test 1 ==> $1"
exit 0;
I am executing as follows:
ksh test1.ksh a b c (10 Replies)
Discussion started by: risshanth
10 Replies
2. Solaris
Hi Everyone,
I would like to write a Back-up script for huge files and 3 day old file. I think i need to use Tar command for it. But I am not sure how this can be done. Can someone please assist me on this. (4 Replies)
Discussion started by: gehlnar
4 Replies
3. AIX
I have a user that runs a menu driven application, is there a way to see what scripts this application is executing in the back ground?
OS=AIX 4.3 (1 Reply)
Discussion started by: mangolinux
1 Replies
4. Shell Programming and Scripting
#!/bin/sh
##########################################################################################################
#This script is being used for AOK application for cleaning up the .out files and zip it under logs directory.
# IBM
# Created
#For pdocap201/pdoca202 .out files for AOK
#1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies
5. UNIX for Dummies Questions & Answers
Hello all, i'm stumped.... I need to list all directories with all there info and exclude the files, then vice versa. I am not sure if I need to string several ls commands together or how to even do that. I believe I need to do some variation of ls -l but need to figure out how to take out the... (5 Replies)
Discussion started by: citizencro
5 Replies
6. Shell Programming and Scripting
My script is as follows:
#!/bin/bash
STR1="test"
echo $STR1
STR2="/bldtmp/"$STR1
echo $STR2
STR3=$STR2'/tmp'
echo $STR3
output i am geting
----------------
test
/bldtmp/test
/tmptmp/test
but my need is:
------------------
test
/bldtmp/test (1 Reply)
Discussion started by: dchoudhury
1 Replies
7. Shell Programming and Scripting
lyang0@lyang0-OptiPlex-755:~$ ./test.sh
.
lyang0@lyang0-OptiPlex-755:~$ cat test.sh
#!/bin/bash
echo `dirname $0`
lyang0@lyang0-OptiPlex-755:~$ pwd
/home/lyang0
it doesn't get "/home/lyang0" and only when run /home/lyang0/test.sh it will get, but how can I do, then it can get the real... (8 Replies)
Discussion started by: yanglei_fage
8 Replies
8. Shell Programming and Scripting
Hi,
balajesuri and durden_tyler, I have found your perl script for the thread https://www.unix.com/shell-programming-scripting/176370-perl-script-help-me-extracting-string.html, but find it difficult to understand the syntax.
Could you or any forum members kindly shed some light on the logic... (3 Replies)
Discussion started by: royalibrahim
3 Replies
9. UNIX and Linux Applications
The problematic directory is the following:
/root/.cache/deja-dup
This directory grows until my "/" is full and then the restoring activity fails.
I already tried to create a symbolic link with origin another partition where I have more space. However during the restoring activity ... (4 Replies)
Discussion started by: puertas12
4 Replies
10. What is on Your Mind?
Retro Games has announced that the C64 is back, this time full-sized with a working keyboard for the dedicated retro home-computer fan, available December 2019.
See also:
CNN:
Iconic 80s computer The Commodore 64 to return with fully-functional keyboard
YouTube:
The C64 | Trailer
... (2 Replies)
Discussion started by: Neo
2 Replies
updmv(8) System Manager's Manual updmv(8)
NAME
updmv - Moves customized, user, and inventory data files to or from storage.
SYNOPSIS
/usr/bin/updmv -i location
/usr/bin/updmv -o location
OPTIONS
Copies the Customized File Inventory (CFI) and User File Inventory (UFI) files and those files listed in these inventory files from the
specified location to the /var/adm/install/update directory. Copies the CFI and UFI files and those files listed in the inventory files to
the specified location.
OPERANDS
Specifies the storage area of the files. This area can be a tape device, disk device, or a Remote Installation Services (RIS) server area.
You replace the location operand with the name of the tape or disk device, or the server name for a RIS server area. For tape stor-
age, you must use a no-rewind tape device such as /dev/ntape/tape0_d0. For disk storage, specify the complete directory path. For
storage in a RIS server area, you must register the client in the server's RIS database. When you specify the server, the server
name must be followed by a colon (:).
DESCRIPTION
The updmv utility moves files listed in the User File Inventory (UFI) file and the Customized File Inventory (CFI) file to or from storage.
The UFI file, created by the genufi utility, identifies user files created after you installed the operating system. The CFI file, created
by the invsync utility, identifies files that were customized after the installation.
You must have superuser privileges to run the updmv utility.
During a new installation, some user files and customized files can be overwritten. You can identify and save files from the current
installation environment for later integration into the new installation environment. Use the updmv utility to move these files to a stor-
age area or from the storage area to the update area.
To store the files listed in the CFI and UFI files, invoke the updmv utility with the -o option followed by the location operand. The sys-
tem must be shut down to single-user mode before you specify the updmv utility with the -o option.
To make these files accessible for integration into a new installation environment, invoke the updmv utility with the -i option followed by
the location operand. The updmv utility moves the listed files to the /var/adm/install/update directory so that they can be merged into the
new installation environment with the updmerge utility.
EXAMPLES
Save the files to a tape device: # updmv -o /dev/ntape/tape0_d0
You must use a no-rewind tape device.
Store the files on a disk device: # updmv -o /mnt/mydata
Store the files in a RIS server area: # updmv -o midvale:
To restore these files, replace the -o option with the -i option.
Restore the files that were stored in a RIS server area: # updmv -i midvale:
The restored image resides in /var/adm/install/update.
RESTRICTIONS
You must have superuser privileges to run the updmv utility.
The system must be in single-user mode before you invoke the updmv utility with the -o option.
FILES
Customized File Inventory User File Inventory
SEE ALSO
genufi(8), invsync(8), updmerge(8)
updmv(8)