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.
|
#!/bin/bash |
|
|
|
if ! test -x "$1"; then |
|
echo "ERROR: call $0 path/script" 1>&2 |
|
exit 1 |
|
fi |
|
|
|
for f in hourly daily weekly monthly; do |
|
name=${1##*/} |
|
echo "installing $1 to /etc/cron.$f/${name%.*}" |
|
sudo cp $1 /etc/cron.$f/${name%.*} |
|
done
|
|
|