[prev in list] [next in list] [prev in thread] [next in thread]
List: fedora-list
Subject: Re: KMail
From: Kevin Kempter <kevink () consistentstate ! com>
Date: 2010-02-25 3:27:38
Message-ID: 201002242027.38227.kevink () consistentstate ! com
[Download RAW message or body]
> On 02/25/2010 07:15 AM, Jorge Fábregas wrote:
> > On Wednesday 24 February 2010 20:15:48 Kevin Kempter wrote:
> >> I never (ever, ever, ever, ever, ever, ever, ever...) run any updates
> >> (no matter how insignificant they seem) without first running an rsync
> >> of my system to a backup directory. It's pretty fast given that it's a
> >> diff and in the inevitable case of occasional problems I can rsync my
> >> system back to a perfect "before I ran the updates" state if needed.
> >
> > Hi,
> >
> > I agree. I just posted on this thread that I do an image before applying
> > any updates.
> >
> > I'm wondering...when you rsync back (if you have problems with
> > updates)...do you switch to single-user mode or boot off from CD in order
> > to execute rsync?
> >
> > Best regards,
> > Jorge
>
> @Jorge :
> The process seems to be great, can you please document the whole thing
> of backing up.
>
See my scripts attached
I have them all staged in a directory /stage/rsync and I run 'em as root
The rsync_backup script runs rsync from each directory in the dirlist file and
sync's it into /stage/backup. I skip directories such as /dev, /media, /mnt
and sys
In the case of a restore I run rsync_restore.sh in single user mode
The rsync_restore does the reverse for all directories except for /home since
in most cases I dont want or need to restore my /home dir
["rsync_backup.sh" (application/x-shellscript)]
#!/bin/bash
for I in `cat dirlist`
do
echo "[$I]"
echo "=========="
rsync -avXA --delete /${I} /stage/backup
done
["rsync_restore.sh" (application/x-shellscript)]
#!/bin/bash
for I in `cat dirlist2`
do
echo "[$I]"
echo "=========="
# rsync -avXA --delete /stage/base_backup/${I} /
rsync -avXA --delete /stage/backup/${I} /
done
["dirlist" (text/plain)]
bin
boot
etc
home
lib
lib64
lost+found
opt
root
sbin
selinux
srv
tmp
usr
var
["dirlist2" (text/plain)]
bin
boot
etc
lib
lib64
lost+found
misc
net
opt
root
sbin
selinux
srv
tmp
usr
var
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic