echo -e "net.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p

执行 lsmod | grep bbr, 看到有 tcp_bbr 模块即说明 bbr 已启动

docker run -it --rm -v /home/go:/go --name gost golang
go get -d github.com/ginuerzh/gost/cmd/gost
#如需切换到2.6版本可进 src/github.com/ginuerzh/gost/
git checkout 2.6
CGO_ENABLED=0 GOOS=linux GOARCH=mips GOMIPS=softfloat go build -o gost_mips github.com/ginuerzh/gost/cmd/gost

先装好 Docker

mkdir a2w
cd a2w
wget -O Dockerfile https://github.com/aria2/aria2/raw/master/Dockerfile.mingw
vi Dockerfile

默认32位,修改成64位,单服务器连接线程限制从16提高到128,具体修改如下:

# Dockerfile to build aria2 Windows binary using ubuntu mingw-w64
# cross compiler chain.
#
# $ sudo docker build -t aria2-mingw - < Dockerfile.mingw
#
# After successful build, windows binary is located at
# /aria2/src/aria2c.exe.  You can copy the binary using following
# commands:
#
# $ id=$(sudo docker create aria2-mingw)
# $ sudo docker cp $id:/aria2/src/aria2c.exe <dest>
# $ sudo docker rm -v $id

FROM ubuntu:16.04

MAINTAINER Tatsuhiro Tsujikawa

# Change HOST to x86_64-w64-mingw32 to build 64-bit binary
ENV HOST x86_64-w64-mingw32

# It would be better to use nearest ubuntu archive mirror for faster
# downloads.
# RUN sed -ie 's/archive\.ubuntu/jp.archive.ubuntu/g' /etc/apt/sources.list

RUN apt-get update && \
    apt-get install -y \
        make binutils autoconf automake autotools-dev libtool \
        pkg-config git curl dpkg-dev gcc-mingw-w64 \
        autopoint libcppunit-dev libxml2-dev libgcrypt11-dev lzip sed

RUN curl -L -O https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz && \
    curl -L -O http://downloads.sourceforge.net/project/expat/expat/2.2.4/expat-2.2.4.tar.bz2 && \
    curl -L -O https://www.sqlite.org/2017/sqlite-autoconf-3200100.tar.gz && \
    curl -L -O http://zlib.net/zlib-1.2.11.tar.gz && \
    curl -L -O https://c-ares.haxx.se/download/c-ares-1.13.0.tar.gz && \
    curl -L -O http://libssh2.org/download/libssh2-1.8.0.tar.gz

RUN tar xf gmp-6.1.2.tar.lz && \
    cd gmp-6.1.2 && \
    ./configure \
        --disable-shared \
        --enable-static \
        --prefix=/usr/local/$HOST \
        --host=$HOST \
        --disable-cxx \
        --enable-fat \
        CFLAGS="-mtune=generic -O2 -g0" && \
    make install

RUN tar xf expat-2.2.4.tar.bz2 && \
    cd expat-2.2.4 && \
    ./configure \
        --disable-shared \
        --enable-static \
        --prefix=/usr/local/$HOST \
        --host=$HOST \
        --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
    make install

RUN tar xf sqlite-autoconf-3200100.tar.gz && \
    cd sqlite-autoconf-3200100 && \
    ./configure \
        --disable-shared \
        --enable-static \
        --prefix=/usr/local/$HOST \
        --host=$HOST \
        --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
    make install

RUN tar xf zlib-1.2.11.tar.gz && \
    cd zlib-1.2.11 && \
    CC=$HOST-gcc \
    AR=$HOST-ar \
    LD=$HOST-ld \
    RANLIB=$HOST-ranlib \
    STRIP=$HOST-strip \
    ./configure \
        --prefix=/usr/local/$HOST \
        --libdir=/usr/local/$HOST/lib \
        --includedir=/usr/local/$HOST/include \
        --static && \
    make install

RUN tar xf c-ares-1.13.0.tar.gz && \
    cd c-ares-1.13.0 && \
    ./configure \
        --disable-shared \
        --enable-static \
        --without-random \
        --prefix=/usr/local/$HOST \
        --host=$HOST \
        --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
        LIBS="-lws2_32" && \
    make install

RUN tar xf libssh2-1.8.0.tar.gz && \
    cd libssh2-1.8.0 && \
    ./configure \
        --disable-shared \
        --enable-static \
        --prefix=/usr/local/$HOST \
        --host=$HOST \
        --build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
        --without-openssl \
        --with-wincng \
        LIBS="-lws2_32" && \
    make install
ADD https://api.github.com/repos/aria2/aria2/git/refs/heads/master version.json
RUN git clone https://github.com/aria2/aria2 && \
    cd aria2 && sed -i 's/16,/128,/g' src/OptionHandlerFactory.cc && autoreconf -i && ./mingw-config && make && \
    $HOST-strip src/aria2c.exe

创建 image,时间较长约1小时左右,编译完后执行文件在 /aria2/src/aria2c.exe .

docker build -t a2w:x64 .

从 image 复制出来

docker run --name cpa2w -t -i a2w:x64 /bin/bash
docker cp cpa2w:/aria2/src/aria2c.exe /root

配置安装

官方下载页下载解压 rclone
windows 打开命令行执行

rclone.exe config

按提示填写要备份网站信息
执行下面命令即可将网站备份至本地 D 盘事先创建好的目录

rclone.exe copy backup_site:/home/www d:\backup\backup_site

开机备份

在执行文件目录创建 backup.cmd

@echo off 
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit 
:begin
rclone.exe copy backup_site:/home/www d:\backup\backup_site

创建 backup.cmd 快捷方式
WIN + R 输入 shell:startup 将快捷方式放入目录