Backups
This commit is contained in:
parent
9d5400e5a9
commit
d5e41f788a
2 changed files with 53 additions and 1 deletions
52
Containers/Rsync/compose.yml
Normal file
52
Containers/Rsync/compose.yml
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
backup-sync:
|
||||||
|
image: eeacms/rsync:latest
|
||||||
|
container_name: backup_sync
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
# Medias folder
|
||||||
|
- type: bind
|
||||||
|
source: /home/criz/Medias
|
||||||
|
target: /source/Medias
|
||||||
|
read_only: true
|
||||||
|
- type: bind
|
||||||
|
source: /mnt/backupSD/Medias
|
||||||
|
target: /dest/Medias
|
||||||
|
# Immich folder
|
||||||
|
- type: bind
|
||||||
|
source: /home/criz/SelfHosting/Containers/Immich/library
|
||||||
|
target: /source/Immich
|
||||||
|
- type: bind
|
||||||
|
source: /mnt/backupSD/Immich
|
||||||
|
target: /dest/Immich
|
||||||
|
# Nextcloud
|
||||||
|
- type: bind
|
||||||
|
source: /home/criz/SelfHosting/Containers/NextCloud/nextcloud_data/data/Crizomb/files
|
||||||
|
target: /source/NextCloud
|
||||||
|
- type: bind
|
||||||
|
source: /mnt/backupSD/NextCloud
|
||||||
|
target: /dest/NextCloud
|
||||||
|
# Forgejo
|
||||||
|
- type: bind
|
||||||
|
source: /home/criz/SelfHosting/Containers/Forgejo/forgejo/git
|
||||||
|
target: /source/Forgejo/git
|
||||||
|
- type: bind
|
||||||
|
source: /home/criz/SelfHosting/Containers/Forgejo/forgejo/gitea
|
||||||
|
target: /source/Forgejo/gitea
|
||||||
|
|
||||||
|
- type: bind
|
||||||
|
source: /mnt/backupSD/Forgejo/git
|
||||||
|
target: /dest/Forgejo/git
|
||||||
|
- type: bind
|
||||||
|
source: /mnt/backupSD/Forgejo/gitea
|
||||||
|
target: /dest/Forgejo/gitea
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- CRON_TASK_1=0 3 * * * rsync -a --delete /source/Medias/ /dest/Medias/
|
||||||
|
- CRON_TASK_2=0 3 * * * rsync -a --delete /source/Immich/ /dest/Immich/
|
||||||
|
- CRON_TASK_3=0 3 * * * rsync -a --delete /source/NextCloud/ /dest/NextCloud/
|
||||||
|
- CRON_TASK_3=0 3 * * * rsync -a --delete /source/Forgejo/git /dest/Forgejo/git
|
||||||
|
- CRON_TASK_3=0 3 * * * rsync -a --delete /source/Forgejo/gitea /dest/Forgejo/gitea
|
||||||
|
entrypoint: crond -f -l 8
|
|
@ -36,7 +36,7 @@
|
||||||
- [ ] Configure public VPN for torrents
|
- [ ] Configure public VPN for torrents
|
||||||
- [ ] Add Navidrome + music download system
|
- [ ] Add Navidrome + music download system
|
||||||
- [ ] Add Audiobookshelf + audiobook download system
|
- [ ] Add Audiobookshelf + audiobook download system
|
||||||
- [ ] Add and configure backups on external disk
|
- [x] Add and configure backups on external disk
|
||||||
|
|
||||||
## Random dump
|
## Random dump
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue