mirror of https://github.com/tLDP/LDP
added /sys to the list of excludes.
This commit is contained in:
parent
4bea08a0c1
commit
60f9e24bfe
|
@ -8,7 +8,7 @@
|
|||
# firewall. You don't want the firewall to be authenticated to the backup
|
||||
# system in case the firewall is cracked.
|
||||
|
||||
# Time-stamp: <2003-04-24 09:57:14 ccurley get.tester>
|
||||
# Time-stamp: <2004-04-03 12:24:12 ccurley get.tester>
|
||||
|
||||
# Copyright 2000 through the last date of modification Charles Curley.
|
||||
|
||||
|
@ -31,6 +31,9 @@
|
|||
# For more information contact the author, Charles Curley, at
|
||||
# http://www.charlescurley.com/.
|
||||
|
||||
# 2004 04 03: added /sys to the list of excludes. It is a read-only
|
||||
# pseudo-file system like /proc.
|
||||
|
||||
# 2002 07 01: We now set the path on the target to the zip drive with
|
||||
# a variable. This fixes a bug in the command to eject the zip disk.
|
||||
|
||||
|
@ -72,7 +75,8 @@ mv $target.tar.bz2 $target.tar.old.bz2
|
|||
|
||||
echo Backing up $target to the backup server.
|
||||
|
||||
ssh $target tar -cf - / --exclude /mnt --exclude /proc --exclude /var/spool/squid\
|
||||
ssh $target tar -cf - / --exclude /sys --exclude /mnt --exclude /proc\
|
||||
--exclude /var/spool/squid\
|
||||
| bzip2 -9 | cat > $target.tar.bz2
|
||||
|
||||
echo Testing the results.
|
||||
|
|
Loading…
Reference in New Issue