1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/bin/vcs-backup-clone-private-git Fri Apr 19 18:56:46 2019 +0200
1.3 @@ -0,0 +1,1 @@
1.4 +../vcs-backup.sh
1.5 \ No newline at end of file
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/bin/vcs-backup-clone-private-hg Fri Apr 19 18:56:46 2019 +0200
2.3 @@ -0,0 +1,1 @@
2.4 +../vcs-backup.sh
2.5 \ No newline at end of file
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/bin/vcs-backup-clone-public-git Fri Apr 19 18:56:46 2019 +0200
3.3 @@ -0,0 +1,1 @@
3.4 +../vcs-backup.sh
3.5 \ No newline at end of file
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/bin/vcs-backup-clone-public-hg Fri Apr 19 18:56:46 2019 +0200
4.3 @@ -0,0 +1,1 @@
4.4 +../vcs-backup.sh
4.5 \ No newline at end of file
5.1 --- a/vcs-backup.sh Fri Apr 19 17:52:37 2019 +0200
5.2 +++ b/vcs-backup.sh Fri Apr 19 18:56:46 2019 +0200
5.3 @@ -155,6 +155,10 @@
5.4 PUBLIC_FUNCTION_PREFIX="vcs_backup_public_";
5.5 if type -t "$PUBLIC_FUNCTION_PREFIX$1" > /dev/null; then
5.6 "$PUBLIC_FUNCTION_PREFIX${@:1}";
5.7 +elif [[ $(basename $0) == "vcs-backup-clone-private-hg" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" hg "$1" private clone;
5.8 +elif [[ $(basename $0) == "vcs-backup-clone-private-git" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" git "$1" private clone;
5.9 +elif [[ $(basename $0) == "vcs-backup-clone-public-hg" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" hg "$1" public clone;
5.10 +elif [[ $(basename $0) == "vcs-backup-clone-public-git" ]]; then "${PUBLIC_FUNCTION_PREFIX}clientSubmitBackupRequest" git "$1" public clone;
5.11 else
5.12 echo "Unsupported sub-command: $1" >&2
5.13 echo "Available sub-commands:" >&2