You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
access() {
|
|
host=$1
|
|
tar -cPjf - -C storage/$host --transform='s,\.\./,,' ../start $(cd storage/$host;ls -d [0-9]*)
|
|
}
|
|
|
|
case "$SSH_ORIGINAL_COMMAND" in
|
|
access)
|
|
access $1
|
|
;;
|
|
*)
|
|
echo "Commands:"
|
|
echo " access"
|
|
;;
|
|
esac
|
|
|