snapshots crontab

This commit is contained in:
teldra 2021-03-13 12:55:26 +01:00
parent 3f90905e3c
commit ae5279acf8
1 changed files with 4 additions and 2 deletions

View File

@ -85,7 +85,6 @@ fi
echo "transaction_log /var/log/btrbk.log" > "${dest}"/etc/btrbk/btrbk.conf
echo "lockfile /tmp/btrbk.lock" >> "${dest}"/etc/btrbk/btrbk.conf
echo "stream_buffer 512m" >> "${dest}"/etc/btrbk/btrbk.conf
echo "incremental yes" >> "${dest}"/etc/btrbk/btrbk.conf
echo "btrfs_commit_delete after" >> "${dest}"/etc/btrbk/btrbk.conf
echo "timestamp_format long" >> "${dest}"/etc/btrbk/btrbk.conf
@ -93,9 +92,12 @@ echo "noauto yes" >> "${dest}"/etc/btrbk/btrbk.conf
echo "volume /var/lib/backup/quelle/" >> "${dest}"/etc/btrbk/btrbk.conf
echo " group snapshot all" >> "${dest}"/etc/btrbk/btrbk.conf
echo " snapshot_dir snapshot" >> "${dest}"/etc/btrbk/btrbk.conf
echo " snapshot_preserve_min latest" >> "${dest}"/etc/btrbk/btrbk.conf
echo " snapshot_preserve_min 4h" >> "${dest}"/etc/btrbk/btrbk.conf
echo " snapshot_preserve no " >> "${dest}"/etc/btrbk/btrbk.conf
echo " subvolume void-rootfs" >> "${dest}"/etc/btrbk/btrbk.conf
echo " subvolume home" >> "${dest}"/etc/btrbk/btrbk.conf
mkdir -p "${dest}"/var/spool/cron/
echo "0 */2 * * * /usr/bin/btrbk -q run snapshot" >> "${dest}"/var/spool/cron/root
module end