This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns schema | |
(:use clojure.test)) | |
(defn- schema-type [schema data] | |
(cond | |
(and (vector? schema) (vector? (first schema))) :nested-vector | |
(vector? schema) :vector | |
(map? schema) :map | |
(keyword? schema) :keyword | |
:default (type schema))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# http://slava.uma.ru/?a=page&id=137 | |
BACKUP_DIR=/backup/fs | |
FILES_SRC=/root/adm/backup_src.lst | |
INCLUDE_FILES_PATTERN=/root/adm/backup_include.lst | |
EXCLUDE_FILES_PATTERN=/root/adm/backup_exclude.lst | |
BACKUP_DB_DIR=/backup/db | |
DB_BACKUP_PREFIX=db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://serverfault.com/questions/24622/how-to-use-rsync-over-ftp/106365#106365 | |
HOST="your.ftp.host.dom" | |
USER="username" | |
PASS="password" | |
LCD="/path/of/your/local/dir" | |
RCD="/path/of/your/remote/dir" | |
lftp -c "set ftp:list-options -a; | |
open ftp://$USER:$PASS@$HOST; | |
lcd $LCD; |
NewerOlder