hi
also folgendes, icxh möchte per rsync die platte1 meines serbvers komplett auf platte 2 spiegeln und das jede nacht, damti ich für den fall der fälle die daten incl der systemdaten zurückspielen kann.
Da ich den server bei S4You habe und eden mit 9.1 betreibe, würde mich ein normales reinitalisieren immer AW´s kosten da 9.1 kein standard system wäre.
für hilfe wäre ich dankbar
rsync bitte um goldenen hinweis
Re: rsync bitte um goldenen hinweis
Code: Select all
#!/bin/bash
mkdir /mnt/backup
mkdir /mnt/system
mount -o bind /dev/hda1 /mnt/system
mount /dev/hdb1 /mnt/backup
cd /mnt/system && tar -cSp --numeric-owner --atime-preserve --exclude=/mnt -f - . | ( cd /mnt/backup && tar -xSpv --atime-preserve -f - )
cd /
umount /mnt/backup
umount /mnt/system
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
