I'm primarily a
User Developer Sysadmin A mixture Something else entirely .. ( 690 votes ~ 10 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the article Question: /var is gone, now what?:
#4 Re: Question: /var is gone, now what? Posted by wolfrider (67.184.xx.xx) on Sun 16 Oct 2005 at 12:51 After reading an article about this very situation some time ago (probably linxgazette.net), I incorporated this into a bkpcrit script that goes to 100MB Zip drive: ( Note: All of my /mnt/* dirs have a NOTHERE file in the directory if nothing is mounted there. To create, simply ' touch /mnt/zippy/NOTHERE ' before mounting anything to that dir. ) BEGIN /root/bin/bkpcrit: #!/bin/sh # Backup critical files (hopefully) stime=`date` dest='/mnt/zippy' mount $dest [ -e "$dest/NOTHERE" ] && echo "$dest NOT MOUNTED" && exit 99 # "If" checking for NOTHERE file... dest=$dest'/bkpcrit-p500-hda6-knoppix26' echo $dest = PK read mkdir -p -v $dest # Copy this bkp script to zippy cp $0 $dest cp ~/localinfo.dat $dest cp /etc/fstab $dest cp /etc/inittab $dest tar cpvzf $dest/bkp-ETC-debian.tar.gz /etc tar cpvzf $dest/bkp-DEV-debian.tar.gz /dev tar cpvzf $dest/bkp-root-debian.tar.gz /root tar cpvzf $dest/bkp-davesrc-debian.tar.gz /home/dave/src tar cpvzf $dest/bkp-davebin-debian.tar.gz /home/dave/bin tar cpvzf $dest/bkp-usr-local-bin-debian.tar.gz /usr/local/bin #tar cpvzf $dest/bkp-usr-local-src-debian.tar.gz /usr/local/src tar cpvzf $dest/bkp-var-dpkg-status.tar.gz /var/lib/dpkg tar cpvzf $dest/bkp-var-dpkg-backups.tar.gz /var/backups #/var/adm/inst-log # Dotfiles cd /root tar cpvzf $dest/bkp-root-dotfiles--restore-locally.tar.gz .[^.]* cd /home/dave tar \ --exclude='.kde/share/thumbnails' \ --exclude='.kde/share/cache' \ --exclude='.opera/cache4' \ --exclude=".mozilla/firefox/*.default/Cache" \ --exclude='.gqview' --exclude='.thumbnails' \ --exclude='.pan/*' \ -cpvzf $dest/bkp-dave-dotfiles--restore-locally.tar.gz .[^.]* tar cpvzf $dest/bkp-usr-src-cfgs.tar.gz /usr/src/*.cfg sync ls $dest -al df $dest echo $stime' --> '`date` exit
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account