Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Cloning a Debian Etch system for redundancy:


Re: Cloning a Debian Etch system for redundency
Posted by dldirector (69.17.xx.xx) on Mon 21 Jan 2008 at 17:01
Sorry for the lack of clarity. I have a clarification and a correction. In the article I said, that my system is on only one partition. In fact, there is a separate boot partition. Here is a sample shell script that can be used to copy the root partition, boot partition, and the /dev items.
SERVER=root@[production.server.com]

OPTS="  --recursive --times --perms --owner --group \
        --links --hard-links \
        --one-file-system --delete \
        --stats --rsh=/usr/bin/ssh"

# copy system image to partition mounted on /mnt/sysimage
FROMDIR=/
TODIR=/mnt/sysimage
rsync $OPTS $SERVER:$FROMDIR $TODIR

# copy boot image to partition mounted on /mnt/bootimage
FROMDIR=/boot/
TODIR=/mnt/bootimage
rsync $OPTS $SERVER:$FROMDIR $TODIR

# copy the disk image version of /dev
FROMDIR=/dev/.static/dev/
TODIR=/mnt/sysimage/dev
rsync $OPTS $SERVER:$FROMDIR $TODIR

Hope this helps. Thanks for the comment.

Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search