on Wed, Jan 17, 2001 at 08:26:48AM +0100, <anonymous> wrote: > (private reply)
Respondee redacted, response to list. > > On Tue, 16 Jan 2001 13:51:36 PST, kmself@ix.netcom.com writes: > > http://kmself.home.netcom.com/Linux/FAQs/backups.html > > I´d slightly extend your script and think that that may be good to > include, for people not very familiar with the tools used: > > ----- > backupdirs="/bin /boot /etc /initrd /lib /opt /root /sbin /usr /var" ^^^^ ^^^^^^^ ^^^^ ^^^^^ ^^^^ See the referenced document as to why it may be unnecessary (and perhaps unwise) to archive system directories which can readily be restored from installation media or via apt-get. > excludirs="/var/cache/apt/ /var/log/ /var/tmp/ /var/run/ \ > /home/waldner/pics" > cat /dev/null >/tmp/backup.exclude > > # build list of files to exclude > > for path in $excludirs > do > echo "Building list of files to exclude for " -n > find $path 1>>/tmp/backup.exclude || exit 1 > echo "done." > sleep 2 > done > > echo "Exclude-List built." > echo " " > > for path in $backupdirs > do > echo "System backup on $path " -n > tar -X /tmp/backup.exclude cIvf /dev/nst0 $path \ > 1>>/tmp/backup.log || exit 1 > echo "done." > sleep 2 > done > ----- Yes, you can use find for backups. I find (pun noted) my own mechanisms sufficient. 'find' may produce problems with filenames containing embedded blanks, haven't checked this myself. You may wish to investigate. -- Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/ What part of "Gestalt" don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
pgpzba8W9TJzf.pgp
Description: PGP signature