Plan 9 from Bell Labs’s /usr/web/sources/contrib/sl/rc/backup

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
rfork en
argv0=$0
src=$1
dst=/n/wm/home/sl/9/$src
fn usage {
	echo usage: $argv0 ... >[1=2]
	exit usage
}
if(! ~ $#* 1)
	usage
if(test -f /srv/wm)
	rm /srv/wm
srv -s 5 -e 'scpu -h wm -u sl -c ''/usr/local/bin/u9fs -u sl -na none''' wm /n/wm
if(~ $src /n/mars2*)
	import -c mars2 / /n/mars2
if(~ $src /n/nm*)
	import -c nm / /n/nm
if(~ $src /n/pp*)
	import -c pp / /n/pp
vdircp $src $dst || echo failed `{date} $src>>$home/lib/backup
rm /srv/wm

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].