tips:backup_script
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:backup_script [2015-01-05 17:07] – [Streaming PHP script to download] 95.97.228.170 | tips:backup_script [2024-01-08 13:29] (current) – 84.136.35.186 | ||
---|---|---|---|
Line 28: | Line 28: | ||
-- dp < | -- dp < | ||
- | <code bash> | + | <file bash dw-backup.sh> |
#!/bin/sh | #!/bin/sh | ||
# $Id: dw-backup.sh 328 2004-12-22 13:15:20Z dp $ | # $Id: dw-backup.sh 328 2004-12-22 13:15:20Z dp $ | ||
Line 97: | Line 97: | ||
mv "/ | mv "/ | ||
mv "/ | mv "/ | ||
- | </code> | + | </file> |
Line 108: | Line 108: | ||
This script is far from being well written, so please feel free to do any improvements you like! | This script is far from being well written, so please feel free to do any improvements you like! | ||
- | <code bash> | + | <file bash rsync-dw-backup.sh> |
- | #!/bin/sh | + | #!/bin/bash |
# | # | ||
# backup script for stuff on wiki to be run periodically through a crontab on a trusted server | # backup script for stuff on wiki to be run periodically through a crontab on a trusted server | ||
Line 193: | Line 193: | ||
tar -cjf ${backupdir}/ | tar -cjf ${backupdir}/ | ||
fi | fi | ||
- | </code> | + | </file> |
- | The script uses an //exclude// file, listing all file and dir " | + | The script uses an //exclude// file, listing all file and dir " |
+ | Here is a copy of my '' | ||
< | < | ||
data/ | data/ | ||
Line 319: | Line 320: | ||
?> | ?> | ||
</ | </ | ||
- | |||
===== (Yet Another) PHP script to download a copy of your DokuWiki installation ===== | ===== (Yet Another) PHP script to download a copy of your DokuWiki installation ===== | ||
Line 345: | Line 345: | ||
// | // | ||
- | ===== Streaming PHP script to download DokuWiki ===== | ||
- | |||
- | <code php> | ||
- | <?php | ||
- | header(' | ||
- | header(' | ||
- | |||
- | passthru(' | ||
- | ?> | ||
- | </ | ||
- | |||
- | // | ||
===== windows command line script ===== | ===== windows command line script ===== | ||
- | Although wndows "ms dos shell" is not powerful as Unix shells, it can handle a lot of problems with or without | + | Although wndows "ms dos shell" is not powerful as Unix shells, it can handle a lot of problems with or without |
<code dos ncFtpGetDokuWikiBackup.bat> | <code dos ncFtpGetDokuWikiBackup.bat> |
tips/backup_script.1420474068.txt.gz · Last modified: 2015-01-05 17:07 by 95.97.228.170