1
0
mirror of https://github.com/deajan/obackup.git synced 2024-11-12 19:03:42 +01:00
obackup/install.sh

26 lines
612 B
Bash
Raw Normal View History

2015-04-24 21:23:04 +02:00
#!/usr/bin/env bash
2015-08-25 15:26:36 +02:00
SCRIPT_BUILD=2015082501
2015-04-24 21:23:04 +02:00
## Obackup install script
## Tested on RHEL / CentOS 6 & 7
## Please adapt this to fit your distro needs
2015-08-25 15:26:36 +02:00
if [ "$(whoami)" != "root" ]
then
echo "Must be run as root."
exit 1
fi
2015-04-24 21:23:04 +02:00
mkdir /etc/obackup
cp ./host_backup.conf /etc/obackup/host_backup.conf.example
cp ./exclude.list.example /etc/obackup
cp ./obackup.sh /usr/local/bin
cp ./obackup-batch.sh /usr/local/bin
2015-08-25 15:26:36 +02:00
cp ./ssh_filter.sh /usr/local/bin
chmod 755 /usr/local/bin/obackup.sh
chmod 755 /usr/local/bin/obackup-batch.sh
chmod 755 /usr/local/bin/ssh_filter.sh
chown root:root /usr/local/bin/ssh_filter.sh
2015-04-24 21:23:04 +02:00