18 lines
597 B
Bash
Executable File
18 lines
597 B
Bash
Executable File
#!/bin/bash
|
|
# run_ribs_backups
|
|
#
|
|
# This script is intended to facilitate running ribs backups using cron.
|
|
# To run system configs, either create a link to this script in one or
|
|
# more of the /etc/cron.* directories or add a line calling this script
|
|
# to the /etc/crontab file. That will run all enabled system configs.
|
|
# To run user configs, the user should add a line calling this script
|
|
# to their personal crontab. That will run all enabled user configs for
|
|
# that user.
|
|
|
|
log_path="/var/log/ribs"
|
|
log_fn="ribs_$(date +%Y%m%d%H%M%S).log"
|
|
|
|
/usr/local/bin/ribs > "$log_path"/"$log_fn" 2>&1
|
|
|
|
|