-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
41 additions
and
19 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
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
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
16 changes: 16 additions & 0 deletions
16
images/dante-wiki/src/etc/cron.weekly/backup-start-weekly.sh
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,16 @@ | ||
#!/bin/sh | ||
|
||
# activate /etc/backup/backup-script.sh | ||
|
||
## | ||
## PARAMETERS supplied to the script: | ||
## | ||
# MODE Parameter 1: Which backup to generate. Values: sql or xml | ||
# TRANS Parameter 2: How to transport to the backup place. Values: rsync or ssh_stream (or aws_stream, github_stream and more) | ||
# FREQ Parameter 3: Identifies time stamp and kind of the dump. Eg: week-10 day-2024-07-28 or similar | ||
|
||
/etc/backup/backup-script.sh sql rsync "week_$(date +'%Y-%m-%d_%H-%M-%S')" | ||
/etc/backup/backup-script.sh xml ssh_stream "week_$(date +'%Y-%m-%d_%H-%M-%S')" | ||
|
||
/etc/backup/backup-script.sh sql aws-s3 "week_$(date +'%Y-%m-%d_%H-%M-%S')" | ||
/etc/backup/backup-script.sh xml aws-s3 "week_$(date +'%Y-%m-%d_%H-%M-%S')" |
This file was deleted.
Oops, something went wrong.
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
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,10 @@ | ||
#!/bin/sh | ||
|
||
# provides a trampoline mechanism for activating the virtual python environment | ||
# where pygmentize is installed and then invoking the connected pygmentize | ||
# need this since pygmentize wants ot be installed in virtual python and | ||
# latex looks for it in /usr/local/bin, but without invoking the virtual environment first | ||
|
||
source /opt/myenv/bin/activate | ||
|
||
/opt/myenv/bin/pygmentize $@ |