dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 97caa60fda9447eb05bf69b1f72c08d039bd1977
parent ace6840c8674d42499c184a4ab8e0afa4fa4e917
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 19 May 2018 16:21:41 +0000

Makefile: Add usr.

* Makefile (usr): New target.
* usr/local/bin/rsync-to-mollisol-cronjob: New script.

Diffstat:
Makefile | 10++++++++++
usr/local/bin/rsync-to-mollisol-cronjob | 3+++
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -14,3 +14,13 @@ $(ETC_FILES_DST): $(ETC_FILES_SRC) etc: $(ETC_FILES_DST) .PHONY: etc + +# Provision /usr +USR_FILES_SRC:=$(shell find usr -type f -print) +USR_FILES_DST:=$(patsubst %,/%,$(USR_FILES_SRC)) + +$(USR_FILES_DST): $(USR_FILES_SRC) + @sudo cp $(patsubst /%,%,$@) $@ + +usr: $(USR_FILES_DST) +.PHONY: usr diff --git a/usr/local/bin/rsync-to-mollisol-cronjob b/usr/local/bin/rsync-to-mollisol-cronjob @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +flock -n '/etc/cron.d/rsync_to_mollisol' sh -c 'cd /home/s/.bin && ( ./rsync-bu-to /home/s /media/mollisol/box/cygnus/latest/ /home/s/v/cygnus.ricketyspace.net/dp/rsync-backup/filter-mollisol /home/s/v/cygnus.ricketyspace.net/dp/rsync-backup/filter-mollisol-exclude )'