Sponsored Content
Top Forums Shell Programming and Scripting Requesting full back up scripts Post 302380269 by burnie35 on Monday 14th of December 2009 05:09:00 PM
Old 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

Executing scripts in back ground

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

Back up scripts

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

Help with back ground scripts...

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

The scripts not able to make the file to size 0, every times it go back to its original size

#!/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

Shell Scripts - Show all directories with full information ( and no files)

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

Problem in Concatination of string in bash scripts containing back slashes.

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

how to get the scripts full dir path

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

Perl scripts: requesting for logic explanation

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

Deja-dup make my / full. So I cannot restore my back up

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?

The C64 is back, this time full-sized with a working keyboard for the dedicated retro home-computer

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
cachefspack(1M) 														   cachefspack(1M)

NAME
cachefspack - pack files and file systems in the cache SYNOPSIS
packing-list ] cache-directory ] [ file ... ] DESCRIPTION
The utility is used to set up and maintain files in the cache. This utility affords greater control over the cache, ensuring that the specified files will be in the cache whenever possible. Options recognizes the following options: Display pathname of the files to be cached. Specify a packing-list file containing a list of files and directories to be packed. Options within subdirectories and files can also be specified. The format and rules governing packing-list are described in packingrules(4). Directories are packed recur- sively. Symlinks that match a regular expression on a LIST command are followed. Symlinks encountered while recursively processing directories are not followed. Print a brief help summary of all the options. View information about the packed files. Pack the file or files specified by file. This is the default behavior. Strip "./" from the beginning of a pattern name. Unpack the file or files specified by file. Unpack all files in the specified cache-directory, under which the cache is stored. Operands recognizes the following operands: file A path name of a file to be packed or unpacked. RETURN VALUE
returns the following values: Successful completion. An error occurred. EXAMPLES
Pack the file projects in the cache. Pack the files projects, updates and master_plan in the cache. Unpack the file projects from the cache. Unpack the files projects, updates and master_plan from the cache. Unpack all files in the cache1 cache directory. Use the lists.pkg packing-list to specify files to be packed in the cache. The contents of lists.pkg are as follows: This example will pack all files in the directory /src/junk with .c and .h extensions that do not contain the string SCCS in the file's path name. AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
cfsadmin(1M), mount_cachefs(1M), packingrules(4) cachefspack(1M)
All times are GMT -4. The time now is 06:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy