LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2009, 12:08 PM   #1
matthes138
LQ Newbie
 
Registered: May 2009
Posts: 6

Rep: Reputation: 0
copying files


Is there a way to copy files between to servers the question is, i have modified files on one server in a bunch of different directories. Now Id like to just them not the rest of the files to the other server. I have tagged all the changes with a comment in the files. There are many files and many directories thatthese files sit in and dont want to copy each one at a time. Any help is appriciated!!
 
Old 05-29-2009, 12:17 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
There are easier ways to share these files:
  • mount the directory remotely using nfs
  • mount the directory remotely using sshfs
  • use an RCS, like svn, git, mercurial or bazaar
  • even rsync can help here
 
Old 05-29-2009, 12:24 PM   #3
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
If you've commented them, you could very easily script a solution to check the files for that comment, if true, copy it with somehting like 'scp' (Though should you do that, you'll probably want to set ssh logins to certificate, not password, else you'll still have to put the password in each time)
 
Old 05-29-2009, 01:18 PM   #4
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
matthes138...nothing understandable...
 
Old 05-29-2009, 01:37 PM   #5
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
rsync will allow you to sync only files that have changed. Furthermore, you can do it using blank ssh keys. rsync is also used very much on web clusters for the same exact reason of syncronizing files over multiple clusters. Google rsync.
 
  


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
Copying files YunaFF102 Linux - Newbie 4 07-21-2006 06:06 AM
Copying files rvsridhar Linux - General 5 03-23-2006 05:06 AM
copying files(s) in c climbingmerlin Programming 7 10-27-2005 03:00 PM
need help with copying files Earl Parker II Linux - General 8 09-12-2005 09:54 AM
copying files neozero62 Linux - Newbie 1 11-23-2003 06:38 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration