LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-05-2009, 05:10 AM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 333

Rep: Reputation: 31
tar command with progress bar


Halo!!

I have this comand in a bash script

Code:
!#/bin/sh
cd /home/n3t
tar -czf /media/disk/BACKUP/home/Pictures/$BACKUPDATE.tar.gz ./Pictures
How can i create a progress bar for this action ?

Any ideas ?
I have download the clpbar but i dont know how to use it exactly..

Thanks..!
 
Old 11-05-2009, 05:54 AM   #2
bradvan
Member
 
Registered: Mar 2009
Posts: 167

Rep: Reputation: 28
I don't believe it is possible. In order to display a progress bar, tar would have to know the total size of the files being archived. It doesn't. It processes the files one at a time. You could make it verbose and then it would tell you as it is adding each file to the archive.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line progress bar for copying Maverick1182 Linux - Newbie 6 03-03-2012 12:55 AM
Is it possible to see a progress bar when I move files with the command line? baldurpet Linux - Software 2 01-22-2009 08:49 AM
cp with progress bar? Rotwang Linux - General 5 04-27-2005 07:49 PM
CLI progress bar for mv and cp command??? Lleb_KCir Linux - General 4 03-12-2005 09:12 PM
cp: progress bar chii-chan Linux - General 2 10-30-2003 06:30 PM


All times are GMT -5. The time now is 02:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration