zip

To install zip on Ubuntu/Debian, run

To unzip a file, run

To unzip to specific directory, run

zsh

Install zsh in Debian/Ubuntu

Install OhMyZsh

See shell

server-backup-now

Configure Server Backup in R1Soft Backup Manager

After adding Server to R1Soft Server Backup Manager, you need to configure it.

Test Connection

Verify backup manager can connect to protected machine. If you can’t connect, you need to open TCP port 1167 on firewall.

Click on Wheel icon > Test Agent Connection.

If backup manager cna connect to server, you will see

Running First Backup

You can click

Configure MySQL backup

Go to

You will be asked to enter MySQL server login details. I created a user with remote access permission with following command.

You may need to edit MySQL configuration and make it listen to public IP to allow R1Soft backup manager can connect to your MySQL server.

Back to r1soft

run same command on multiple tmux panes

If you want to run same command on multiple servers, you can use tmux synchronize-panes feature. This will be useful when you need to setup multiple servers, say install nginx/php/mysql on multiple servers.

You can create multiple panes in tmux. SSH into each of the servers from these panes. Now run

Now type

Whatever command you run on one of the pane will be executed on all panes. Be careful when you run server specific commands.

tmux create new window on current directory

When you start a new window or split pane on tmux, it always start with the directory from where you run tmux command.

I prefer it start with current working directory of active tmux window. To do this, edit file

Add

Auto Attach to tmux session on SSH

To start tmux and attach to existing connection on SSH in, edit file

Add

Method 2

You can use following command when connecting to remote sevrer.