mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
30 lines
702 B
Bash
Executable File
30 lines
702 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -x
|
|
|
|
./download_cryptopp.sh
|
|
./switch_build.sh client
|
|
|
|
autoreconf --install
|
|
|
|
./configure CXXFLAGS="-DRESTORE_CLIENT" --enable-headless --enable-embedded-cryptopp
|
|
|
|
make -j4
|
|
|
|
LANG=en
|
|
|
|
mkdir -p restore_cd/urbackup/restore
|
|
cp urbackupclient/backup_client.db restore_cd/urbackup/
|
|
touch restore_cd/urbackup/new.txt
|
|
|
|
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.tar.xz *
|
|
cp ../restore_cd_2.tar.xz /var/www/restore_cd_2.tar.xz
|