mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
9 lines
415 B
Bash
Executable File
9 lines
415 B
Bash
Executable File
#!/bin/bash -ex
|
|
cd "${BASH_SOURCE%/*}" || exit 1
|
|
bundleDir=$PWD
|
|
wwwdir=/srv/www/backup.greptweet.com
|
|
cd /mnt/2tb/greptweet || exit 1
|
|
rsync -trvi --exclude 'tweets.txt.gz' --include '*/' --include '*.txt.gz' --exclude '*' --prune-empty-dirs core:/srv/www/greptweet.com/ . &> $wwwdir/rsync.log
|
|
find -name '*.gz' -type f -print0 | tar cf $wwwdir/tweets.tar --null -T -
|
|
$bundleDir/index.sh $wwwdir > $wwwdir/index.html
|