Это старая версия документа.
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/inc/parser/handler.php on line 1458
Warning: Declaration of syntax_plugin_tablecalc::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/tablecalc/syntax.php on line 41
Warning: Declaration of syntax_plugin_tablecalc::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/tablecalc/syntax.php on line 72
Warning: Declaration of syntax_plugin_offline::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/offline/syntax.php on line 60
Warning: Declaration of syntax_plugin_offline::render($format, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/lib/plugins/offline/syntax.php on line 67
Warning: preg_match(): Compilation failed: invalid range in character class at offset 3416 in /home/users/p/prom-auto/domains/prom-auto.ru/wiki/inc/parser/lexer.php on line 118
====== make-backup.sh ====== <code bash> #!/bin/bash dirs=("src" "doc" "db" "inst") cd /media/asutp/promauto read DTBEG < make-backup.dat DTEND=`date "+%Y%m%d"` ARCNAME=promauto-$DTBEG-$DTEND.tar echo Working from date $DTBEG to $DTEND echo Warning! Make sure first nobody\'s using or connected to your databases. echo Press Enter to continue... read key="c" for i in "${dirs[@]}" do echo Processing $i... tar -${key}f $ARCNAME $i --newer-mtime=$DTBEG key="r" done rm make-backup.dat echo $DTEND > make-backup.dat mkdir $ARCNAME.temp cp $ARCNAME $ARCNAME.temp cd $ARCNAME.temp tar -xf $ARCNAME rm $ARCNAME find -depth -type d -empty -exec rmdir --ignore-fail-on-non-empty {} \; key="c" for i in "${dirs[@]}" do if [ -e $i ]; then echo Archiving $i... tar -${key}f $ARCNAME $i key="r" fi done cp $ARCNAME .. cd .. rm $ARCNAME.temp -R echo Copying to KingStone8G cp $ARCNAME /media/KingStone8G echo Well done! Press any Enter to exit... read </code>