Browse Source

added urbackup and some todos

Bachir Soussi Chiadmi 5 years ago
parent
commit
fff73f9e3d
4 changed files with 21 additions and 6 deletions
  1. 5 0
      bin/lemp.sh
  2. 1 1
      bin/misc.sh
  3. 3 3
      bin/urbackup.sh
  4. 12 2
      install.sh

+ 5 - 0
bin/lemp.sh

@@ -130,6 +130,11 @@ echo -e "\033[35;1mInstalling Redis \033[0m"
 sleep 3
 apt-get --yes --force-yes install redis-server php-redis
 
+# TODO set maxmemory=2gb
+# TODO set maxmemory-policy=volatile-lru
+# TODO comment all save line
+
+
 systemctl enable redis-server
 systemctl restart redis-server
 echo -e "\033[92;1mRedis installed\033[Om"

+ 1 - 1
bin/misc.sh

@@ -20,6 +20,6 @@ sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen
 locale-gen
 apt-get --yes --force-yes install ntp
 dpkg-reconfigure tzdata
-apt-get --yes --force-yes install etckeeper needrestart
+apt-get --yes --force-yes install tmux etckeeper needrestart
 
 echo -e "\033[92;1mMisc done \033[Om"

+ 3 - 3
bin/urbackup.sh

@@ -38,12 +38,12 @@ apt install build-essential "g++" "libcrypto++-dev" libz-dev -y
 #  libwxgtk3.0-dev
 
 # Download the UrBackup client source files and extract them
-wget -P /tmp/ https://hndl.urbackup.org/Client/latest/urbackup-client-2.2.5.tar.gz
+wget -P /tmp/ https://hndl.urbackup.org/Client/latest/urbackup-client-2.2.6.tar.gz
 cd /tmp
-tar xzf /tmp/urbackup-client-2.2.5.tar.gz
+tar xzf /tmp/urbackup-client-2.2.6.tar.gz
 
 # Build the UrBackup client and install it
-cd /tmp/urbackup-client-2.2.5.0
+cd /tmp/urbackup-client-2.2.6.0
 ./configure --enable-headless
 make -j4
 make install

+ 12 - 2
install.sh

@@ -94,10 +94,20 @@ else
   echo -e 'zabbix-agent not installed'
 fi
 
-# urbackup
+while [ "$_install_urbackup" != "yes" ] && [ "$_install_urbackup" != "no" ]
+do
+  echo -n "Should we install urbackup client ? [yes|no] "
+  read _install_urbackup
+done
+if [ "$_install_urbackup" = "yes" ]; then
+  . bin/urbackup.sh
+else
+  echo -e 'urbackup client not installed'
+fi
+
 
 . bin/dotfiles.sh
-. bin/autoupdate.sh
+# . bin/autoupdate.sh
 
 # echo -e '\033[35m
 #   ______________  _______