diff bin/sync-me @ 0:2aa53823fb21

new repo
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 06 Jun 2026 10:19:04 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/sync-me	Sat Jun 06 10:19:04 2026 +0100
@@ -0,0 +1,11 @@
+#!/bin/sh
+list=${PWD##*/}
+year=2009
+if [ "$1" = "-y" ]
+then
+ year=$2
+ shift ; shift
+fi
+dir=/home/lists/$list/Archive/$year$1
+echo Syncing $dir . . .
+rsync -avz localhost:$dir .