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
# redmine-supybot-plugin / init.rb | |
require_dependency 'supy_issue_hook' | |
# redmine-supybot-plugin / lib / suppy_issue_hook.rb | |
class SupyIssueHook < Redmine::Hook::Listener | |
def controller_issues_new_after_save(context = { }) | |
subject = context[:issue].subject | |
project = context[:project].description |
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/sh | |
file_name=`date +%Y%m%d_%H%M`_svn.dump.gz | |
home=/home/subversion | |
svn=$home/svn | |
svnadmin dump $svn | gzip > $home/$file_name | |
smbclient //HS-DTGL5C9/share -U administrator -N -c "put ${home}/${file_name} /Backup/${file_name}" | |
rm $home/$file_name |
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
# | |
# Main | |
# | |
if __FILE__ == $0 | |
end |
NewerOlder