system restore from a cron backup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All;

I've setup a cron backup script to backup my Fedora 10 laptop - mostly in case a new yum update breaks my system.

I'm currently excluding /proc but when the rsync script hits the /sys directory I get lots of read errors like this:

sys/module/vmmon/initstate

rsync: read errors mapping "/sys/module/vmmon/initstate": No data available (61)

sys/module/vmmon/refcnt

rsync: read errors mapping "/sys/module/vmmon/refcnt": No data available (61)

sys/module/vmmon/srcversion

rsync: read errors mapping "/sys/module/vmmon/srcversion": No data available (61)

Questions:

- should I exclude /sys from my rsync backup ?

- Is it safe to restore my system without restoring /proc and /sys ?

- If I do need to restore can I simply do an rsync like this:

rsync -va /backup-location /system-location

(i.e. rsync -va /stage/backup/etc /etc)

Will rsync overwrite the files say in /etc with the backed up files even if the current /etc files are newer than the backed up files.

Here's my backup script if it helps:

# cat run_rsync.sh

#!/bin/bash

for I in `cat dirlist`

do

echo "[$I]"

echo "=========="

rsync -av /${I} /stage/backup

done

and here's the dirlist file:

# cat dirlist

bin

boot

dev

docs

download

etc

home

lib

lib64

lost+found

media

mnt

opt

root

sbin

selinux

srv

sys

tmp

usr

var

as always, thanks in advance...

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux