LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-21-2009, 10:17 PM   #1
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Rep: Reputation: 15
Check long time process when backup


Hi all, need advice please based on my threads:
http://www.linuxquestions.org/questi...ombine-728997/

i've found the way to backup with this code:
Code:
#!/bin/bash
YESTERDAY=`date +%D -date=-1day`
( cd /home/ && tar --create --file=- --newer=$YESTERDAY . ) | ( cd /mnt/usb_harddrive/ && tar xvpf - )
And it's work (thanks to my Mentor and this forum ^^) but by using the code above it's very take a long time to backup i've waited 2.5 hours
but it's not finished yet, my question is can i check the length process/
percentage process when i do that backup ?

Thank's a lot and need advice please.
 
Old 06-22-2009, 06:14 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by b-RAM View Post
can i check the length process/percentage process when i do that backup ?
There's a tool called Pipe Viewer, used as 'pv', check it ut and see if that works for you.
 
Old 06-29-2009, 08:17 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Thanks, it looks very useful.

From http://www.ivarch.com/programs/pv.shtml:
Quote:
pv - Pipe Viewer - is a terminal-based tool for monitoring the progress of data through a pipeline. It can be inserted into any normal pipeline between two processes to give a visual indication of how quickly data is passing through, how long it has taken, how near to completion it is, and an estimate of how long it will be until completion.
BTW, it is in the SimplyMEPIS 7 repos. (I just installed it.)

In addition there are .deb, .rpm , & .tar.{gz,bz2} d/l's at: http://freshmeat.net/projects/pv
 
  


Reply



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
Happy New Year! Long time listener. Fist time caller Little_Bear LinuxQuestions.org Member Intro 1 01-04-2009 05:53 AM
Long time reader, first time poster (LTR FTP) sirlancealot LinuxQuestions.org Member Intro 1 03-10-2008 06:59 PM
Process start time check ratul_11 Linux - General 1 02-21-2008 05:49 PM
Disk check takes too long to check hemantm Linux - Hardware 16 12-22-2006 04:18 AM
Booting process takes long time. benoy4007 Red Hat 8 06-13-2004 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:12 AM.

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