Posts

Showing posts with the label rsync

RSYNC with Different Port

If SSH is not listening to the default port 22, then naturally we can not use RSYNC without specifying the SSH port. For example, if SSH is listening to port 4321, RSYNC can be used like this - # rsync -av -e "ssh -p 4321"   source_file   user@IP:/destination Hope it helps.

Backing up with RSYNC

Backing up with RSYNC RSYNC is a program that is widely used for backing up data. RSYNC is able to create full, as well as incremental backups, and is pretty easy to use. Moreover, RSYNC can also be used to backup data into remote machines. When backing up to remote machine, RSYNC can utilize SSH which means the communication is being protected by one of the world’s strongest protections. Here’s how RSYNC can be used – Objective All files in the directory /original needs to be backed up at /backup . The process must be repeated every 10 days. The directory /backup needs to be backed up at 192.168.10.254:/backup2 . The process must be repeated every 15 days. Phase 1: We are using the –a option for ‘ archive’ . Archive is used to preserve permissions. The –v option is used for ‘verbose’ output. root@firefly:~# ls -l /original/ total 0 -rw-r--r-- 1 root root 0 Dec 21 19:40 f1 -rw-r--r-- 1 root root 0 Dec 21 19:40 f2 -rw-r--r-- 1 root root 0 Dec 21 19:40 f3 ...