niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Suse
HArd drive backup?
Post new topic   Reply to topic Page 1 of 1 [14 Posts] View previous topic :: View next topic
Author Message
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Fri Feb 04, 2005 4:10 pm    Post subject: Re: HArd drive backup? Reply with quote

Brian wrote:
Quote:
Damn. At one time wasn't a Hauppauge card *the* card to go for, because
it used the bttv chippery? Ho hum; time to start scouting about I guess.

Yes and as far as I can find out, that was when it still used the bttv
thing. I still see others having no problem. It could just be me.

Quote:
blinks> Ok, I think that qualifies as "safe", but - not carved into
granite slabs too? Wink
(yeah I know, they're difficult to reformat)

Safe? It is all on two drives in one machine. That is not really safe.
Anyway. Backing up is a sort of redundancy and there will always be some
point where the redundancy will overlap and dual failure is possible.

The more you pay, the later that point will come. But if that point
comes, I will be sitting at Milliways drinking down several Pan Galactic
GargleBalasters.
--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
Brian
*nix forums Guru


Joined: 22 Mar 2005
Posts: 314

PostPosted: Fri Feb 04, 2005 3:47 pm    Post subject: Re: HArd drive backup? Reply with quote

On Fri, 04 Feb 2005 14:57:30 +0000, houghi wrote:

Quote:
Brian wrote:
I'm following your Hauppauge story with interest - one of those has been
floating about on my "toys to get" list for a while now!

As far as my advise is now. Go with a bttv card. Hauppauge does not have
those anymore.

Damn. At one time wasn't a Hauppauge card *the* card to go for, because

it used the bttv chippery? Ho hum; time to start scouting about I guess.

Quote:
But first rsyncing for me. I am in the process now of bringing all my
data from softraid to reiser.

The way I do it is as follows:

[snips]

That way I have my data 3 times.

blinks> Ok, I think that qualifies as "safe", but - not carved into

granite slabs too? Wink
(yeah I know, they're difficult to reformat)

B.
--
I love the way Microsoft follows standards. In much
the same manner that fish follow migrating caribou.
--Paul Tomblin on alt.sysadmin.recovery
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Fri Feb 04, 2005 1:57 pm    Post subject: Re: HArd drive backup? Reply with quote

Brian wrote:
Quote:
I'm following your Hauppauge story with interest - one of those has been
floating about on my "toys to get" list for a while now!

As far as my advise is now. Go with a bttv card. Hauppauge does not have
those anymore. But first rsyncing for me. I am in the process now of
bringing all my data from softraid to reiser.

The way I do it is as follows:

I have formatted one partitions on wich I put all data that was on RAID.
I then delete the raid and make the two partitions that become available
normal mountable. I recheck the data I now have three times. I then
reformat one partition as reiser, copy the data from the raid to the
rieiser. Then recheck and reformat the other one. copy it again.

That way I have my data 3 times.

So:

Copy all data to C, reformat A and copy to A, reformat B and copy to B.

I have not yet figured out where to put my specific data.

One drive for all of the backup, another for incremetial backups of
stuff like /home and /etc

I am not really in a hurry. Smile
--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
Brian
*nix forums Guru


Joined: 22 Mar 2005
Posts: 314

PostPosted: Fri Feb 04, 2005 1:22 pm    Post subject: Re: HArd drive backup? Reply with quote

On Fri, 04 Feb 2005 12:15:06 +0000, houghi wrote:

[snips]
Quote:

Not sure how I am going to use this all and when I have solved this, I
can go back and try to watch TV with my hauppauge. :-(

For that commercial situation I mentioned, I ended up rsyncing 20-odd

servers and after shovelling assorted rsync-based goodies into cron, I
more or less forgot about it because "It Just Worked".
Well, as long as the NT shares stayed up - which they did, sometimes.

I'm following your Hauppauge story with interest - one of those has been
floating about on my "toys to get" list for a while now!

B.
--
Also too, never, ever use repetitive redundancies.
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Fri Feb 04, 2005 12:24 pm    Post subject: Re: HArd drive backup? Reply with quote

Brian wrote:
Quote:
This works, because there is now a directory root which can be recursed
(and the recurse option must be active for --delete to be effective),
instead of a filematch - which, er, can't easily be recursed. Wink

If it can be cursed, it can be cursed again and therefore recursed. :-D

Quote:
Oh BTW, have a look at --exclude or maybe --exclude-from if you're
intending to rsync "/" recursively, otherwise it'll end up copying /proc
and worse, /proc/kcore.
No point in trying *that* sort of dynamic malarky! Wink

:-)

--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
Brian
*nix forums Guru


Joined: 22 Mar 2005
Posts: 314

PostPosted: Fri Feb 04, 2005 12:01 pm    Post subject: Re: HArd drive backup? Reply with quote

On Fri, 04 Feb 2005 02:18:24 +0000, houghi wrote:

Quote:
Brian wrote:
I tried rsync and read the man page.

I did : 'rsync -avz *.jpg /mnt/hdg4/hde3' and it copied the two files I
have in the directory.
I then deleted one file in the local directory and did rsync again. The
other file was not deleted. That means I now do NOT have an identical
copy.

Heh - see rsync option: --delete
(that's the problem with this Linux stuff - it's too damn functional... ;)

Nope. Did not work. I did:

rsync --delete -avzr * /mnt/hdg4/hde3

(the -r option is already included as part of the -a option, since -a is a

shorthand option for -rlptgoD)

Don't specify the source as a wildcard, specify it as a directory instead:
rsync --delete -avz . /mnt/hdg4/hde3
to achieve the same thing as your test.

This works, because there is now a directory root which can be recursed
(and the recurse option must be active for --delete to be effective),
instead of a filematch - which, er, can't easily be recursed. Wink
It's not blindingly obvious this is necessary if you just think of rsync
as "cp on steroids", although the example given using --delete (search for
1st occurrence of "--delete" in the manpage to find it) does innocently
show a directory as the source, not files.

Ironically, you'd specified a directory as the source in an earlier post,
showing the sort of thing you'd like to do...
Oh BTW, have a look at --exclude or maybe --exclude-from if you're
intending to rsync "/" recursively, otherwise it'll end up copying /proc
and worse, /proc/kcore.
No point in trying *that* sort of dynamic malarky! ;)

B.
--
No man is an island, but if you take a bunch of dead guys and
tie them together, they make a pretty good raft.
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Fri Feb 04, 2005 11:15 am    Post subject: Re: HArd drive backup? Reply with quote

houghi wrote:
Quote:
Nope. Did not work. I did:

rsync --delete -avzr * /mnt/hdg4/hde3

rsync -ax --delete * /mnt/hdg4/hde3

http://rsync.samba.org/examples.html

#!/bin/sh
export PATH=/usr/local/bin:/usr/bin:/bin
LIST="rootfs usr data data2"
for d in $LIST; do
mount /backup/$d
rsync -ax --exclude fstab --delete /$d/ /backup/$d/
umount /backup/$d
done
DAY=`date "+%A"`
rsync -a --delete /usr/local/apache /data2/backups/$DAY
rsync -a --delete /data/solid /data2/backups/$DAY

Not sure how I am going to use this all and when I have solved this, I
can go back and try to watch TV with my hauppauge. Sad
--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Fri Feb 04, 2005 1:18 am    Post subject: Re: HArd drive backup? Reply with quote

Brian wrote:
Quote:
I tried rsync and read the man page.

I did : 'rsync -avz *.jpg /mnt/hdg4/hde3' and it copied the two files I
have in the directory.
I then deleted one file in the local directory and did rsync again. The
other file was not deleted. That means I now do NOT have an identical
copy.

Heh - see rsync option: --delete
(that's the problem with this Linux stuff - it's too damn functional... Wink

Nope. Did not work. I did:

rsync --delete -avzr * /mnt/hdg4/hde3

and this is the result:
root@penne : l
total 85
drwxr-xr-x 3 root root 112 2005-02-04 03:10 ./
drwxr-xr-x 9 root root 216 2005-02-04 01:01 ../
-rw-r--r-- 1 root root 73200 2005-01-24 08:42 background.jpg
drwxr-xr-x 27 houghi users 12808 2005-01-11 06:54 wallpaper/

[03:10:50] [/mnt/hdg4/hde3]
houghi@penne : l
total 89
drwxr-xr-x 3 root root 168 2005-02-04 01:37 ./
drwxr-xr-x 9 root root 200 2005-02-03 23:29 ../
-rw-r--r-- 1 root root 73200 2005-01-24 08:42 background.jpg
-rw-r--r-- 1 root root 0 2005-02-04 01:37 bla.jpg
-rw-r--r-- 1 root root 40 2005-01-26 15:24 .directory
drwxr-xr-x 27 houghi users 12808 2005-01-11 06:54 wallpaper/

--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
Brian
*nix forums Guru


Joined: 22 Mar 2005
Posts: 314

PostPosted: Fri Feb 04, 2005 12:34 am    Post subject: Re: HArd drive backup? Reply with quote

On Fri, 04 Feb 2005 01:01:47 +0000, houghi wrote:

Quote:
houghi wrote:
The nice thing is that I have not lost any data and I learned a lot in
between. Thanks for the feedback. Any others?

I tried rsync and read the man page.

I did : 'rsync -avz *.jpg /mnt/hdg4/hde3' and it copied the two files I
have in the directory.
I then deleted one file in the local directory and did rsync again. The
other file was not deleted. That means I now do NOT have an identical
copy.

Heh - see rsync option: --delete

(that's the problem with this Linux stuff - it's too damn functional... ;)

B.
--
Cache miss - please take better aim next time.
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Fri Feb 04, 2005 12:01 am    Post subject: Re: HArd drive backup? Reply with quote

houghi wrote:
Quote:
The nice thing is that I have not lost any data and I learned a lot in
between. Thanks for the feedback. Any others?

I tried rsync and read the man page.

I did : 'rsync -avz *.jpg /mnt/hdg4/hde3' and it copied the two files I
have in the directory.
I then deleted one file in the local directory and did rsync again. The
other file was not deleted. That means I now do NOT have an identical
copy.

What am I doing wrong, because I would like to just write a script and
do:
#!/bin/bash
mount /mnt/backup
rsync -azr / /mnt/backup
umount /mnt/backup

But when files are not deleted from the drive, it does not work for me.
So what parameter am I missing?
--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
Brian
*nix forums Guru


Joined: 22 Mar 2005
Posts: 314

PostPosted: Thu Feb 03, 2005 11:39 pm    Post subject: Re: HArd drive backup? Reply with quote

On Thu, 03 Feb 2005 22:05:37 +0000, houghi wrote:

Quote:
It will still be on the same machine and I will also incremential
backups of other things, like /etc

Can do - rsync will work just as happily between drives/directories too.



B.
--
Windows: because everyone needs a good laugh.
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Thu Feb 03, 2005 9:05 pm    Post subject: Re: HArd drive backup? Reply with quote

Brian wrote:
Quote:
I've used rsync to keep backups of several servers across the network
onto other servers. After the first "big push" to get the initial data set
backed up, it only copies the changes thereafter.
I've even used it to back up Windows boxes onto NT shares (both mounted
under Linux), because the incumbent Windroids couldn't work out what to do...

It will still be on the same machine and I will also incremential
backups of other things, like /etc

It is more for larger datafiles, like movies, mp3's and pictures.

The nice thing is that I have not lost any data and I learned a lot in
between. Thanks for the feedback. Any others?


--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
Brian
*nix forums Guru


Joined: 22 Mar 2005
Posts: 314

PostPosted: Thu Feb 03, 2005 7:56 pm    Post subject: Re: HArd drive backup? Reply with quote

On Thu, 03 Feb 2005 18:28:00 +0000, houghi wrote:

[snips]

Nasty. Sorry to hear about the hardware problems!

Quote:
What should I use to do this? dd, rsync, cp or even something else? I
want a 1:1 copy and would like to know experiences, advantages and
disadvatages of each way of backup.

I've used rsync to keep backups of several servers across the network
onto other servers. After the first "big push" to get the initial data set
backed up, it only copies the changes thereafter.
I've even used it to back up Windows boxes onto NT shares (both mounted
under Linux), because the incumbent Windroids couldn't work out what to do...

B.
--
Windows really does have pre-emptive multitasking: it can boot
and crash at the same time.
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Thu Feb 03, 2005 5:28 pm    Post subject: HArd drive backup? Reply with quote

Hello again.

I have been away due to HW problems. I had several partitions as
softraid and suddenly it did not recognised them. After some trying and
testing I deleted the softraid and am able to read the seperate
partitions again. The only thing I must now do is change /etc/fstab.

As the softraid did not do what I expected it to do I want to do my data
backup differently. What I want to do is a daily complete backup of my
one HD to the other. That way when one is broken, the other can take
over till I put in a new one.

What should I use to do this? dd, rsync, cp or even something else? I
want a 1:1 copy and would like to know experiences, advantages and
disadvatages of each way of backup.

--
houghi http://houghi.org
Personally, I think most sports fans are a little "gay". They'd
rather watch a bunch of sweaty guys jumping all over eachother,
than, say fashion TV - where hot models walk down the runway.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [14 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 1:27 pm | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Suse
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Need help getting Sony DAT tape drive to work on Irix 6.5 trebor SGI/IRIX 1 Sun Apr 13, 2008 3:19 am
No new posts CD/DVD Drive Speed John Howell Suse 0 Fri Jul 21, 2006 10:43 am
No new posts Backup Jan Dinger Debian 4 Fri Jul 21, 2006 8:50 am
No new posts List History Backup Gladiator IBM DB2 3 Fri Jul 21, 2006 8:21 am
No new posts Backup failure notification for 10g EM Console (not grid) NetComrade Server 0 Fri Jul 21, 2006 6:36 am

Webhosting catalogue | Myspace Layouts | Yugioh | 3dge Viral Emails | Myspace Layouts
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3041s ][ Queries: 20 (0.1443s) ][ GZIP on - Debug on ]