Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 18361b8

Browse files
committed
docs: [torrust#49] add backup section
1 parent 2d52cb4 commit 18361b8

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ It's also used to track issues in production.
1313
- [Firewall](docs/firewall.md)
1414
- [Sample Commands](docs/sample_commands.md)
1515
- [Rollbacks](docs/rollbacks.md)
16+
- [Backups](docs/backups.md)

docs/backups.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Backups
2+
3+
## Backup Index Database
4+
5+
```bash
6+
cd /home/torrust/github/torrust/torrust-demo/
7+
./share/bin/index-db-backup.sh
8+
```
9+
10+
## Check Backups Crontab Configuration
11+
12+
```bash
13+
sudo crontab -e
14+
```
15+
16+
You should see the [crontab.conf](../share/container/default/config/crontab.conf) configuration file.
17+
18+
## Check Backups
19+
20+
```bash
21+
ls -alt /home/torrust/backups
22+
total 26618268
23+
-rwxr-x--- 1 root root 2342912 May 12 07:00 backup_2025-05-12_07-00-01.db
24+
-rwxr-x--- 1 root root 2342912 May 12 06:00 backup_2025-05-12_06-00-02.db
25+
-rwxr-x--- 1 root root 2342912 May 12 05:00 backup_2025-05-12_05-00-01.db
26+
-rwxr-x--- 1 root root 2342912 May 12 04:00 backup_2025-05-12_04-00-01.db
27+
```
28+
29+
YOu can also check the script output with:
30+
31+
```bash
32+
tail /var/log/cron.log
33+
```

0 commit comments

Comments
 (0)