LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Check long time process when backup (https://www.linuxquestions.org/questions/linux-general-1/check-long-time-process-when-backup-734663/)

b-RAM 06-21-2009 10:17 PM

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.

unSpawn 06-22-2009 06:14 AM

Quote:

Originally Posted by b-RAM (Post 3581861)
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.

archtoad6 06-29-2009 08:17 AM

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


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