[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: duplicating servers - remote backup to HD



oh yeah, experienced it but forgot, the qmail queue may be
broke if you restore with rsync. I could fix mine by going
back to the qmail source and doing a 'make setup check' if
you have messages in there, you'll need to restore them
to something like /var/qmail/queue-OLD/, reconstruct and
requeue the messages into the new queue. this might help:
http://www.ornl.gov/lists/mailing-lists/qmail/2003/12/msg00280.html

but there is a _good_ chance that queue messages backed up will have
been delivered already, when you restore from backup.

(is this the type of hack you mean, not sure why it wouldn't work,
you may need a 'qmailctl doqueue' to make it happen)

// George

On Sun, Dec 07, 2003 at 07:39:20PM +0800, Jason Lim wrote:
>Any good way to get around Qmail's usage of inode # as file names?
>
>I've tried doing a simple cp before and it just doesn't work afterwards...
>doens't see the files. I've seen hacks, but they don't seem to work well
>and take forever to run, which can be tough, especially if you have
>hundreds, if not thousands, of accounts, each possibly with a hundred
>emails in each...
>
>----- Original Message ----- 
>From: "W.D.McKinney" <dee@akwireless.net>
>To: <debian-isp@lists.debian.org>
>Sent: Sunday, December 07, 2003 02:05 PM
>Subject: Re: duplicating servers - remote backup to HD
>
>
>> On Sat, 2003-12-06 at 14:23, George Georgalis wrote:
>> > On Sat, Dec 06, 2003 at 01:33:32PM -0900, W.D.McKinney wrote:
>> > >Hello,
>> > >
>> > >I'd like to backup a couple of Debian Woody servers remotely to my a
>> > >Storage array that I was given recently. The servers are are at a
>local
>> > >colo and I nad a xDSL connection provided by the ISP that serves the
>> > >Colo so that's good. I am thinking that someone might have an rysnc
>> > >script that are using like this ? Is there one available any where ?
>> > >
>> >
>> >
>> > Sure, here's what I use for taking an image of a system. If you plan
>> > to restore from your backup don't exclude your hostname, ssh host
>> > keys, etc. You do want to exclude /proc and any NFS etc though. And
>> > don't forget '--numeric-ids' as the specific numbers are referenced in
>> > /etc/{passwd,group}
>> >
>> > rsync -av --progress --delete-excluded --numeric-ids \
>> >     --exclude=**/cdrom/* \
>> >     --exclude=**/etc/hostname \
>> >     --exclude=**/etc/mtab \
>> >     --exclude=**/etc/network/interfaces \
>> >     --exclude=**/floppy/* \
>> >     --exclude=**/var/lock/* \
>> >     --exclude=.bash_history \
>> >     --exclude=.viminfo \
>> >     --exclude=/.ssh/id* \
>> >     --exclude=/etc/**/\@* \
>> >     --exclude=/etc/**/current \
>> >     --exclude=/etc/ssh/ssh_host_dsa_key \
>> >     --exclude=/etc/ssh/ssh_host_dsa_key.pub \
>> >     --exclude=/etc/ssh/ssh_host_rsa_key \
>> >     --exclude=/etc/ssh/ssh_host_rsa_key.pub \
>> >     --exclude=/supervise/status \
>> >     --exclude=/tmp/* \
>> >     --exclude=/var/backups/*gz \
>> >     --exclude=/var/log/**/\@* \
>> >     --exclude=/var/log/**/current \
>> >     --exclude=/var/log/dmesg \
>> >     --exclude=/var/run/*pid \
>> >     --exclude=/var/tmp/* \
>> >     --exclude=dhclient.leases \
>> >     --exclude=dhcpd.leases \
>> >     --exclude=known_hosts \
>> >     --exclude=locatedb \
>> >     --exclude=ntp.drift \
>> >     --exclude=proc/* \
>> >     --exclude=random-seed \
>> >     --exclude=utmp \
>> >     --exclude=wtmp \
>> >     $src $dest
>> >
>> > you'll need "-essh" and root on both sides to read/create all the
>uids.
>> >
>> > Caveat emperor and you may still have some problems with daemontools
>> > control files being included...
>> >
>>
>> Hi George,
>>
>> Hey thanks I will try this as well. Good to hear from twice in a week
>> :-)
>>
>> Dee
>>
>>
>> -- 
>> Alaska Wireless Systems
>> http://www.akwireless.net -=- "Take Control of Your E-Mail!"
>> (907)349-4308 Office - AIM = awswired
>>
>>
>> -- 
>> To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact
>listmaster@lists.debian.org
>>
>>
>
>
>-- 
>To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>

-- 
GEORGE GEORGALIS, System Admin/Architect    cell: 646-331-2027    <IXOYE><
Security Services, Web, Mail,            mailto:george@galis.org 
Multimedia, DB, DNS and Metrics.       http://www.galis.org/george 



Reply to: