Zalohovanie
Peter Novak
novak71 at post.sk
Wed Jun 1 16:44:39 CEST 2005
Dakujem vsetkym za rady. Skript som nejako napisal a to takto :
#!/bin/sh
MENO_SUBORU=`date +%m%d%y`.tgz
cd /usr/backup
echo ====== Mazem .tgz z adresara /usr/backup/ =======
rm *.tgz
cd /usr/local/www/data-dist/
echo ====== Zipujem obchod =======
tar -zcvf $MENO_SUBORU obchod/
echo ====== Presuvam zip obchodu do /usr/backup/ ========
mv $MENO_SUBORU /usr/backup/
echo ====== Odpajam CD =======
umount /cdrom
echo ====== Napalujem data v multisession mode =========
cd /usr/backup
burncd -m -f /dev/acd0 -s 4 data $MENO_SUBORU fixate
echo ====== Pripajam CD ============
mount -t cd9660 /dev/acd0 /cdrom
ale napalovanie skonci najako divne :
server# /usr/backup/zaloha.sh
====== Mazem .tgz z adresara /usr/backup/ =======
====== Zipujem obchod =======
a obchod/
...
...
====== Presuvam zip obchodu do /usr/backup/ ========
====== Odpajam CD =======
umount: /cdrom: not a file system root directory
====== Napalujem data v multisession mode =========
next writeable LBA 11700
writing from file 060105.tgz size 7043 KB
written this track 7044 KB (100%) total 7044 KB
fixating CD, please wait..
====== Pripajam CD ============
cd9660: /dev/acd0: Input/output error
server#
nevidi tu niekto chybu ?
Dakujem
________
Vsetci sa raz zideme na http://blog.sme.sk
More information about the Users-l
mailing list