Cool, but how about using rsync instead of cpio? or having both options speed vs. size
.deb packagaes clearly mark config files as such do rpms do that too? then it could be easy to copy those files too. In any case there is probably no harm is dumping all of /etc anyway. Besides /proc you should be wanting to remove /tmp and probably also /sys /var/run and some other cruft. anyways PTP Philip Andrew Cilia wrote:
Seeing that external USB-IDE disk adapters and disks themselves are relatively cheap these days, I put together a script that backs up everything except those things recoverable via rpm installations. It basically creates a file with all things in rpm and diffs it against all files in the system and backs up the difference. I'm backing up to a disk /dev/sda as opposed to a partition on it but that's up to you. One of its biggest failings is probably that it doesn't back up any tweaked files like smb.conf, passwd, shadow, httpd.conf etc. That will come in version 2 :) Here goes. echo "Unmounting cdrom" umount /mnt/cdrom echo "Finding Files Provided Via RPMs" rpm -qal | sort > /tmp/rpmlist echo "Finding Files In System" find / -print | sort > /tmp/findlist diff /tmp/rpmlist /tmp/findlist | grep "^>" | cut -c3-999 > /tmp/mylist ex /tmp/mylist <<% 1,\$s/^/\./g wq % cd / cat /tmp/mylist | grep -v "^\.\/proc\/" | grep -v "^\.\/dev\/" | cpio -ocv | bzip2 > /dev/sda echo "Remounting All" mount -a echo "Please Mark Backup As" echo "Full System Backup (Excluding RPMS)" echo "As At" date