aboutsummaryrefslogtreecommitdiff
blob: 2dca8e0086a1f054c051487a75d4c6e8156c0b35 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Copyright 2012-2015 Gentoo Foundation; 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}"