Created
December 15, 2011 12:43
-
-
Save Oshuma/1480971 to your computer and use it in GitHub Desktop.
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 | |
prev_dir=`pwd` | |
log_dir="/opt/workers/ios/nodelogger" | |
output="$HOME/mlogs/iphone_logs-`date +%Y%m%d-%H%M%S`.tar.gz" | |
cd $log_dir | |
echo -e "\nCompressing '$log_dir/logs' to $output" | |
tar zcf $output logs/ | |
cd $prev_dir |
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 | |
blackberry_json="blackberry_logs-`date +%Y%m%d-%H%M%S`.json" | |
iphone_json="iphone_logs-`date +%Y%m%d-%H%M%S`.json" | |
echo -e "\nExporting BlackBerry logs to $blackberry_json..." | |
mongoexport --db mobile_logs --collection blackberry_logs --out $blackberry_json | |
echo -e "\nExporting iPhone logs to $iphone_json..." | |
mongoexport --db mobile_logs --collection iphone_logs --out $iphone_json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment