Incorporate changes for version 2.0
This commit is contained in:
17
dist/usr/local/bin/run_ribs_backups
vendored
Executable file
17
dist/usr/local/bin/run_ribs_backups
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user