-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.0.3 Fixed fusion-inv cron + file-backups cron
- Loading branch information
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# | ||
# Writter : Boudouma Mohamed Ilies (medilies) | ||
# Github repo: https://github.com/medilies/glpi | ||
# My Linkedin: https://www.linkedin.com/in/medilies/ | ||
# ----------------------------------------------------------------------------- | ||
|
||
# Script to create a cronjob for web directory backup | ||
echo "*/1 * * * * root /scripts/files_backer.sh" >/etc/cron.d/files_backer && | ||
chown root /etc/cron.d/files_backer && | ||
chgrp root /etc/cron.d/files_backer && | ||
chmod 0700 /etc/cron.d/files_backer && | ||
# crontab -u root /etc/cron.d/files_backer && | ||
/etc/init.d/cron restart | ||
|
||
# NOTE | ||
# Debian cron specific, Set a cron job | ||
# Just by putting a file with a cron job specification in /cron.d | ||
# And making the file readable by root | ||
# Then retarting cron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters