Results 1 to 2 of 2
Hi
I have to create 2 scripts but don't know what to do.
The 2 scripts that I have to create are below:
1)Write a script that does the following:
...
- 01-18-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 1
Shell Script Help
Hi
I have to create 2 scripts but don't know what to do.
The 2 scripts that I have to create are below:
1)Write a script that does the following:
Backs up your home directory to a file named home.tar in /var/backups
If the script is run multiple times, it just updates the existing archive if there is one
Configure the built in job scheduling system to run the script every 5 minutes. Gnome Schedule may be useful.
Demonstrate that it has run. Finally delete the job that runs the script
(2)Create a shell script that does the following:
Takes one optional argument which is a path to a directory to backup
Backs up (tars) the chosen directory (and all subdirectories) to a file under /var/backups
The name of the backup file has yymmdd.hhmm.username.tar for example today is 15th Sept 2008, and I am logged on as default2 at 14:22 so the filename could be: 080915.1422.default2.tar
The backup file is named this way so that it is reasonably unique if the script is run more than once on the same day.
If the argument to the script is not supplied, it backs up the current users home directory.
The script prints an error message and exits the script if the directory could not be found
Would appreciate it very much if someone could help me out
- 01-18-2010 #2
Sorry, this looks like homework and homework help is against the rules here
Linux User #453176


