![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Backup script | dan86 | Shell Programming and Scripting | 1 | 10-29-2007 08:47 PM |
| Backup Script | tayyabq8 | UNIX for Dummies Questions & Answers | 0 | 01-21-2006 05:09 AM |
| A backup script | pascal | Shell Programming and Scripting | 2 | 09-09-2005 08:53 AM |
| Backup Script | geek4sur | AIX | 7 | 05-24-2005 10:31 AM |
| Help with a backup script | SemperFi | UNIX for Dummies Questions & Answers | 5 | 07-22-2004 11:00 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Backup Script
I wrote a simple backup script but want to do some error handling ..
So this script do all the stuff and finally creates one tar file on remote machine using : Code:
/usr/local/bin/tar cvzf - -T $ListFileName | /usr/local/bin/ssh trusteduser@192.168.32.2 "cat > /appl/test/$BTYPE-$APP-`date +%Y%m%d`.tar.gz" .Now i thought of couple of things : 1. Check for ssh trust before executing tar by : /usr/local/bin/ssh trusteduser@192.168.32.2 'exit' but again it will not work if it ask for password 2. execute the above command in a kind of subshell and wait for output till 5- 10 seconds and then exit .. not sure how to do this. Wait command will not kill it if didnt fininshed before n secods. Please suggest |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|