Unix bash shell scripts

Closed

Write a shell script will compress (using tar) ALL user directories (in /home) and save the backups in a rotated fashion in a predefined directory.

a. You should use three backup files for rotation and they should be named using numbers in the following format: ..tar.gz. So for the student user account, there should be three files [url removed, login to view], [url removed, login to view], & [url removed, login to view] with 3 being the oldest and 1 being the newest.

b. Your script should back up the directory of interest, preserving permissions and using gzip compression (add the –z) and the new backup should replace 1, 1 should replace 2, 2 should replace 3, and 3 should be deleted.

c. Your script must do this for ALL user directories in /home

Write a script which adds a list of users non-interactively.

a. Your script should read the names of the users (each on a line by themselves) from STDIN

b. Other than the defaults, set the password (to the user’s name), ensure directory creation, and lock the account after creation.

c. Your script should check to see if the user already exists and NOT attempt to add the user if the user exists (hint: `cat /etc/passwd | grep $username` and check to see if empty)

d. STDIN implies it should run like: cat /root/users | ./[url removed, login to view]

Write a shell script which takes a regular file from the command line, performs some basic error checking (file must exist and be readable) and displays the results of ls –l command for the given file, followed by a blank line, followed by the contents of the file line by line with each line number prepended on the same line.

a. Command line implies command will be run like: ./[url removed, login to view] filename

Skills: UNIX

See more: shell script compress save backups rotated, shell script unix compress user directories home, unix bash file lock shell script, bash users unix, bash home directory unix shell script, tar command bash shell, fashion names, bash directory script, script will run backup user directory unix, shell bash, basic shell script, bash shell scripts, bash script directory, bash file, bash 0, shell scripts, shell script, gzip, bash scripts, bash script, shell unix, script gzip, backup script bash, bash backup, read file error number

About the Employer:
( 0 reviews ) United States

Project ID: #4010261

26 freelancers are bidding on average $71 for this job

pablotorres

i can do it

$30 USD in 3 days
(1 Review)
3.6
linuxfreak1985

Hi there, i am very interested to complete this project. please see my past reviews related to system administration lets complete this project

$100 USD in 1 day
(7 Reviews)
3.5
argento

Hi, there I can do this. Check profile for similar projects. Thanks.

$50 USD in 3 days
(3 Reviews)
3.0
f1x3r

Hi, I am experienced systems administrator. I am very competent writing shell scripts. I can handle this task.

$50 USD in 1 day
(2 Reviews)
2.7
belghouth

Hi, I am coming from vWorker and I am specialized in Linux Shelll Scripting. Delivery will be fast and the result will be accurate. Regards

$60 USD in 1 day
(3 Reviews)
2.4
lokeshk9936

Hi, This is quite simple. I can do this in the next 2-3 hrs for you. Please see PM

$50 USD in 1 day
(1 Review)
2.0
nithi87cool

Hi, I have good years of experience in linux, unix and scripting languages. Ready to start!!

$35 USD in 4 days
(1 Review)
1.7
jbosseu

Can help you with this.

$50 USD in 1 day
(1 Review)
0.8
goelvivek

will provide code with comments and good quality of code.

$30 USD in 1 day
(0 Reviews)
0.0
Y8vhI23FA

We are freelance software developers. If you contact me I can give a quote for your project and we can discuss the details. www.<b><i>Removed by Admin</i></b>

$140 USD in 1 day
(0 Reviews)
0.0
akiles99

Get it now...

$30 USD in 0 days
(0 Reviews)
0.0
sugaan

I can do this job. i have experience in this.

$100 USD in 4 days
(0 Reviews)
0.0
GMittal

Hi, I have been working in the Platform Team for last 6 years where I have automated all the operation that is required to support our java based product to run on a Solaris 10 Platform. One of the major functionali More

$30 USD in 3 days
(0 Reviews)
0.0
scriptlancerinbd

It's very easy to write these scripts for you. Details will follow...

$50 USD in 1 day
(0 Reviews)
0.0
magentomx

hello check mojomexico.net

$80 USD in 4 days
(0 Reviews)
0.0
krizalys

UNIX expert here, it would be a pleasure to help you. Please see private message for details, thanks.

$50 USD in 2 days
(0 Reviews)
0.0
krishnashiv

I can do it

$250 USD in 5 days
(0 Reviews)
0.0
altr

I have more than 5 years experience in Unix. Let me help you!

$30 USD in 1 day
(0 Reviews)
0.0
manish041083

I have been working with Bash/shell scripting from long time, to automate tasks, schedule backups and lots of other tasks. Best person to finish the job. Please check PM for more details.

$60 USD in 2 days
(0 Reviews)
0.0
sadikhanmail

Hi. I am an experienced UNIX script developer. I can do it for you.

$70 USD in 5 days
(0 Reviews)
0.0