19 lines
448 B
Bash
19 lines
448 B
Bash
|
|
# EXAMPLE CRONJOB:
|
|
# 0 2 * * * /mnt/cloud/nc_dmcl/btrbk/btrfs_bckp.sh > /var/log/backup/btrfs_log.log
|
|
|
|
|
|
# stop services and snapshot
|
|
|
|
#Backup
|
|
# apt install btrbk
|
|
btrbk -c /my_btrbk_conf/btrbk.conf run
|
|
btrfs device stats /mnt/cloud/
|
|
btrfs device stats /mnt/backup/
|
|
btrfs device stats /mnt/db_ssd/
|
|
|
|
# send mail with logfile
|
|
docker run --rm -v /var/log/backup/:/attachment mcr.microsoft.com/powershell pwsh /external/sendEmail.ps1
|
|
|
|
# start services
|
|
|