mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
backups
This commit is contained in:
parent
6eaf9471a7
commit
cbf81cb09d
1 changed files with 19 additions and 0 deletions
19
bin/vmount
Executable file
19
bin/vmount
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/local/plan9/bin/rc
|
||||||
|
|
||||||
|
if(! ~ $#* 2){
|
||||||
|
echo 'usage: vmount server mtpt' >[1=2]
|
||||||
|
exit usage
|
||||||
|
}
|
||||||
|
|
||||||
|
server=$1
|
||||||
|
mtpt=$2
|
||||||
|
|
||||||
|
switch(`{uname}){
|
||||||
|
case Linux
|
||||||
|
exec mount -o 'ro,timeo=100,rsize=8192,retrans=5,port=12049,mountport=12049,mountvers=3,nfsvers=3,nolock,soft,intr,udp' \
|
||||||
|
$server:/dump $mtpt
|
||||||
|
case *
|
||||||
|
echo 'cannot mount on' `{uname} >[1=2]
|
||||||
|
exit usage
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue