LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Any ideas to synchronize files in folder1 and folder2 with subfolders ? (https://www.linuxquestions.org/questions/linux-general-1/any-ideas-to-synchronize-files-in-folder1-and-folder2-with-subfolders-590878/)

frenchn00b 10-10-2007 03:38 PM

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 !

GrapefruiTgirl 10-10-2007 03:52 PM

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

trickykid 10-10-2007 03:58 PM

A simple answer, rsync can do this for you.

frenchn00b 10-10-2007 04:13 PM

Quote:

Originally Posted by GrapefruiTgirl (Post 2920106)
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

trickykid 10-10-2007 04:22 PM

Seriously...

rsync -av folder1/ folder2/

There's your script. ;)

frenchn00b 10-10-2007 04:32 PM

Quote:

Originally Posted by trickykid (Post 2920142)
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 !

andrews-mark 10-10-2007 04:47 PM

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 12:54 PM.