LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-16-2011, 01:58 PM   #16
attila01
LQ Newbie
 
Registered: May 2011
Posts: 9

Original Poster
Rep: Reputation: 0

I tried with cat > /dev/sdb at the end of the command and then with of=/dev/sdb

the error message every time was following:
pv: -s: integer argument expected
 
Old 05-16-2011, 04:02 PM   #17
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I'd get rid of the whole timing deal and go back to simple if of.
 
Old 05-17-2011, 08:08 AM   #18
jhnnma
LQ Newbie
 
Registered: Jul 2010
Location: West Australia
Distribution: LinuxOS 09
Posts: 5

Rep: Reputation: 0
I use rsync. On the next line I will paste the shell script I use to do this. In my case I have then set up a cron job to automatically back up my complete home directory and all other users in it every night at 9 PM Then also on Mon night at 10 PM I then make a weekly backup. I will post both scripts and u will notice the different folders they go into. This operation takes approximately 7 minutes to do. Size of my home directory at the moment is around 84 Gbs. Note using rsync, the first copy takes awhile because it has to back up all files, subsequent backups then take the seven minutes or so, this is because the script is set up to mirror the differences from the hard drive. Also a daily log is made. On my distro (PCLinux OS o9) Rsync was one of the programs installed with base installation. Google Rsync and you will see what the options I have set up with this script are doing. The idea behind the weekly and daily bkups is that I then have 7 days to see if I have a problem with my system and roll back to a known good version if required..

Daily bkup
#!/bin/bash
#Script to back up my home directory minus movies and music dirs daily
rsync --archive --exclude=You\ Tube\ Videos/* --exclude=Movies/* --delete --log-file=/media/SAMSUNG/daily/jrp-log /home/jrp /media/SAMSUNG/daily/

Weekly backup
#!/bin/bash
#Script to back up my home directory minus movies and music dirs Weekly
rsync --archive --exclude=You\ Tube\ Videos/* --delete --log-file=/media/SAMSUNG/weekly/home-log /home /media/SAMSUNG/weekly/

Note: You will have to input your own directorys and backup destination. My destination is on a external 2Tb Samsung drive with a file called weekly and daily. To restore is simply a matter of reinstalling base distribution and then copy required files from the backup drive. Note if you have more experience than I do, you probably will save a bit of time backing up relevant files from root.
Hope this helps, Cheers .

Last edited by jhnnma; 05-17-2011 at 09:07 AM.
 
Old 05-17-2011, 09:23 AM   #19
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
If you are using Red Hat or Fedora they have a great gui utility called fwbackups that lets you setup your local machine backups quite easily. I'd not recommend it if you need to backup more than 2-3 machines (for that use something like bakula or amanda.)
 
Old 05-17-2011, 02:30 PM   #20
attila01
LQ Newbie
 
Registered: May 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the info.

I tried with "dd" first, but I think I can forget about it. I made a disk to disk copy and it took more than 6 hours for 124 GB, 5,5 MB/s
That isn't what I was looking for.
 
Old 05-17-2011, 05:48 PM   #21
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Then there is huge problem or you have major large and slow disks.

Try G4U. It is basically dd but I think you can enable dma with some boot option if that is the issue.
 
Old 05-23-2011, 02:10 AM   #22
attila01
LQ Newbie
 
Registered: May 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Both disks are WD 160 GB and with 20% data on it.
I tried to make an image file to an external USB disk and it happend following: 2 hours 14 GB (I interrupted it)

It's weird that when I make an image file from the partition it takes only 10-15 minutes.
For me it's hard to understand why the system not shows the progress. (the percentage) if I use "dd if=/dev/sda of=/dev/sdb"

on the other hand it shows the progress if I use "dd if=/dev/sda of=/mnt/PC_name/backupMBR.1 count=1 bs=512"

is the "count=1" which help me to see the progress?
 
Old 05-23-2011, 06:48 AM   #23
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Lightbulb

Quote:
Originally Posted by attila01 View Post
Both disks are WD 160 GB and with 20% data on it.
I tried to make an image file to an external USB disk and it happend following: 2 hours 14 GB (I interrupted it)

It's weird that when I make an image file from the partition it takes only 10-15 minutes.
For me it's hard to understand why the system not shows the progress. (the percentage) if I use "dd if=/dev/sda of=/dev/sdb"

on the other hand it shows the progress if I use "dd if=/dev/sda of=/mnt/PC_name/backupMBR.1 count=1 bs=512"

is the "count=1" which help me to see the progress?
NO, "count" parameter is not for progress.

For E.g.
Code:
$ dd if=/dev/sda of=/output/file count=2 bs=10M
This will create a 20 MB file ..... ( 2 x 10 )
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
hdd cloning fareedreg Linux - Newbie 8 05-17-2011 08:49 AM
HDD mirroring between 2 PCs vaibhavs Linux - Software 4 10-18-2008 04:19 AM
mirroring hdd to usb hdd with partimage ghetto-betto Ubuntu 3 05-27-2008 04:23 PM
Required help in HDD Cloning fareedreg Linux - Newbie 25 12-16-2007 12:07 PM
Kernel Panic on mirroring HDD ALInux Debian 2 07-31-2006 07:38 AM

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

All times are GMT -5. The time now is 12:23 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