Ai
1 Star 0 Fork 0

wangcichen/urbackup_backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update_restore.sh 1000 Bytes
一键复制 编辑 原始数据 按行查看 历史
Martin 提交于 2022-03-20 19:49 +08:00 . Run npm ci instead of install
#!/bin/sh
set -e
set -x
./download_cryptopp.sh
./switch_build.sh client
autoreconf --install
./configure CXXFLAGS="-DRESTORE_CLIENT" --enable-headless --enable-embedded-cryptopp --enable-httpserver
make -j4
LANG=en
cd urbackupclient/restorewww
npm ci
npm run build
cd ..
cd ..
mkdir -p restore_cd/urbackup/restore
cp urbackupclient/backup_client.db restore_cd/urbackup/
touch restore_cd/urbackup/new.txt
mkdir -p restore_cd/restorewww/
cp -R urbackupclient/restorewww/build/* restore_cd/restorewww/
cp urbackupclientbackend restore_cd/urbackuprestoreclient
cp urbackupserver/restore/$LANG/* restore_cd/urbackup/restore/
cp urbackupserver/restore/* restore_cd/urbackup/restore/ || true
chmod +x restore_cd/urbackup/restore/*.sh
strip restore_cd/urbackuprestoreclient
cd restore_cd
tar -cJf ../restore_cd_2_amd64.tar.xz *
if [ "x$SCP_RESTORE" = x1 ]
then
scp ../restore_cd_2_amd64.tar.xz 192.168.0.40:/var/www/ssl/
else
cp ../restore_cd_2_amd64.tar.xz /var/www/restore_cd_2_amd64.tar.xz
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/wangcichen/urbackup_backend.git
git@gitee.com:wangcichen/urbackup_backend.git
wangcichen
urbackup_backend
urbackup_backend
dev

搜索帮助