Last active
November 25, 2021 17:42
-
-
Save Gopinathp/82684d169fd41fff20e7ad08d7259b6e to your computer and use it in GitHub Desktop.
cron schedule bash script
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
#!/bin/bash | |
. /home/gopinath/.bashrc | |
cd $HOME | |
export JAVA_HOME=/home/gopinath/.sdkman/candidates/java/current | |
export PATH=/usr/local/bin:$PATH | |
export PATH=/usr/bin:$PATH | |
export PATH=/home/gopinath/.sdkman/candidates/java/current/bin:$PATH | |
export PATH=/home/gopinath/.sdkman/candidates/kotlin/current/bin:$PATH | |
export PATH=/home/gopinath/.sdkman/candidates/kscript/current/bin:$PATH | |
kscript /home/gopinath/backupper.kts -b prod_backups -d prod_db,client_db -v -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment