computer-playbook/roles/backup-remote-to-local/README.md

34 lines
1009 B
Markdown
Raw Normal View History

2023-11-16 17:55:54 +01:00
# role backup-remote-to-local
2021-01-10 20:35:37 +01:00
## goal
This script allows to pull backups from a remote server.
## scheme
It is part of the following scheme:
![backup scheme](https://www.veen.world/wp-content/uploads/2020/12/server-backup-768x567.jpg) <br />
Further information you will find [in this blog post](https://www.veen.world/2020/12/26/how-i-backup-dedicated-root-servers/).
2021-01-05 19:40:52 +01:00
## debug
2021-01-10 20:35:37 +01:00
2021-01-05 19:40:52 +01:00
### live
2023-04-14 09:38:35 +02:00
To track what the service is doing execute one of the following commands:
2023-04-14 09:38:35 +02:00
#### systemctl
```bash
watch -n2 "systemctl status backup-remote-to-local.cymais.service"
```
2021-01-05 19:40:52 +01:00
2023-04-14 09:38:35 +02:00
#### journalctl
```bash
journalctl -fu backup-remote-to-local.cymais.service
2023-04-14 09:38:35 +02:00
```
2021-01-05 19:40:52 +01:00
### history
```bash
2023-11-16 17:55:54 +01:00
sudo journalctl -u backup-remote-to-local
2021-01-05 19:40:52 +01:00
```
2021-01-11 14:14:36 +01:00
## see
- https://superuser.com/questions/363444/how-do-i-get-the-output-and-exit-value-of-a-subshell-when-using-bash-e
- https://gist.github.com/otkrsk/b0ffd4018e8a79b9010c461af298471e
2023-04-12 20:32:52 +02:00
- https://serverfault.com/questions/304125/rsync-seems-incompatible-with-bashrc-causes-is-your-shell-clean