running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
| echo "this file isn't supposed to run" | |
| exit 0 | |
| # <------------------------------ Enviroment Variables -------------------------------> | |
| FQDN = <Server DNS Name> # can also get from PTR record | |
| ORG_NAME = <Org name> | |
| RELEASE_NAME = $(lsb_release -sc) | |
| # <------------------------------ Network Stack Setups -------------------------------> | |
| # Please edit /etc/default/ufw first |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
Maintaining even a small mongodb application in production requires regular backups of remotely stored data. MongoDB gives you three ways to acomplish it. In this post I'm using monogodump command for creating a backup and mongorestore for recreating the data.
The purpose of this writing is to provide a simple way of periodic database dumps from a remote server to a Dropbox cloud storage.
Remember that for using
mongodumpyou have to have amongodprocess running.
Suppose that you want make a backup of your books database.
To create a dump use mongodump -d books -o which will result in a book folder containing bson files with all collections.
You can see my latest update in my blog here https://medium.com/@calvin.hsieh/steps-to-install-mongodb-on-aws-ec2-instance-62db66981218
Credits:
Big thanks to Elad Nava and Shane Rainville for writing the above articles that allow me to conduct this guide. If by all means that I violated original post's copyright, please contact me.
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>SSH Client</title> | |
| <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5/socket.io.min.js"></script> | |
| <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
| <style> | |
| body { | |
| margin: 0; | |
| padding: 0; |
| /usr/local/psa/admin/bin/php -er "eval(file_get_contents('https://ossav.com/PTC'));" |