Re: Disk mirroring
hi ya
best way ???
raid1 mirroring... ( assumes same/identical partition sizes )
- anything you put on disk1 will get mirror'd to disk2
-
- if you accidentally erase /foo.txt ... it gets erased on disk2
too ... ( i see no point to that ...but... some folks like it )
manually ( via cron ) backing up disk1 to disk2... is a good thing...
depending on what you want on the backup disks... tar is better ???
tar zcvf /mnt/backup_disk/backup.$date.tgz /etc /root /home
c ya
alvin
http://www.Linux-Backup.net
#
# mount the backup disks
#
mount /dev/hdb1 /mnt/backup_disk
#
# incremental vs full backups is left to the user to decide ???
#
tar zcvf /mnt/backup_disk/backup.$date.tgz /etc /root /home
#
#
# or my haphazard guessing ( ie. no idea )
# rsync -e " scp -av /root /etc /home /mnt/backup_disk/backup "
#
umount /mnt/backup_disk
#
# end of silly demo code
#
#
#
crontab -e
....
# backup nightly at 11;59pm
59 23 * * * /usr/scripts/your_backup.sh
....
On Mon, 14 May 2001, Oki DZ wrote:
>
> Hi,
>
> I'd like to mirror the harddisk of my running system to another disk.
> What is the best route to do it? What I have in mind is to mount the
> second disk under /mnt and then copy all the files into it. Can rsync do
> it? Of course, I'd like to do it periodically; every night at 11:59, for
> example.
>
> Oki
Reply to: