LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-18-2005, 02:10 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
auto ssh, and the rsync


Hi guys, I would like to findout how should i go about allowing

1) auto ssh from server 1 into server 2

2) following that, was thinking of doing rsync or scp to move files over automatically using cron.. thus i believe i should do the auto ssh thingy first...

many thanks!
 
Old 08-18-2005, 03:00 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Take a look at these LAs:
1) http://www.linuxquestions.org/questions/answers/79
2) http://www.linuxquestions.org/questions/answers/80
 
Old 08-22-2005, 10:53 PM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by david_ross
Take a look at these LAs:
1) http://www.linuxquestions.org/questions/answers/79
2) http://www.linuxquestions.org/questions/answers/80
I will, thanks!
 
Old 08-24-2005, 02:30 AM   #4
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
regarding rsync, i use --exlude-from "filename" to exclude certain files/folders with the stipulated folder. but what about if I only want to include a certain set of files and folders within that stipulated folder?

How do I restrict?

Update:

I understand it uses include-from now but am wondering how do I specify the exact file/folders i want to sync in a specified folder? don't wanan try it and risk moving huge chunk of files...

cuurently its
Quote:
rsync -rav --stats -e ssh --delete --timeout=70 /home/myweb/wwwroot/index.html 192.168.10.201:/home/myweb/wwwroot/
That's for one file

I want to move 2 files and a couple of sub-folders in /home/myweb/wwwroot to the other server with the same location

if i specify the include-from, will it just listen to what include-from says.. or i still have to manually have an --exclude-from?

Last edited by Swakoo; 08-24-2005 at 05:36 AM.
 
Old 08-25-2005, 04:43 AM   #5
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
been testing.. and now need to check with you guys

the difference between /* and /**

I read the man but catch no ball..

i am trying to rsync just a couple of folders and files... so in the --exclude-from file i specifed the '+' for those folders and files (since i ran it with -r) at the end of it, i just put both /* and /** under '-' with the intention of having the line ignoring EVERYTHING recursively in the folder except those mentioned in '+'

correct...?

So far so good.. but i cant understand the difference between the 2
 
Old 08-25-2005, 06:00 AM   #6
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 36
When rsyncing with slackware site my exclude file includes the lines:
Code:
bootdisk/
pasture/
source/
This results in those specific directories being ignored. If you had or manually placed files in those specific directories and use --delete-after with rsync it will NOT delete your files in those directories.
The exclude file also includes:
Code:
netscape*
This results in any file name beginning with 'netscape' not being synced from ANY directory.
My include file contains:
Code:
bare.i
While the entire directory bootdisk was to be excluded this line overrides that and will copy the bare.i file (actually from any directory).

Never used /* and haven't man'd to see if /* is legit or what it means.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync and ssh? IchBin Linux - Newbie 4 02-13-2005 03:41 PM
rsync and ssh port ohcarol Linux - Software 2 12-22-2004 10:29 AM
Rsync vs ssh satimis Linux - Software 7 04-04-2004 06:58 AM
Rsync and SSH Phaethar Linux - Software 3 03-22-2004 03:18 PM
SSH and RSYNC problem pixie Linux - General 2 03-02-2004 11:02 AM


All times are GMT -5. The time now is 06:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration