Преглед изворни кода

First upload

blog uploader scripts
Philip Wittamore пре 9 месеци
родитељ
комит
32ef652319
2 измењених фајлова са 30 додато и 0 уклоњено
  1. 15 0
      upb
  2. 15 0
      uph

+ 15 - 0
upb

@@ -0,0 +1,15 @@
+#!/bin/sh
+
+rf=web:/var/www/wittamore.com
+mf=~/src/philip/wittamore.com
+
+cd $mf
+
+files=$(find * -path .tmp -prune -o -mtime 0 -type f) 
+for file in $files 
+do
+   scp -r "$file" "$rf/$file"
+done
+
+exit 0
+

+ 15 - 0
uph

@@ -0,0 +1,15 @@
+#!/bin/sh
+
+rf=web:/var/www/wittamore.com
+mf=~/src/philip/wittamore.com
+
+cd $mf
+
+files=$(find * -path .tmp -prune -o -mmin -60 -type f) 
+for file in $files 
+do
+   scp -r "$file" "$rf/$file"
+done
+
+exit 0
+