Skip to content
Snippets Groups Projects
Commit 85125e48 authored by efer's avatar efer
Browse files

more info to missing linux rclone/age

parent 6ca2b066
No related branches found
No related tags found
No related merge requests found
...@@ -19,13 +19,13 @@ export LC_CTYPE= ...@@ -19,13 +19,13 @@ export LC_CTYPE=
# #
SCRIPTNAME="comp-backup" SCRIPTNAME="comp-backup"
VERSION=11 VERSION=11
LOGNAME="backup_logfile"
TARGETNODE="backup.compute.dtu.dk" TARGETNODE="backup.compute.dtu.dk"
SERIAL="/etc/dtuserial"
H=$HOME H=$HOME
BIN_DIR="$H/bin" BIN_DIR="$H/bin"
SERIAL="/etc/dtuserial"
CONF_DIR="$H/.config/$SCRIPTNAME" CONF_DIR="$H/.config/$SCRIPTNAME"
FILE_DIR="$H/.local/$SCRIPTNAME" FILE_DIR="$H/.local/$SCRIPTNAME"
LOGNAME="backup_logfile"
RCLONE_DL="https://databin.compute.dtu.dk/pkgs/$SCRIPTNAME" RCLONE_DL="https://databin.compute.dtu.dk/pkgs/$SCRIPTNAME"
FILTER_URL="https://lab.compute.dtu.dk/ITS/comp-backup-templates/-/raw/main" FILTER_URL="https://lab.compute.dtu.dk/ITS/comp-backup-templates/-/raw/main"
ITSAGEPUBLICKEY="age1skk0tur4vfgvqpy7mgf5pp8qg828tyh5w27tttfe6ec6tw8m9ycsvpkt9s" ITSAGEPUBLICKEY="age1skk0tur4vfgvqpy7mgf5pp8qg828tyh5w27tttfe6ec6tw8m9ycsvpkt9s"
...@@ -101,16 +101,20 @@ elif [ $HOST_OS = 'Linux' ]; then ...@@ -101,16 +101,20 @@ elif [ $HOST_OS = 'Linux' ]; then
HOST=$(hostname -s) HOST=$(hostname -s)
NOTIFY0='notify-send -a "DTU Compute backup script" -i network-transmit "Backup done"' NOTIFY0='notify-send -a "DTU Compute backup script" -i network-transmit "Backup done"'
NOTIFY1='notify-send -a "DTU Compute backup script" -i network-error "Backup did not complete"' NOTIFY1='notify-send -a "DTU Compute backup script" -i network-error "Backup did not complete"'
# Check for necessary programs - XXX resolve / provide solution # Check for necessary programs
which rclone &>/dev/null which rclone &>/dev/null
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
echo -e "\nrclone command not installed\n" echo -e $R_"rclone command not installed"$_N
echo -e "Install it using your distro package manager:" $G_"<package_manager> install rclone"$_N
echo -e "and run this script again afterwards\n"
exit 1 exit 1
fi fi
which age &>/dev/null which age &>/dev/null
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
echo -e "\nrage command not installed\n" echo -e $R_"age command not installed"$_N
echo -e "Install it using your distro package manager:" $G_"<package_manager> install age"$_N
echo -e "and run this script again afterwards\n"
exit 1 exit 1
fi fi
# SYSTEMD # SYSTEMD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment