Add version and copyright info to the scripts

This commit is contained in:
Janek Bevendorff 2014-09-13 01:31:36 +02:00
parent a149713993
commit c7b40ab809
4 changed files with 18 additions and 2 deletions

13
server/usr/bin/rs-version Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
##
# rs-version
# Copyright (C) 2013-2014 by Janek Bevendorff
# Website: http://www.refining-linux.org/
#
# Print out version and copyright information for rs-backup.
##
VERSION="0.2.0"
echo -e "\e[1mrs-backup-suite\e[0m version ${VERSION}"
echo "Copyright (C) 2013-2014 Janek Bevendorff"

View File

@ -1,13 +1,14 @@
#!/bin/sh
##
# rs-add-ssh-key
# Copyright (C) 2013 by Janek Bevendorff
# Copyright (C) 2013-2014 by Janek Bevendorff
# Website: http://www.refining-linux.org/
#
# Add SSH key to a backup user for passwordless login
##
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ]; then
. rs-version
echo "Usage: $(basename $0) <remote host> <remote username> <ssh public key file>"
exit
fi

View File

@ -1,13 +1,14 @@
#!/bin/sh
##
# rs-add-user
# Copyright (C) 2013 by Janek Bevendorff
# Copyright (C) 2013-2014 by Janek Bevendorff
# Website: http://www.refining-linux.org/
#
# Set up a backup user
##
if [ "$1" == "" ] || [ "$2" == "" ]; then
. rs-version
echo "Usage: $(basename $0) <remote host> <remote username> [<ssh public key file>]"
exit
fi

View File

@ -2,6 +2,7 @@
# Create daily, weekly or monthly snapshots from manual push backups
if [ "$1" == "" ]; then
. rs-version
echo "Usage: $(basename $0) <backup level>"
exit
fi