Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Backups

RSync remote copy

Submitted by on November 19, 2005 – 10:35 pm

The following is an example of using rsync to perform a irectory copy between two hosts over the network.

1) rsync needs to be installed on source and destination nodes

2) both nodes need to be each other’s /etc/hosts

3) rsync needs to be in the basic PATH for default user’s (root’s shell); create a soft link for rsync in /usr/bin on both nodes to make sure that rsh finds it

//rsync -a –delete -v/

EXAMPLE:

/usr/bin/rsync -a -v -u –delete root@hostname:/IETM /IETM

IMPORTANT FLAGS:

-a archive mode (recursive copy with timestamping)
-v verbose output
-u update only (don't overwrite newer files on target node)
--delete delete items not on

Print Friendly, PDF & Email

Leave a Reply