Plesk MySQL Daily Backup Script

Plesk MySQL Daily Backup Script

Create file With the following content Make it executable Set it to run as cronjob

cronjob

cronjob

crontab Start a program after reboot using cronjob Running wp-cron with cronjob Cronjob for Magento 1.9 set vi as default

Language

Language

perl: warning: Falling back to a fallback locale (“C.UTF-8”). On a Linux server, if the language is different, you can

cut

cut

How to cut lines separated by multiple spaces? Here is an example of cut command, that will remove all PHP

apt

apt

List all Dependencies for a package. Using apt-get to manage software Uninstalling Software in Debian Server apt policy apt show

MongoDB

MongoDB

MongoDB is an Open Source NoSQL database. https://www.mongodb.com/ Connecting to to MongoDB with user/pass Getting Started with MongoDB MongoDB delete

Rsync backup with X days retention

Rsync backup with X days retention

rsync is run on backup server, that login to remote servers and backup. Add following code Repeat the rsync/echo lines

lvm

lvm

vgcreate pvdisplay lvdisplay lvcreate Resize EC2 file system with LVM pvcreate Device /dev/sdb excluded by a filter Some related commands

iftop

iftop

iftop show bandwidth usage like top show cpu and memory usage. To see network usage, run If you have multiple

monit

monit

See gonit golang replacement for monit monit is a process monitoring service that monitor services, restart if required. https://mmonit.com/monit/ Install

rtorrent

rtorrent

rtorrent is a command line torrent client. https://github.com/rakshasa/rtorrent This can be run from SSH connection/terminal. CTRL + S Start torrent.

Mail

Mail

Open Source Mail Suits https://www.zimbra.org https://www.open-xchange.com https://kopano.io Complete Mail Server These software once installed will provide complete mail server including