summaryrefslogtreecommitdiff
blob: e3340f219bbeeb0ae37a967543ad45dba0791294 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Copyright 2012-2018 Gentoo Authors; Distributed under the GPL v2
case $HOSTNAME in
	kookaburra) TARGET=/var/tmp/gmirror/snapshots-final/.timestamp-snapshots.x ;;
	dipper) TARGET=/var/tmp/gmirror-rsync/snapshots-final/.timestamp-snapshots.x ;;
	blackcap) TARGET=/var/tmp/gmirror-rsync/snapshots-final/.timestamp-snapshots.x ;;
	*) echo "Unknown host in timestamp-rsync.sh!" 1>&2 ; exit 1 ;;
esac
/bin/date -u +'%s %a, %d %b %Y %H:%M:%S %z' >"${TARGET}"