fix typo from test and add install.sh script

master
Marc Wäckerlin 7 years ago
parent ffde698626
commit 392f4e2046
  1. 2
      btrfs-snapshots.sh
  2. 5
      install.sh

@ -6,7 +6,7 @@ TMP_MNT=${TMP_MNT:-/var/tmp/btrfs-backup}
vols=() vols=()
del= del=
dryrun=0 dryrun=0
periodity=${a%/*} periodity=${0%/*}
periodity=${periodity##*/} periodity=${periodity##*/}
if [[ $periodity =~ ^cron\... ]]; then if [[ $periodity =~ ^cron\... ]]; then
periodity=${periodity#cron} periodity=${periodity#cron}

@ -0,0 +1,5 @@
#!/bin/bash
for f in hourly daily weekly monthly; do
sudo cp btrfs-snapshots.sh /etc/cron.$f/btrfs-snapshots;
done
Loading…
Cancel
Save