del legacy b2, add rclone
This commit is contained in:
+16
-20
@@ -5,45 +5,41 @@ set -e
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt-get update && \
|
||||
apt-get install -y gnupg2 git wget python-setuptools cron iputils-ping curl nano lsb-release apt-utils software-properties-common && \
|
||||
apt-get install -y gnupg2 wget iputils-ping curl nano ca-certificates apt-transport-https lsb-release && \
|
||||
|
||||
# echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs) main restricted universe multiverse > /etc/apt/sources.list && \
|
||||
# echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-updates main restricted universe multiverse >> /etc/apt/sources.list && \
|
||||
# echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -cs)-security main restricted universe multiverse >> /etc/apt/sources.list && \
|
||||
|
||||
# psql
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
|
||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list && \
|
||||
echo -e "\n====> Install PGSQL + Mysql"
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /usr/share/keyrings/postgresql.gpg > /dev/null && \
|
||||
echo deb [arch=amd64 signed-by=/usr/share/keyrings/postgresql.gpg] http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main | tee -a /etc/apt/sources.list.d/postgresql.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y postgresql-client-10 postgresql-client-11 postgresql-client-12 mysql-client nfs-common
|
||||
apt-cache search postgresql-client-* && \
|
||||
apt-get install -y postgresql-client-10 postgresql-client-12 postgresql-client-14 mysql-client
|
||||
|
||||
|
||||
# mongo
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add -
|
||||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list
|
||||
echo -e "\n====> Install Mongo"
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | gpg --dearmor | tee /usr/share/keyrings/mongodb.gpg > /dev/null && \
|
||||
echo deb [arch=amd64 signed-by=/usr/share/keyrings/mongodb.gpg] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/4.2 multiverse | tee -a /etc/apt/sources.list.d/mongodb-org-4.2.list && \
|
||||
apt-get update
|
||||
apt-get install mongodb-org-tools -y
|
||||
|
||||
# mo
|
||||
echo -e "\n====> Install Mo"
|
||||
curl -sSL https://git.io/get-mo -o mo
|
||||
chmod +x mo
|
||||
mv mo /usr/local/bin/
|
||||
|
||||
# s3
|
||||
echo -e "\n====> Install S3"
|
||||
wget -O s3tools.tar.gz https://github.com/s3tools/s3cmd/releases/download/v2.1.0/s3cmd-2.1.0.tar.gz && \
|
||||
( tar xvfz s3tools.tar.gz && cd s3cmd-2.1.0 && \
|
||||
python setup.py install && s3cmd --configure ) && rm -rf s3cmd-2.1.0
|
||||
apt-get install rclone
|
||||
|
||||
# b2
|
||||
echo -e "\n====> Install B2"
|
||||
apt-get install python-pip python-dev build-essential -y
|
||||
pip install --upgrade pip
|
||||
pip install --upgrade b2 #==1.4.2
|
||||
|
||||
|
||||
# # git-lfs
|
||||
# echo -e "\n====> Install git-lfs"
|
||||
# curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
|
||||
# apt-get install git-lfs && \
|
||||
|
||||
# Post install tasks
|
||||
echo -e "\n====> Post install tasks"
|
||||
mkdir -p /srv/backup
|
||||
find /etc/cron.* -type f ! -name .placeholder -delete
|
||||
apt-get clean
|
||||
|
||||
Reference in New Issue
Block a user