Mailinglist Archive: opensuse (2859 mails)

< Previous Next >
Re: [opensuse] the cp command
  • From: riccardo35@xxxxxxxxx
  • Date: Fri, 4 May 2007 05:59:49 +0000
  • Message-id: <200705040559.49416.riccardo35@xxxxxxxxx>

> Rsync is not the easiest program to master, but it's very
> powerful.


  - using CRON to do regular system back-ups to a separate partition, 
can be handy . . . something like :-
.....................

#!/bin/sh
#
# use rsync to backup / to /dev/hdb5
#
mount -t ext3 /dev/hdb5 /mnt_cron
# df
cd
rsync -avr --delete --delete-after --exclude=/media --exclude=/mnt --exclude=/mnt_cron --exclude=/proc --exclude=subdomain --exclude=/sys --exclude=/tmp / /mnt_cron
cd
# adjust fstab root-mount-point
cp /mnt_cron/etc/fstab.5Bbak /mnt_cron/etc/fstab
df
umount /mnt_cron

............................

have a Good Day


-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >