The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Create a file from within a script lamano Shell Programming and Scripting 2 03-04-2009 04:31 PM
Create file in script paparazi Shell Programming and Scripting 3 02-26-2008 03:16 AM
can we create a GUI by shall script johnray31 Shell Programming and Scripting 1 07-24-2007 10:47 AM
create a text file in a script n8575 UNIX for Dummies Questions & Answers 2 02-07-2006 12:38 PM
how do I create an ftp script leonard905 UNIX for Dummies Questions & Answers 2 01-14-2005 06:25 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-03-2003
ajrandrup ajrandrup is offline
Registered User
  
 

Join Date: Dec 2003
Posts: 1
Exclamation script to create tar file

hello, im a newbie in unix scripting. can someone pls send me a sample script that will tar files in the folders of a specific directory, but will exclude specific files, and afterwards, will ftp the tar into another server.

for example:
in this directory, pshrprod:/opt/psoft/weblogic/818sp9_80

the following files and folders will be tar'd (this are not all the files/folders in this directory)

copyright.html
license.txt
license.html
classes --this folder also has files inside--
src

but will exclude these files in these directories:

Please exclude (aonprod08)pshrprod:/opt/psoft/weblogic/818sp9_80/psftaccess.log and /opt/psoft/weblogic/818sp9_80/myserver/access.log

my question is: if the files will be tar'd where will the tar file be located?

when the tar file is created, the script should be able to ftp the tar file to another server. (is this possible?)

also, is it possible to enable the script to run at a specific day and time?

hope someone out there replies to me ASAP.

thanks a lot
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0