Collection of scripts used for data backup and snapshots, i.e. for btrfs and lizardfs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
281 B

#!/bin/bash
for f in hourly daily weekly monthly; do
sudo cp btrfs-snapshots.sh /etc/cron.$f/btrfs-snapshots;
done
if ! test -e /etc/btrfs-snapshots.conf; then
sudo tee /etc/btrfs-snapshots.conf > /dev/null <<EOF
HOURLY_DEL=4
DAILY_DEL=3
WEEKLY_DEL=2
MONTHLY_DEL=3
EOF
fi