how to syncronize two folders in unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to syncronize two folders in unix
# 1  
Old 07-11-2005
how to syncronize two folders in unix

how to syncronize two folders in unix
the requirement is--->
only source folder changes should be replicated to destination. destination does not change and need not replicate to the source.
# 2  
Old 07-11-2005
"rsync" is the best!

this is the solution.
Code:
rsync -auv --delete SOURCE DESTINATION

if you don't want to delete files which doesn't exist in SOURCE folder, remove --delete option.
And this tool is really useful. I use this for backing up files.
Code:
rsync -auv --delete Documents /Volumes/Euler04\'s\ iPod/Backup

This command syncronizes Documents to Backup folder in my iPod. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find and delete files and folders which are n days older from one unix server to another unix server

Hi All, Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older. Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Discussion started by: sachinkl
2 Replies

2. Shell Programming and Scripting

Help to move folders, subfolders and files from unix to windows

Hi Unix Gurus, I am able to copy only files that exist in the parent folder. My parent folder has sub folders and within sub folders there are lots files. I need to copy folder, sub folders and files from Unix to the remote windows SFTP location. The directory structure is something like... (1 Reply)
Discussion started by: shankar1dada
1 Replies

3. UNIX for Dummies Questions & Answers

finding files in unix and excluding certain folders

hi good day I am using redhat linux. Is there a better utility than the 'find' command to search for files I am trying to search through and enitre directory such as /repos for a files that have 'UAP' in it. However there are some '.step' folders littered throughout the /repos folder at varying... (8 Replies)
Discussion started by: johnstrong
8 Replies

4. Shell Programming and Scripting

Recursive Replication of Unix folders to Windows

Requirements: ftp files recursively from unix to windows. Replicate directory paths on unix (source) to windows (destination) and place files in their respective folders. There are no set number of files per directory nor fix number of dirA or dirB etc.... Source OS: Solaris... (5 Replies)
Discussion started by: mlv_99
5 Replies

5. UNIX for Dummies Questions & Answers

Delete folders and files in it - UNIX

I need to delete a folder and files in it of yesterdays and simply put this in cron. Folder name - "2010-03-2010" File name - "eprod_06_23.dmp" and "eprod_06_23.exp" Actually this folder and file is been created by a script which takes a backup of DB everyday.Thats why it creates folder and file... (3 Replies)
Discussion started by: j_panky
3 Replies

6. Shell Programming and Scripting

Parallel execution of script not syncronize

I am haveing 2 scripts, 1st script calls 2ed script for each parameter.(parameters are kept in a different txt file) 1st script for x in `cat Export_Tables_List.txt` do sh Exp_Table.sh $x & done echo -e "1) following tables are successfully exported : \n" > temp cat... (1 Reply)
Discussion started by: sbmk_design
1 Replies

7. Windows & DOS: Issues & Discussions

Copy folders and subfolders from unix to windows

Sir From a unix machine some folders and their folders have to be copied to windows XP PC. Please help me with a batch file or a shell script. I am new to the the shell and batch files. Thanks in anticipation. sastry (3 Replies)
Discussion started by: chssastry
3 Replies

8. Shell Programming and Scripting

Syncronize Directories

Anyone have a script that will syncronize two local directories so that if a file up dated in Folder A, then Folder B will be updated and vice versa? (1 Reply)
Discussion started by: yankee428
1 Replies

9. Shell Programming and Scripting

Php script that copies Unix folders?

I work as a website designer where I work on different directories on a server but my boss doesnt give me root permission for security reasons. So I have a temporary folder where I work and he copies the files over as he has root permission. The command he uses is usually like: cp -fR... (4 Replies)
Discussion started by: edtech
4 Replies

10. Filesystems, Disks and Memory

Sun UNIX Files & Folders listing

Hi guys, i'm new to UNIX and only know a small amout about it, but have just had some changes at work which now require me to interact with and work on SUN Unix systems often. I have reasonable knowledge of PC's but hope that you will be able to help me with these questions. Part1. I would like... (3 Replies)
Discussion started by: Scrat
3 Replies
Login or Register to Ask a Question