2022-10-29 15:29:23 +02:00
|
|
|
## tisbackup for python3
|
|
|
|
|
2022-10-30 07:49:11 +01:00
|
|
|
### Install
|
|
|
|
|
2022-10-29 15:29:23 +02:00
|
|
|
Once the deb package is created, one can use it to install tisbackup on a debian machine. The command is:
|
2022-10-26 15:45:31 +02:00
|
|
|
```
|
2022-10-29 15:29:23 +02:00
|
|
|
apt install ./tis-tisbackup-1-2-0.170-deb11.deb
|
2022-10-26 15:45:31 +02:00
|
|
|
```
|
|
|
|
Note that the version numbers might be different depending on the system you used to build the package.
|
|
|
|
|
2022-10-29 15:29:23 +02:00
|
|
|
Then create a directory where to backup the files from your machines. The default is ```/backup```.
|
|
|
|
This can be changed in the configuration file ```/etc/tis/tisback-config.ini```. Usually this
|
|
|
|
directory is mounted from a shared ressource on a NAS with great capacity.
|
|
|
|
|
|
|
|
Configure your backup jobs:
|
|
|
|
```
|
|
|
|
cd /etc/tis
|
|
|
|
cp tisbackup-config.ini.sample tisbackup-config.ini
|
|
|
|
vi tisbackup-config.ini
|
|
|
|
```
|
|
|
|
|
2022-10-26 15:45:31 +02:00
|
|
|
After this, one have to generate the public and private certificates, as root:
|
|
|
|
```
|
|
|
|
cd
|
|
|
|
ssh-keygen -t rsa -b 2048
|
|
|
|
```
|
|
|
|
(press enter for each step)
|
|
|
|
|
|
|
|
Then propagate the public certificate on the machines targetted for backup:
|
|
|
|
```
|
|
|
|
ssh-copy-id -i /root/.ssh/id_rsa.pub root@machine1
|
|
|
|
ssh-copy-id -i /root/.ssh/id_rsa.pub root@machine2
|
|
|
|
```
|
|
|
|
etc.
|
|
|
|
|
|
|
|
|
|
|
|
Eventually modify ```/etc/cron.d/tisbackup``` for your needs.
|
|
|
|
|
|
|
|
Finalize the installation with:
|
|
|
|
```
|
|
|
|
tisbackup -d backup
|
|
|
|
systemctl start tisbackup_gui
|
2022-10-27 10:04:15 +02:00
|
|
|
systemctl start tisbackup_huey
|
2022-10-26 15:45:31 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
You can then see the result in your browser: ```http://backup-server-name:8080```
|
2022-10-29 15:29:23 +02:00
|
|
|
|
|
|
|
The documentation for tisbackup is here: [tisbackup doc](https://tisbackup.readthedocs.io/en/latest/index.html)
|
2022-10-30 07:49:11 +01:00
|
|
|
|
|
|
|
### Uninstall
|
|
|
|
```
|
|
|
|
dpkg --force-all --purge tis-tisbackup
|
|
|
|
apt autoremove
|
|
|
|
```
|
|
|
|
|
|
|
|
|