LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2007, 01:27 AM   #1
moorthygs
LQ Newbie
 
Registered: Sep 2007
Posts: 8

Rep: Reputation: 0
Scripts for File Compress


Dear All,

I have to compress entire files of folder is size of 1.10 GB. It is to be held on Windows NT machine.

I have a folder called /folder1/. It contains around 200 files of size 1.10 gb. I want to compress those files in a zipped file. Compress process to be an automated process. Because after compress that files, i have to download that files.

Please assist me.

Thanks,

Moorthy.GS
 
Old 09-14-2007, 01:37 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Do you mena the files are already on NT, or are they on Linux and you want to compress then download to NT?
On Linux, gzip and bzip2 have params to change the amt of compression, more compression == longer time to compress.
Text (usually) compresses well, binaries not so much...
Need more detail, but HTH

edit: mena -> mean
darned typos ...

Last edited by chrism01; 09-14-2007 at 01:54 AM.
 
Old 09-14-2007, 01:47 AM   #3
moorthygs
LQ Newbie
 
Registered: Sep 2007
Posts: 8

Original Poster
Rep: Reputation: 0
scripts for File Compress

Hey Chris,

>Do you mena the files are already on NT, or are they on Linux and you >want to compress then download to NT? On Linux, gzip and bzip2 have >params to change the amt of compression, more compression == longer >time to compress. Text (usually) compresses well, binaries not so >much... Need more detail, but HTH.

Files are uploaded into NT machine(Act as FTP site) from our client. I have to download those files from that machine. This is should be an automated process. Already I got your suggestions for my download process(Cron Jobs of FTP Download - Thread name). I tried to apply shell scripts of download those directly using MGET command. But it failed due to our internet bandwidth and file size. So i have decided to compress the files first, then i will start the download process through my scripts in linux machine. Download Process to be held on Linux Machine. Compress Process to be held on Windows NT machine.

Hope this information will useful for you.

Cheers,

Moorthy.GS
 
Old 09-14-2007, 01:57 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I'm no MS expert, and to be honest, I'm surprised NT can handle 220GB of address space. Separate drive names?
However, the 'Linuxy' soln would be to install Cygwin toolset on the NT and then use gzip or bzip2 as mentioned. iirc, at the highest levels of compression, bzip2 is more efficient, but check that first.
Alternately, winzip files can be read by gzip (usually). Try a test file.

Edit: continued ... here's a radical idea, how about rsync? It does compression on the fly, although that may only be during txfr ie you may still end up with uncompressed files on the final tgt box.

Last edited by chrism01; 09-14-2007 at 01:59 AM.
 
Old 09-14-2007, 02:12 AM   #5
moorthygs
LQ Newbie
 
Registered: Sep 2007
Posts: 8

Original Poster
Rep: Reputation: 0
scripts for File Compress

Hey Chris,

Please assist which method i go for compress process. Either on fly on download or before download.

Reason for compress is atlease we can reduce the file size for better download. we have only 1 MBps of internet speed.

If you don't have idea about NT enviornment, assist me to do that in shell scripts. i can impleted in my own


Cheers,

Moorthy.GS
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compress folder to Zip file makan007 Red Hat 1 09-05-2006 04:27 AM
File Compress malru AIX 2 06-17-2006 09:40 PM
to compress a file or folder sanjay2004 Linux - Newbie 1 04-11-2006 08:28 AM
linux file compress syok Slackware 4 02-14-2006 06:01 PM
Compress and split a big sized file into smaller files hicham007 Programming 3 07-28-2005 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration