Skip to content

Tag Archives: server

Ubuntu Server Firewall Script

20-Jun-10

# Clear any existing firewall stuff before we start iptables –flush iptables -t nat –flush iptables -t mangle –flush # As the default policies, drop all incoming traffic but allow all # outgoing traffic. This will allow us to make outgoing connections # from any port, but will only allow incoming connections on the ports [...]

Rsync your old files to your new server

05-Nov-09

Rsync your old files to your new server. From your new server run the following commands: rsync -vrplogDtH –progress -e ssh root@192.168.0.1:/home/ss/public_html/ /home/ss/public_html/

RSYNC to backup your home DIR from your OLD server

31-Oct-09

RSYNC to backup your home DIR from your OLD server #!/bin/bash #admin@serversignature.com rsync -vrplogDtH –exclude=virtfs/ –progress -e ssh root@192.168.0.1:/home/ home/ IF USING SSH Port = 2222 rsync -ave ‘ssh -p 2222′ username@192.168.0.1:/home/ /home/

Quick rsync to backup your home dir and mysql databases

31-Oct-09

Quick rsync to backup your home dir and mysql databases. #!/bin/bash #RUN the below script using “nohup – run a command immune to hangups, with output to a non-tty” #admin@serversignature.com IP=192.168.0.1 rsync -vrplogDtH –exclude=virtfs/ –progress -e ssh root@$IP:/home/ /home/ rsync -vrplogDtH –progress -e ssh root@$IP:/var/lib/mysql/ /var/lib/mysql/ #Backup one large DB rsync -vrplogDtH –progress -e ssh [...]