Affiliate Marketing
Forum Search


Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 29-04-04
lazy student
 
Join Date: Aug 2003
Posts: 362
Thanks: 0
Thanked 0 Times in 0 Posts
giveasyouget is an unknown quantity at this point
  Why doesn't zip zip all the directories?

hello there!
Still dealing with webserver issues, and the ftpserver on the old machine is ****e giving timeouts constantly (partly since i'm coming thru a university firewall)
I decided to zip up all the old scripts and things yet on unzipping them my end it's bizarrely only included one directory into the zip file, while I can plainly see the other directories exist and were not lost when the hard drive crashed - nor am i recieving any errors.
I'm using ssh to zip up the files, typing

Quote:
zip -r0 giveasyouget.zip *.*
yet only get one dir.. am I being a muppet or is it the zip program?
Could it be related to permissions and ownership? (tho to be fair i'm shhing in using the root login so surely that shouldn't be a problem?)

Any ideas would be much appreciated - cheers!
jonny
__________________
vso volunteer - vietnam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 29-04-04
Super Moderator
 
Join Date: Aug 2003
Posts: 2,451
Thanks: 0
Thanked 0 Times in 0 Posts
Rich is an unknown quantity at this point
Not used zip on linux before, but the one on my server states
Quote:
Travel the directory structure recursively; for example:

zip -r foo foo

In this case, all the files and directories in foo are
saved in a zip archive named foo.zip, including files
with names starting with ".", since the recursion does
not use the shellâs file-name substitution mechanism. If
you wish to include only a specific subset of the files
in directory foo and its subdirectories, use the -i
option to specify the pattern of files to be included.
You should not use -r with the name ".*", since that
matches ".." which will attempt to zip up the parent
directory (probably not what was intended).
So it might be easier to go up a folder and do zip -r giveasyouget.zip foldername.

edit: actually the problem probably is that your match of *.* is a bit of a DOS throwback, and ti linux will mean any thing with a . in it - which probably doesn't include your folder names. Changing *.* to * would probably also fix it.

Last edited by Rich; 29-04-04 at 07:11 PM..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 29-04-04
lazy student
 
Join Date: Aug 2003
Posts: 362
Thanks: 0
Thanked 0 Times in 0 Posts
giveasyouget is an unknown quantity at this point
well spotted, it was my old dos days creeping in.
Many thanks n cheers for the moral support yesterday too
__________________
vso volunteer - vietnam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directories cymonguk The Affiliate Marketing Lounge 1 16-05-05 11:51 PM
why are my articles showing up in directories first?!! Matt Seigneur Organic Google Search Optimisation 1 28-01-05 11:48 AM
submitting articles to directories - where to start? Matt Seigneur Search Engine Strategies 3 22-12-04 06:32 PM
What are Affiliate Directories? Sofas-Direct The Affiliate Marketing Lounge 1 16-07-04 01:18 PM
Good pay for inclusion directories DutchRomano Website Promotion 2 14-07-04 01:21 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7