Linux / UNIX Tech Support Forum
This is a discussion on rsync folder within the Shell scripting forums, part of the Development/Scripting category; Lets Suppose i have two servers. 1. Waseem Sayegh 2. Imran Anwar : IMRAN.COM : IMRAN.TV now in waseem server ...
|
Register free or login to your existing account and remove all advertisements. |
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Lets Suppose i have two servers.
1.Waseem Sayegh 2.Imran Anwar : IMRAN.COM : IMRAN.TV now in waseem server there is one folder e.g"/var/www/html/demo/app/log".Actually i want to rysnc "LOG"folder on my imran server. need ur guideness. regards |
| Sponsored Links | ||
|
|
|
||||
|
Quote:
rsync -r -a -v --delete rsync://backup-server.com/user/ /home/user/ A sample script Code:
#!/bin/bash MASTER="master-server-ip" DIR="/var/www/change-me" LDIR="/local/dir" SSH="/usr/bin/ssh" rsync -avrR --links --rsh=$SSH $MASTER:$DIR $LDIR How to use rsync for transferring files under Linux or UNIX | nixCraft How do I sync data between two Load balanced Linux/UNIX servers? | nixCraft
__________________
Raj Linux rulz. I have never turned back in my life ; I shall not do so today.. haha |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A script for Removing all the files inside a folder and its sub folder | vivekv | Shell scripting | 1 | 10-25-2007 01:44 PM |
| rsync pls help | linuxmanjusha | Web servers | 1 | 10-23-2007 11:12 AM |
| Rsync prblem pl. do favour, it's urgent | kasimani | Web servers | 4 | 02-22-2007 04:12 PM |
| Rsync prblem pl. do favour, it's urgent | kasimani | Networking, Firewalls and Security | 0 | 02-19-2007 10:27 AM |
| Require shell script using rsync | puppen | Shell scripting | 4 | 04-23-2006 12:52 AM |