Skip to content

Category Archives: Rsync

rsync is an open source utility that provides fast incremental file transfer.

rsync all your home and mysql db to new server.

14-Nov-09

Some time you may want to backup your home directory and mysql databases to a new server, we can do that using rsync script. The below script when run from your new server will, rsync all your home dir to your new server. #!/bin/bash #by-admin@serversignature.com #Old Server IP IP=192.168.0.1 #Scrit is run from the new [...]

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 [...]

rsync backup to a central backup server

31-Oct-09

rsync backup to a central backup server with 7 day incremental We can use – `date +%A-%D` in the script. $ echo `date +%A-%D` Saturday-10/31/09 #!/bin/sh # This script does personal backups to a rsync backup server. You will end up # with a 7 day rotating incremental backup. The incrementals will go # into [...]