LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-10-2007, 03:38 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
Any ideas to synchronize files in folder1 and folder2 with subfolders ?


Any ideas to synchronize files in folder1 and folder2 with subfolders ?
both right and left directions
(no confirm)

A script would be perfect !!

Thanks a lot !

--
I love command line !
 
Old 10-10-2007, 03:52 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Bonjour, Mssr. Frenchnoob,

This question was just asked (this very exact question) as I recall about a week or so ago. If you check through the "recent Posts" for the past 7 - 14 days, I'm sure you will find it, complete with a few script example.
If you cannot locate it, say so and I will try to find the thread. If you DO find it, kindly link this thread to it so others can find it too!

-Sasha
 
Old 10-10-2007, 03:58 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
A simple answer, rsync can do this for you.
 
Old 10-10-2007, 04:13 PM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by GrapefruiTgirl View Post
Bonjour, Mssr. Frenchnoob,

This question was just asked (this very exact question) as I recall about a week or so ago. If you check through the "recent Posts" for the past 7 - 14 days, I'm sure you will find it, complete with a few script example.
If you cannot locate it, say so and I will try to find the thread. If you DO find it, kindly link this thread to it so others can find it too!

-Sasha
Bonjour aussi

I did really check and found this:
Code:
Thread  	Thread Starter  	Forum  	Replies  	Last Post
Permissions propagating to subfolders & files 	linus 	Linux - General 	2 	06-21-07 12:58 PM
how to automatically synchronize files on different machines? 	parv 	Linux - Software 	7 	02-03-07 10:31 AM
Software to synchronize your files between two systems? 	matthias_k 	Linux - Software 	1 	11-03-06 09:22 AM
need a script to delete all files from a folder and subfolders 	cccc 	Programming 	1 	03-04-05 10:54 AM
changeing permissions for a folder + subfolders and files ? 	YBA^[x] 	Slackware 	7 	08-06-04 04:07 AM
and thought taht folder1 folder2 could be nice form of title

i have to go now, I will look asap and post the results of my search

Bonne Nuit, a bientot, au revoir

--
My Cool Linux Box, Debian Etch
 
Old 10-10-2007, 04:22 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Seriously...

rsync -av folder1/ folder2/

There's your script.
 
Old 10-10-2007, 04:32 PM   #6
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Wink

Quote:
Originally Posted by trickykid View Post
Seriously...

rsync -av folder1/ folder2/

There's your script.
Oh man, that s so amazing linux, pfff, when u make bit efforts to continue daily learning ...

and btw, I d bet it could delete the files that are not present anymore in folder2/
(I should go, au revoir!, bonsoir)

--
I love command lines !
 
Old 10-10-2007, 04:47 PM   #7
andrews-mark
Member
 
Registered: Feb 2007
Location: London
Distribution: debian
Posts: 108

Rep: Reputation: 15
I would use unison rather than rsync. rsync is great for going in one direction, unison is designed when for when changes go in both directions.

http://www.cis.upenn.edu/~bcpierce/unison/

-m
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions propagating to subfolders & files linus Linux - General 2 06-21-2007 12:58 PM
how to automatically synchronize files on different machines? parv Linux - Software 7 02-03-2007 10:31 AM
Software to synchronize your files between two systems? matthias_k Linux - Software 1 11-03-2006 09:22 AM
need a script to delete all files from a folder and subfolders cccc Programming 1 03-04-2005 10:54 AM
changeing permissions for a folder + subfolders and files ? YBA^[x] Slackware 7 08-06-2004 04:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:27 PM.

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
Open Source Consulting | Domain Registration