Re: Best way to duplicate HDs

2002-01-07 Thread Ted Deppner
On Mon, Jan 07, 2002 at 04:11:57PM +0800, Patrick Hsieh wrote: > > > But when I ssh from debianclient to backupserver, it gives me a password > > > prompt,, so I enter the password, then rsync begins. > > > > and ? > > > Thanks for your patience. > My question is, since I expect automated rsync b

Re: Best way to duplicate HDs

2002-01-07 Thread Ted Deppner
On Mon, Jan 07, 2002 at 04:11:57PM +0800, Patrick Hsieh wrote: > > > But when I ssh from debianclient to backupserver, it gives me a password > > > prompt,, so I enter the password, then rsync begins. > > > > and ? > > > Thanks for your patience. > My question is, since I expect automated rsync

Re: Best way to duplicate HDs

2002-01-07 Thread Patrick Hsieh
> On Mon, Jan 07, 2002 at 03:03:12PM +0800, Patrick Hsieh wrote: > > > - obviously this doesn't preclude a bad guy checking out > > > backup-server:backups/otherhostname (use ssh keys, and invoke cmd="cd > > > backups/hostname; rsync with whatever daemon options" will limit that) > > Now

Re: Best way to duplicate HDs

2002-01-07 Thread Ted Deppner
On Mon, Jan 07, 2002 at 03:03:12PM +0800, Patrick Hsieh wrote: > > - obviously this doesn't preclude a bad guy checking out > > backup-server:backups/otherhostname (use ssh keys, and invoke cmd="cd > > backups/hostname; rsync with whatever daemon options" will limit that) > Now I know how

Re: Best way to duplicate HDs

2002-01-07 Thread Patrick Hsieh
> On Tue, Jan 01, 2002 at 08:39:39AM -0500, Keith Elder wrote: > > This brings up a question. How do you rsync something but keep the > > ownership and permissions the same. I am pulling data off site nightly > > and that works, but the permissions are all screwed up. > > rsync -avxrP --delete $

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-07 Thread Jeff Waugh
> > 3) Add this to authorized_keys for the above account, specifying the > > command that logins with this key are allowed to run. See command="" in > > sshd(1). > > I can't find the document about this section, can you show me > some reference or examples? Many thanks. man sshd, down the botto

Re: Best way to duplicate HDs

2002-01-07 Thread Patrick Hsieh
> On Mon, Jan 07, 2002 at 03:03:12PM +0800, Patrick Hsieh wrote: > > > - obviously this doesn't preclude a bad guy checking out > > > backup-server:backups/otherhostname (use ssh keys, and invoke cmd="cd > > > backups/hostname; rsync with whatever daemon options" will limit that) > > Now

Re: Best way to duplicate HDs

2002-01-06 Thread Ted Deppner
On Mon, Jan 07, 2002 at 03:03:12PM +0800, Patrick Hsieh wrote: > > - obviously this doesn't preclude a bad guy checking out > > backup-server:backups/otherhostname (use ssh keys, and invoke cmd="cd > > backups/hostname; rsync with whatever daemon options" will limit that) > Now I know ho

Re: Best way to duplicate HDs

2002-01-06 Thread Patrick Hsieh
> On Tue, Jan 01, 2002 at 08:39:39AM -0500, Keith Elder wrote: > > This brings up a question. How do you rsync something but keep the > > ownership and permissions the same. I am pulling data off site nightly > > and that works, but the permissions are all screwed up. > > rsync -avxrP --delete

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-06 Thread Jeff Waugh
> > 3) Add this to authorized_keys for the above account, specifying the > > command that logins with this key are allowed to run. See command="" in > > sshd(1). > > I can't find the document about this section, can you show me > some reference or examples? Many thanks. man sshd, down the bott

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-06 Thread Patrick Hsieh
> 3) Add this to authorized_keys for the above account, specifying the > command that logins with this key are allowed to run. See command="" in > sshd(1). I can't find the document about this section, can you show me some reference or examples? Many thanks. -- Patrick Hsieh <[EMAIL PROTECTED]>

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-06 Thread Patrick Hsieh
> 3) Add this to authorized_keys for the above account, specifying the > command that logins with this key are allowed to run. See command="" in > sshd(1). I can't find the document about this section, can you show me some reference or examples? Many thanks. -- Patrick Hsieh <[EMAIL PROTECTED]>

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Ted Deppner
[cc: trimed to something a little more sane] On Wed, Jan 02, 2002 at 04:21:33PM -0500, [EMAIL PROTECTED] wrote: > We're pulling **from** a read-only rsyncd. It has to run as root because we > require the right archive, permissions, etc I'm confused; is that much > different from running an

Re: Best way to duplicate HDs

2002-01-02 Thread Nick Jennings
On Tue, Jan 01, 2002 at 02:28:28PM +0800, Jason Lim wrote: > Hi all, > > What do you think would be the best way to duplicate a HD to another > (similar sized) HD? > I've been using tar on my system. Works excellent. no downtime, and all permissions are maintained. -- Nick Jennings

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread cfm
On Wed, Jan 02, 2002 at 10:17:38AM -0800, Ted Deppner wrote: > > The [modules] in rsyncd.conf provide a nice way to package what you want to > > back up. You can also specify what ip addresses connect to rsyncd. So in > > theory only the backup machine can connect to the rsyncd daemons; we've se

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Ted Deppner
[cc: trimed to something a little more sane] On Wed, Jan 02, 2002 at 04:21:33PM -0500, [EMAIL PROTECTED] wrote: > We're pulling **from** a read-only rsyncd. It has to run as root because we > require the right archive, permissions, etc I'm confused; is that much > different from running an

Re: Best way to duplicate HDs

2002-01-02 Thread Nick Jennings
On Tue, Jan 01, 2002 at 02:28:28PM +0800, Jason Lim wrote: > Hi all, > > What do you think would be the best way to duplicate a HD to another > (similar sized) HD? > I've been using tar on my system. Works excellent. no downtime, and all permissions are maintained. -- Nick Jennings --

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread cfm
On Wed, Jan 02, 2002 at 10:17:38AM -0800, Ted Deppner wrote: > > The [modules] in rsyncd.conf provide a nice way to package what you want to > > back up. You can also specify what ip addresses connect to rsyncd. So in > > theory only the backup machine can connect to the rsyncd daemons; we've s

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Ted Deppner
On Wed, Jan 02, 2002 at 09:19:11AM -0500, [EMAIL PROTECTED] wrote: > Automation with keys stored on machines is better than doing it manually > and forgetting to back up. :-) Agreed. Like excercise, the kind you do is better than the kind you don't. > It **does** provide a path by which someone

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Ted Deppner
On Wed, Jan 02, 2002 at 09:19:11AM -0500, [EMAIL PROTECTED] wrote: > Automation with keys stored on machines is better than doing it manually > and forgetting to back up. :-) Agreed. Like excercise, the kind you do is better than the kind you don't. > It **does** provide a path by which someon

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Brian Sniffen
ssh-agent does help here. Have the cron job which is doing the backup look to see if there's an ssh agent running as its user (presumably 'backup', maybe root) and if not send mail to somebody's pager, complaining about the missing agent. If the agent is running, the cron job can reconnect to it

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread cfm
On Wed, Jan 02, 2002 at 03:35:43PM +0800, Patrick Hsieh wrote: > OK. My problem is, if I use rsync+ssh with blank passphrase among > servers to automate rsync+ssh backup procedure without password prompt, > then the cracker will not need to send any password as well as > passphrase when ssh login o

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Brian Sniffen
ssh-agent does help here. Have the cron job which is doing the backup look to see if there's an ssh agent running as its user (presumably 'backup', maybe root) and if not send mail to somebody's pager, complaining about the missing agent. If the agent is running, the cron job can reconnect to i

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread cfm
On Wed, Jan 02, 2002 at 03:35:43PM +0800, Patrick Hsieh wrote: > OK. My problem is, if I use rsync+ssh with blank passphrase among > servers to automate rsync+ssh backup procedure without password prompt, > then the cracker will not need to send any password as well as > passphrase when ssh login

Re: Best way to duplicate HDs

2002-01-02 Thread I. Forbes
Hello All I am not sure that I understand what the original poster wishes to achieve, nor have I followed the lengthy discussions that ensued. But, a thread with the above subject line would not be complete without a mention of "mirrordir". Someone wrote: > > Sigh... and I was hoping for a si

Re: Best way to duplicate HDs

2002-01-02 Thread I. Forbes
Hello All I am not sure that I understand what the original poster wishes to achieve, nor have I followed the lengthy discussions that ensued. But, a thread with the above subject line would not be complete without a mention of "mirrordir". Someone wrote: > > Sigh... and I was hoping for a s

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Jeff Waugh
> OK. My problem is, if I use rsync+ssh with blank passphrase among servers > to automate rsync+ssh backup procedure without password prompt, then the > cracker will not need to send any password as well as passphrase when ssh > login onto another server, right? No, password and rsa/dsa authenti

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Patrick Hsieh
Hello Ted, Your mail is very informative to me. I wonder how to define cmd to run automatically in authorized_hosts? I thought there's nothing but pub keys in authorized_hosts file. And, do I need ssh-agent in this case? Do I need to leave passphrase blank? Thank you for your patience and kindne

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Jeff Waugh
> OK. My problem is, if I use rsync+ssh with blank passphrase among servers > to automate rsync+ssh backup procedure without password prompt, then the > cracker will not need to send any password as well as passphrase when ssh > login onto another server, right? No, password and rsa/dsa authent

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Ted Deppner
On Wed, Jan 02, 2002 at 03:15:20PM +0800, Patrick Hsieh wrote: > I've read some doc. using ssh-keygen to generate key pairs, appending > the public keys to ~/.ssh/authorized_hosts on another host to prevent > ssh authentication prompt. Is it very risky? Chances are a cracker could > compromise one

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Patrick Hsieh
OK. My problem is, if I use rsync+ssh with blank passphrase among servers to automate rsync+ssh backup procedure without password prompt, then the cracker will not need to send any password as well as passphrase when ssh login onto another server, right? Is there a good way to automate rsync+ssh p

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Jeff Waugh
> I am sorry I could be kind of off-topic. But I want to know how to > cross-site rsync without authentication, say ssh auth.,? That's the best way. > I've read some doc. using ssh-keygen to generate key pairs, appending the > public keys to ~/.ssh/authorized_hosts on another host to prevent ss

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-02 Thread Patrick Hsieh
Hello Ted, Your mail is very informative to me. I wonder how to define cmd to run automatically in authorized_hosts? I thought there's nothing but pub keys in authorized_hosts file. And, do I need ssh-agent in this case? Do I need to leave passphrase blank? Thank you for your patience and kindn

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-01 Thread Ted Deppner
On Wed, Jan 02, 2002 at 03:15:20PM +0800, Patrick Hsieh wrote: > I've read some doc. using ssh-keygen to generate key pairs, appending > the public keys to ~/.ssh/authorized_hosts on another host to prevent > ssh authentication prompt. Is it very risky? Chances are a cracker could > compromise one

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-01 Thread Patrick Hsieh
OK. My problem is, if I use rsync+ssh with blank passphrase among servers to automate rsync+ssh backup procedure without password prompt, then the cracker will not need to send any password as well as passphrase when ssh login onto another server, right? Is there a good way to automate rsync+ssh

Re: Best way to duplicate HDs--talk more about rsync+ssh system

2002-01-01 Thread Jeff Waugh
> I am sorry I could be kind of off-topic. But I want to know how to > cross-site rsync without authentication, say ssh auth.,? That's the best way. > I've read some doc. using ssh-keygen to generate key pairs, appending the > public keys to ~/.ssh/authorized_hosts on another host to prevent s

Re: Best way to duplicate HDs

2002-01-01 Thread Jorge . Lehner
Hello! It was already sort of pointed out by other people, that your situation can probably handlead easier by dividing it in to tasks: - fast recovery from data damage - prevention of changes made by hackers/virus each of which can be better handled by individual aproaches. While the former h

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> Sigh... and I was hoping for a simple solution like cp /mnt/disk1/* > /mnt/disk2/ :-/ This is the point at which we have one of those "Brady Bunch Moments", when everyone stands around chuckling at what they've learned, and the credits roll. - Jeff -- "And that's what it sounds like if

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Wed, 2 Jan 2002 00:55, Jason Lim wrote: > Not really... i think of it as helping to cure the disease and helping to > clean up the problem, not eliminating both because it is impossible to > cure the disease completely. Unfortuantely if you work with a medium to > large number of various equipme

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Wed, 2 Jan 2002 02:58, Jason Lim wrote: > You are thinking resource-intensive work, which would require more than a > basic or low level sysadmin to do. I would not trust a low level sysadmin > to start performing restoration work on a system. At least if we catch it > within 12 hours or 24 hour

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> On Wed, 2 Jan 2002 00:44, Jason Lim wrote: > > > > The idea being that if there is a virus, a cracker, or hardware > > > > malfunction > > > > > > And if you discover this within 12 hours... Most times you won't. > > > > We've got file integrity checkers running on all the servers, and they run

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > You might say "tape backup"... but keep in mind that it doesn't offer a > > "plug n play" solution if a server goes down. With the above method, a > > dead server could be brought to life in a minute or so (literally) > > rather > > than half an hour... an hour... or more. > > It occours to me

Re: Best way to duplicate HDs

2002-01-01 Thread Jorge . Lehner
Hello! It was already sort of pointed out by other people, that your situation can probably handlead easier by dividing it in to tasks: - fast recovery from data damage - prevention of changes made by hackers/virus each of which can be better handled by individual aproaches. While the former

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> Sigh... and I was hoping for a simple solution like cp /mnt/disk1/* > /mnt/disk2/ :-/ This is the point at which we have one of those "Brady Bunch Moments", when everyone stands around chuckling at what they've learned, and the credits roll. - Jeff -- "And that's what it sounds like i

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Wed, 2 Jan 2002 00:44, Jason Lim wrote: > > > The idea being that if there is a virus, a cracker, or hardware > > > malfunction > > > > And if you discover this within 12 hours... Most times you won't. > > We've got file integrity checkers running on all the servers, and they run > very often (

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Wed, 2 Jan 2002 00:55, Jason Lim wrote: > Not really... i think of it as helping to cure the disease and helping to > clean up the problem, not eliminating both because it is impossible to > cure the disease completely. Unfortuantely if you work with a medium to > large number of various equipm

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Wed, 2 Jan 2002 02:58, Jason Lim wrote: > You are thinking resource-intensive work, which would require more than a > basic or low level sysadmin to do. I would not trust a low level sysadmin > to start performing restoration work on a system. At least if we catch it > within 12 hours or 24 hou

Re: Best way to duplicate HDs

2002-01-01 Thread Carpman
On Tuesday, January 1, 2002, at 05:55 PM, Jason Lim wrote: You might say "tape backup"... but keep in mind that it doesn't offer a "plug n play" solution if a server goes down. With the above method, a dead server could be brought to life in a minute or so (literally) rather than half an hour... a

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Wed, 2 Jan 2002 00:32, Jason Lim wrote: > > It's called RAID-1. > > I dunno... whenever I think of "RAID" I always think of live mirrors that > operate constantly and not a "once in a while" mirror operation just to > perform a backup (when talking about RAID-1). Am I mistaken in this > thinking

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> On Wed, 2 Jan 2002 00:44, Jason Lim wrote: > > > > The idea being that if there is a virus, a cracker, or hardware > > > > malfunction > > > > > > And if you discover this within 12 hours... Most times you won't. > > > > We've got file integrity checkers running on all the servers, and they run

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > You might say "tape backup"... but keep in mind that it doesn't offer a > > "plug n play" solution if a server goes down. With the above method, a > > dead server could be brought to life in a minute or so (literally) > > rather > > than half an hour... an hour... or more. > > It occours to me

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > Except that I've pointed out already that we're specifically NOT looking > > at a live RAID solution. This is a backup drive that is suppose to be > > synced every 12 hours or 24 hours. > > Sorry, but I don't see any benefit to having maximum 12 hour old data when > you could have 0. The hardwa

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> > It's called RAID-1. > > I dunno... whenever I think of "RAID" I always think of live mirrors that > operate constantly That's what they do post-sync. > and not a "once in a while" mirror operation just to > perform a backup (when talking about RAID-1). Am I mistaken in this > thinking? Th

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > Except that I've pointed out already that we're specifically NOT looking > > at a live RAID solution. This is a backup drive that is suppose to be > > synced every 12 hours or 24 hours. > > > > The idea being that if there is a virus, a cracker, or hardware > > malfunction > > And if you discov

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> Except that I've pointed out already that we're specifically NOT looking > at a live RAID solution. This is a backup drive that is suppose to be > synced every 12 hours or 24 hours. Sorry, but I don't see any benefit to having maximum 12 hour old data when you could have 0. The hardware soluti

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > I know of a few hardware solutions that do something like this, but would > > like to do this in hardware. They claim to perform a "mirror" of one HD to > > another HD while the system is live and in use. > > It's called RAID-1. I dunno... whenever I think of "RAID" I always think of live mirr

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 23:40, Jason Lim wrote: > Except that I've pointed out already that we're specifically NOT looking > at a live RAID solution. This is a backup drive that is suppose to be > synced every 12 hours or 24 hours. > > The idea being that if there is a virus, a cracker, or hardware > ma

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 22:49, Jason Lim wrote: > Right now one of the things we are testing is: > 1) mount up the "backup" hard disk > 2) cp -a /home/* /mnt/backup/home/ > 3) umount "backup" hard disk > > The way we do it right now is: > 1) a backup server with a few 60Gb HDs > 2) use "dump" to cp the

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Wed, 2 Jan 2002 00:44, Jason Lim wrote: > > > The idea being that if there is a virus, a cracker, or hardware > > > malfunction > > > > And if you discover this within 12 hours... Most times you won't. > > We've got file integrity checkers running on all the servers, and they run > very often

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > For example, http://www.arcoide.com/ . To quote the function we're looking > > at " the DupliDisk2 automatically switches to the remaining drive and > > alerts the user that a drive has failed. Then, depending on the model, the > > user can hot-swap out the failed drive and re-mirror in the bac

Re: Best way to duplicate HDs

2002-01-01 Thread Carpman
On Tuesday, January 1, 2002, at 05:55 PM, Jason Lim wrote: > > You might say "tape backup"... but keep in mind that it doesn't offer a > "plug n play" solution if a server goes down. With the above method, a > dead server could be brought to life in a minute or so (literally) > rather > than ha

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Wed, 2 Jan 2002 00:32, Jason Lim wrote: > > It's called RAID-1. > > I dunno... whenever I think of "RAID" I always think of live mirrors that > operate constantly and not a "once in a while" mirror operation just to > perform a backup (when talking about RAID-1). Am I mistaken in this > thinkin

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> For example, http://www.arcoide.com/ . To quote the function we're looking > at " the DupliDisk2 automatically switches to the remaining drive and > alerts the user that a drive has failed. Then, depending on the model, the > user can hot-swap out the failed drive and re-mirror in the backgroun

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > Except that I've pointed out already that we're specifically NOT looking > > at a live RAID solution. This is a backup drive that is suppose to be > > synced every 12 hours or 24 hours. > > Sorry, but I don't see any benefit to having maximum 12 hour old data when > you could have 0. The hardw

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> On Tue, 1 Jan 2002 07:28, Jason Lim wrote: > > What do you think would be the best way to duplicate a HD to another > > (similar sized) HD? > > > > I'm thinking that a live RAID solution isn't the best option, as (for > > example) if crackers got in and fiddled with the system, all the HDs woul

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> > It's called RAID-1. > > I dunno... whenever I think of "RAID" I always think of live mirrors that > operate constantly That's what they do post-sync. > and not a "once in a while" mirror operation just to > perform a backup (when talking about RAID-1). Am I mistaken in this > thinking? T

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > Except that I've pointed out already that we're specifically NOT looking > > at a live RAID solution. This is a backup drive that is suppose to be > > synced every 12 hours or 24 hours. > > > > The idea being that if there is a virus, a cracker, or hardware > > malfunction > > And if you disco

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> Except that I've pointed out already that we're specifically NOT looking > at a live RAID solution. This is a backup drive that is suppose to be > synced every 12 hours or 24 hours. Sorry, but I don't see any benefit to having maximum 12 hour old data when you could have 0. The hardware solut

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > I know of a few hardware solutions that do something like this, but would > > like to do this in hardware. They claim to perform a "mirror" of one HD to > > another HD while the system is live and in use. > > It's called RAID-1. I dunno... whenever I think of "RAID" I always think of live mir

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 23:40, Jason Lim wrote: > Except that I've pointed out already that we're specifically NOT looking > at a live RAID solution. This is a backup drive that is suppose to be > synced every 12 hours or 24 hours. > > The idea being that if there is a virus, a cracker, or hardware > m

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 22:49, Jason Lim wrote: > Right now one of the things we are testing is: > 1) mount up the "backup" hard disk > 2) cp -a /home/* /mnt/backup/home/ > 3) umount "backup" hard disk > > The way we do it right now is: > 1) a backup server with a few 60Gb HDs > 2) use "dump" to cp the

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> > For example, http://www.arcoide.com/ . To quote the function we're looking > > at " the DupliDisk2 automatically switches to the remaining drive and > > alerts the user that a drive has failed. Then, depending on the model, the > > user can hot-swap out the failed drive and re-mirror in the ba

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 21:06, Jeff Waugh wrote: > > > > I've just done some tests on that with 33G partitions of 46G IDE drives. > > The drives are on different IDE buses, and the CPU is an Athlon 800. > > > > So it seems to me that page size is probably a good buffer size to use. > > Cool! Nothing li

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> For example, http://www.arcoide.com/ . To quote the function we're looking > at " the DupliDisk2 automatically switches to the remaining drive and > alerts the user that a drive has failed. Then, depending on the model, the > user can hot-swap out the failed drive and re-mirror in the backgrou

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> I've just done some tests on that with 33G partitions of 46G IDE drives. > The drives are on different IDE buses, and the CPU is an Athlon 800. > > So it seems to me that page size is probably a good buffer size to use. Cool! Nothing like Real Proper Testing to prove a point. ;) I'm surprise

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 07:28, Jason Lim wrote: > What do you think would be the best way to duplicate a HD to another > (similar sized) HD? > > I'm thinking that a live RAID solution isn't the best option, as (for > example) if crackers got in and fiddled with the system, all the HDs would > end up hav

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 09:13, Jeff Waugh wrote: > > > > What do you think would be the best way to duplicate a HD to another > > (similar sized) HD? > > dd, using a large buffer size for reasonable performance I've just done some tests on that with 33G partitions of 46G IDE drives. The drives are o

Re: Best way to duplicate HDs

2002-01-01 Thread Jason Lim
> On Tue, 1 Jan 2002 07:28, Jason Lim wrote: > > What do you think would be the best way to duplicate a HD to another > > (similar sized) HD? > > > > I'm thinking that a live RAID solution isn't the best option, as (for > > example) if crackers got in and fiddled with the system, all the HDs wou

Re: Best way to duplicate HDs

2002-01-01 Thread Ted Deppner
On Tue, Jan 01, 2002 at 08:39:39AM -0500, Keith Elder wrote: > This brings up a question. How do you rsync something but keep the > ownership and permissions the same. I am pulling data off site nightly > and that works, but the permissions are all screwed up. rsync -avxrP --delete $FILESYSTEMS

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 21:06, Jeff Waugh wrote: > > > > I've just done some tests on that with 33G partitions of 46G IDE drives. > > The drives are on different IDE buses, and the CPU is an Athlon 800. > > > > So it seems to me that page size is probably a good buffer size to use. > > Cool! Nothing l

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> I've just done some tests on that with 33G partitions of 46G IDE drives. > The drives are on different IDE buses, and the CPU is an Athlon 800. > > So it seems to me that page size is probably a good buffer size to use. Cool! Nothing like Real Proper Testing to prove a point. ;) I'm surpris

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 07:28, Jason Lim wrote: > What do you think would be the best way to duplicate a HD to another > (similar sized) HD? > > I'm thinking that a live RAID solution isn't the best option, as (for > example) if crackers got in and fiddled with the system, all the HDs would > end up ha

Re: Best way to duplicate HDs

2002-01-01 Thread Russell Coker
On Tue, 1 Jan 2002 09:13, Jeff Waugh wrote: > > > > What do you think would be the best way to duplicate a HD to another > > (similar sized) HD? > > dd, using a large buffer size for reasonable performance I've just done some tests on that with 33G partitions of 46G IDE drives. The drives are

Re: Best way to duplicate HDs

2002-01-01 Thread Ted Deppner
On Tue, Jan 01, 2002 at 08:39:39AM -0500, Keith Elder wrote: > This brings up a question. How do you rsync something but keep the > ownership and permissions the same. I am pulling data off site nightly > and that works, but the permissions are all screwed up. rsync -avxrP --delete $FILESYSTEMS

Re: Best way to duplicate HDs

2002-01-01 Thread Christian Jaeger
At 8:39 Uhr -0500 01.01.2002, Keith Elder wrote: This brings up a question. How do you rsync something but keep the ownership and permissions the same. I am pulling data off site nightly and that works, but the permissions are all screwed up. I'm using rsync -aHx --numeric-ids and then protect th

Re: Best way to duplicate HDs

2002-01-01 Thread David Stanaway
On Wednesday, January 2, 2002, at 12:39 AM, Keith Elder wrote: This brings up a question. How do you rsync something but keep the ownership and permissions the same. I am pulling data off site nightly and that works, but the permissions are all screwed up. I use rsync -avz as root You may want

Re: Best way to duplicate HDs

2002-01-01 Thread Christian Jaeger
At 8:39 Uhr -0500 01.01.2002, Keith Elder wrote: >This brings up a question. How do you rsync something but keep the >ownership and permissions the same. I am pulling data off site nightly >and that works, but the permissions are all screwed up. I'm using rsync -aHx --numeric-ids and then pro

Re: Best way to duplicate HDs

2002-01-01 Thread Keith Elder
gt; To: "Jason Lim" <[EMAIL PROTECTED]>, > From: Christian Jaeger <[EMAIL PROTECTED]> > Subject: Re: Best way to duplicate HDs > > Use cpbk or even better rsync (cpbk is problematic with large > filesystems because it takes much memory to hold the tree info - &

Re: Best way to duplicate HDs

2002-01-01 Thread David Stanaway
On Wednesday, January 2, 2002, at 12:39 AM, Keith Elder wrote: > This brings up a question. How do you rsync something but keep the > ownership and permissions the same. I am pulling data off site nightly > and that works, but the permissions are all screwed up. I use rsync -avz as root Yo

Re: Best way to duplicate HDs

2002-01-01 Thread Keith Elder
gt; To: "Jason Lim" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > From: Christian Jaeger <[EMAIL PROTECTED]> > Subject: Re: Best way to duplicate HDs > > Use cpbk or even better rsync (cpbk is problematic with large > filesystems because it takes much memory to

Re: Best way to duplicate HDs

2002-01-01 Thread Christian Jaeger
Use cpbk or even better rsync (cpbk is problematic with large filesystems because it takes much memory to hold the tree info - rsync does the same with less memory needs). They (allow to) only copy the changed parts of the fs and keep old versions of altered files. chj.

Re: Best way to duplicate HDs

2002-01-01 Thread Christian Jaeger
Use cpbk or even better rsync (cpbk is problematic with large filesystems because it takes much memory to hold the tree info - rsync does the same with less memory needs). They (allow to) only copy the changed parts of the fs and keep old versions of altered files. chj. -- To UNSUBSCRIBE,

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> What do you think would be the best way to duplicate a HD to another > (similar sized) HD? dd, using a large buffer size for reasonable performance - Jeff -- "Linux continues to have almost as much soul as James Brown." - Forrest Cook, LWN

Re: Best way to duplicate HDs

2002-01-01 Thread Jeff Waugh
> What do you think would be the best way to duplicate a HD to another > (similar sized) HD? dd, using a large buffer size for reasonable performance - Jeff -- "Linux continues to have almost as much soul as James Brown." - Forrest Cook, LWN