Skip to content

Instantly share code, notes, and snippets.

@Cacodaimon
Cacodaimon / backup.sh
Created September 26, 2012 15:11 — forked from karussell/backup.sh
Backup ElasticSearch with rsync
# TO_FOLDER=/something
# FROM=/your-es-installation
DATE=`date +%Y-%m-%d_%H-%M`
TO=$TO_FOLDER/$DATE/
echo "rsync from $FROM to $TO"
# the first times rsync can take a bit long - do not disable flusing
rsync -a $FROM $TO
# now disable flushing and do one manual flushing
<?php
$mongoDb = new Mongo;
$article = $mongoDb->blog->article->findOne(array(
'_id' => new MongoId($_GET['_id'])
));
ob_start();
?>
<!DOCTYPE html>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName phpzend
DocumentRoot /var/www/zend/public
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
#!/bin/bash
echo "Foo"