Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-16-2013, 09:37 PM   #1
LQ Newbie
Registered: Sep 2007
Posts: 16

Rep: Reputation: 0
Copying/Moving Files From Commandline With ETA

I use "cp -vax" to copy files when migrating from an old hard disk to a new one. It'd be really nice if there was some utility out there which provides the same functionality, but some more information on progress. Does anyone know of one?

Bear in mind that for migrating an entire system to a new disk, there's some special considerations like preserving all the file's attributes (the "-a" switch for "cp"), skipping over special files and directories such as /proc, etc.

I recently learned of the "pv" command (, and I think I could use it with two "tar" commands, but I think it'd be of limited use since it couldn't tell how much there was to send total. Something like "tar -C /mnt/old_root -cf - . | pv | tar -C /mnt/new_root -xf -". Please note that I haven't tested that command, so be careful if you try it out yourself. :P

PS: Yes, I do boot off of a LiveCD so that I'm not trying to copy the old disk while the PC is still running off of it.
Old 03-17-2013, 05:00 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,124

Rep: Reputation: 164Reputation: 164
I use rsync for my local and remote backups - it has a --progress option that shows the progress of each file and the count of that file in the overall total. From memory, it doesn't show an overall percentage though.


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
LXer: [Video] Commandline 101: Copying Files with rsync LXer Syndicated Linux News 0 04-11-2009 04:41 AM
Copying/Moving Files Slow on Slackware 11.0 with XFS. shadin Slackware 7 07-23-2007 01:15 AM
copying / moving files in console Four Linux - Newbie 4 03-25-2007 10:34 PM
AWK script: moving, copying and renaming files uprjamaja Programming 10 12-05-2006 01:06 PM
errors while copying/moving files plisken Linux - General 14 06-07-2003 05:57 AM

All times are GMT -5. The time now is 06:15 AM.

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