What about :
/usr/bin/find / -mount -print | /bin/cpio -pdmv /temp
for an initial copy of the root partition to a backup mounted on /temp
and then a daily cron job:
0 1 * * * /usr/bin/find / -mtime -1 -mount -print | /bin/cpio -pdmv /temp > /dev/null
2>&1
to daily update any changed files?
the /temp/etc/fstab will have to be modified if i want to boot from the copied root
partition using a floppy with a modified lilo bootloader.
My lilo.conf looks like:
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.5-15
label=linux
root=/dev/hda1
read-only
image=/boot/vmlinuz-2.2.5-15
label=linuxbkup
root=/dev/hdb1
read-only
Do I create a modified lilo.conf that looks like:
boot=/dev/hdb
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.5-15
label=linux
root=/dev/hdb1
read-only
to create such a floppy with something like :
lilo -C /etc/alt-lilo.conf ??
Do I need to do something with the Master Boot Record if /dev/hda died
so that it finds an mbr on floppy or /dev/hdb?
On Fri, 11 Jun 1999, Robert (Drew) Norman wrote:
> The best way to do a copy and make sure it all works is like this:
>
> find . -print | cpio -pdmv <target directory>
>
> --Drew Norman
>
--
Rodney Mercer
My opinions may have changed, but not the fact that I am right.
Paranoid schizophrenics outnumber their enemies at least two to one.
--
Rodney Mercer
My opinions may have changed, but not the fact that I am right.
Paranoid schizophrenics outnumber their enemies at least two to one.