Batch of incremental copy


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Batch of incremental copy
# 1  
Old 01-30-2010
Batch of incremental copy

Hi Everybody

I have intalled new server at our LAN but I need special program or batch file to check two folders in different servers to make incremental copy.

can any one advice me to solve this problem.

Thank you
# 2  
Old 01-30-2010
You can use the diff(1) command to compare two directories. One of the folders would need to be NFS mounted to the other machine to enable you to do this.

You can use :
Code:
# find /path/to/sourcdirectory | cpio -pdmv /path/to/targetdirectory

To copy the contents of the sourcedirectory to the targetdirectory and only those files that are newer in the source directory or else don't yet exist in the target directory will get copied.

Or else take a look at rdiff or rsync and rdist?

Is that what you are after?
# 3  
Old 01-31-2010
Quote:
Originally Posted by TonyFullerMalv
You can use the diff(1) command to compare two directories. One of the folders would need to be NFS mounted to the other machine to enable you to do this.

You can use :
Code:
# find /path/to/sourcdirectory | cpio -pdmv /path/to/targetdirectory

To copy the contents of the sourcedirectory to the targetdirectory and only those files that are newer in the source directory or else don't yet exist in the target directory will get copied.

Or else take a look at rdiff or rsync and rdist?

Is that what you are after?
Thank you so much for your quick response
but can I call that (synchronization between two folders)?
# 4  
Old 01-31-2010
check out rsync.
# 5  
Old 01-31-2010
unison is another option you have. some of my co-workers use it happily
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Incremental logic

Hi Guys, am trying to write logic to do incremental value using linux Example: a=00.00.00.01 My b should be like this b=00.00.00.02 and when it reaches 99 my b should look like this b=00.00.01.99 Appreciate your help guys Please use CODE tags when displaying sample input, sample... (14 Replies)
Discussion started by: buddi
14 Replies

2. Shell Programming and Scripting

Incremental numbering?

Would it be possible for a script to duplicate a file and incrementally number it? File in: XXX_007_0580_xxxx_v0016.aep File out: XXX_007_0580_xxxx_v0017.aep If someone knows of a way I'd love to see it. Thanks! (7 Replies)
Discussion started by: scribling
7 Replies

3. Homework & Coursework Questions

incremental or full backup ???

Hi. Can someone tell me if the following script that i have made is a script for INCREMENTAL BACKUP or FULL BACKUP. My teacher told me that is doing an FULL BACKUP. • find /etc /var /home -newer /backups/.backup_reference > /backups/.files_to_archive • touch /backups/.backup_reference • tar... (1 Reply)
Discussion started by: bender-alex
1 Replies

4. Shell Programming and Scripting

FULL or INCREMENTAL ???

Hi. Can someone tell me if the following script that i have made is a script for INCREMENTAL BACKUP or FULL BACKUP. My teacher told me that is doing an FULL BACKUP. • find /etc /var /home -newer /backups/.backup_reference > /backups/.files_to_archive • touch /backups/.backup_reference • tar... (1 Reply)
Discussion started by: bender-alex
1 Replies

5. Shell Programming and Scripting

Executing a batch of files within a shell script with option to refire the individual files in batch

Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below. I am on a solaris server btw. Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose. ... (2 Replies)
Discussion started by: goddevil
2 Replies

6. Windows & DOS: Issues & Discussions

Incremental Backup

I have a folder /root/test in a centos 5.3 system. I want to take an incremental backup of the contents of the folder in the C:\Downloads folder of a windows system present in the same lan as the linux system. What are the ways of executing this plan? Kindly help (0 Replies)
Discussion started by: proactiveaditya
0 Replies

7. UNIX for Dummies Questions & Answers

incremental by 1

let says, i have this number as 000002080, i want to add 1 to make it 000002081, and then i want to add 1 to 000002082, add 1 to 000002083, 84. i=000002080 TOT=$(echo "scale=9; $i + 1" | bc) echo $TOT it shows 2081, i want to retain 000002081, 000002082, 000002082, 000002084. (2 Replies)
Discussion started by: tjmannonline
2 Replies

8. Shell Programming and Scripting

Incremental backup

Hi, I would like to create a daily incremental backup of a directory with all of the files within and add a timestamp (year-month-day) to the tar.gz file. I have the following, but it doesn't backup the inside files of the directory. #!/bin/bash tar -czf... (1 Reply)
Discussion started by: agasamapetilon
1 Replies

9. UNIX for Dummies Questions & Answers

incremental backup

Hi All.. i am trying to write a script which will give the incremental tar backup of all files with latest timestam. i tried with find -mmin -2 but if it takes half on hour or something to creat the tar itself, then no meaning in using the above command. so please help me to find the... (2 Replies)
Discussion started by: Usha Shastri
2 Replies
Login or Register to Ask a Question