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 ! |
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 |
A simple answer, rsync can do this for you.
|
Quote:
I did really check and found this: Code:
Thread Thread Starter Forum Replies Last Post 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 |
Seriously...
rsync -av folder1/ folder2/ There's your script. ;) |
Quote:
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 ! |
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 |
All times are GMT -5. The time now is 08:52 PM. |