mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
22 lines
693 B
Bash
Executable File
22 lines
693 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export LANG=en_EN.UTF-8
|
|
export LC_CTYPE=en_EN.UTF-8
|
|
export LANGUAGE=en_EN.UTF-8
|
|
|
|
#Tuning
|
|
echo 'net.core.wmem_max=12582912' >> /etc/sysctl.conf
|
|
echo 'net.core.rmem_max=12582912' >> /etc/sysctl.conf
|
|
echo 'net.ipv4.tcp_rmem= 10240 87380 12582912' >> /etc/sysctl.conf
|
|
echo 'net.ipv4.tcp_wmem= 10240 87380 12582912' >> /etc/sysctl.conf
|
|
sysctl -p
|
|
|
|
cd `dirname $0`
|
|
echo "Starting restoration..."
|
|
./urbackuprestoreclient --daemon --restore-client --logfile restore_mode.txt --loglevel debug
|
|
./urbackuprestoreclient --restore-wizard --logfile restore_wizard.txt --loglevel debug
|
|
echo "Wizard stoped with error code: $?"
|
|
tail -n 100 restore_wizard.txt
|
|
read -p "Press any key to continue..."
|
|
|