Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Transfering files from one server to another. Post 40493 by Alan Bird on Tuesday 16th of September 2003 05:32:45 PM
Old 09-16-2003
Question Transfering files from one server to another.

My oracle database is generating archive logs. I want to copy those archive logs over to backup server on a regular basis. I know how to create an ftp job and I can put it in my crontab. My problem is that I don't know how to send the files just once instead of sends all the files in the directory over and over.

Example: I have archives 1, 2 & 3 when the cron job starts. It sends archives 1, 2 & 3 over to the other server. Now 6 hours later when the cront job runs again there are archives 1, 2, 3, 4 & 5. How do I make the program know that I have already sent over 1, 2 & 3 so that is only sends 4 & 5? I am thinking that if the ftp could return the contents of the directory on the backup server then some how compare what is in the directories of the two servers and only send over the difference that would solve my problem. I know that I can do a dir to find out what is over there but I don't know how to handle what comes back and then compareing them. Does any one have any ideas or am I on the wrong track entirelly? I appericate your help.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Transfering files

Hi all. 1. How can i copy files from one unix system to another. should i use ftp? so How? 2. How can i create an archive whose extention is tar.gz? and how can i decompress them later? 3. WHat is RPM ? what does it stands for? Thanks (5 Replies)
Discussion started by: vbs
5 Replies

2. UNIX for Dummies Questions & Answers

transfering files unix to pc

Hi, I'm an intern at a business that just acquired a company that ran off the unix system. They have files on this workstation that they would like to move to a windows XP pro system, but no one (myself included) has enough unix knowledge to know how to do this. It's my understanding that this can... (8 Replies)
Discussion started by: intern
8 Replies

3. Shell Programming and Scripting

automatic transfering of files using scp

I'm in the process of writing a shell script with copies files from one linux box to another using scp. I wish to run this through a cronjob so it cannot be interactive. This is what I have so far. #!/bin/sh PASSWD='passswd' dateset=$( date | awk '{print $2 $3 $6}') for dates in $dateset;... (1 Reply)
Discussion started by: tcruicksh
1 Replies

4. IP Networking

Transfering file from unix server to a windows pc

Is there a way to transfer files from unix server to windows directory,other than ftp? (1 Reply)
Discussion started by: Preet
1 Replies

5. Shell Programming and Scripting

transfering files with a specific name to a folder

Hi I want to transfer all files in a folder to another folder. So the files have a ending of .lop.txt thanks (4 Replies)
Discussion started by: gisele_l
4 Replies

6. UNIX for Advanced & Expert Users

FTP is not transfering pdf files correctly

HI Experts, I have following code to FTP all pdf files from remote (win sever) to Linux box. function LsFiles(){ ftp -n -i -v $HT <<end_ftp user $USR $PASSWD cd $DIRNAME ls "-lrt *.pdf" bye end_ftp } LsFiles > list_of_files.txt function getFiles(){ ftp -n -i -v $HT <<end_ftp... (2 Replies)
Discussion started by: dipeshvshah
2 Replies

7. Shell Programming and Scripting

ftp script for transfering files

Hi, I am new to shell scripting,and i was planning to write a script that will FTP files to destination folder. All configuration should be done through a properties files.I was planning that All configuration should be done through a properties files. and finally the output should be... (0 Replies)
Discussion started by: rahul125
0 Replies

8. Shell Programming and Scripting

Transfering files from one to another machine in different directories

I have to write script in which I have to copy files from different directories on machine A and put them in corresponding directories in machine B. Here machine A remains same per project and machine B keeps on changing. Is there any way through which I can do this using single remote... (1 Reply)
Discussion started by: madhurjajoo
1 Replies

9. Shell Programming and Scripting

FTP using script not working (for transfering file from a remote unix server to windows PC.)

hi, Im using the following code for FTP #!/usr/bin/ksh ftp -v -n "10.29.45.11" << cmd user "mahesva" "mahesva123" get rtl.tar quit cmd Below is the log when i run the above code ********************************** Connected to 10.29.45.11. 220 (vsFTPd 2.0.1) 530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies

10. Linux

UNIX - FTP changing the mode while transfering the files

Hi, I have to transfer my files using FTP. Few files are in Zipped format (.Z) and few are in .PX format . For zipped files, we need to change the mode to binary while transferring the files whereas for the px files the mode should be ascii. Eg: sample1.z sample2.z sample3.z sample.px ... (2 Replies)
Discussion started by: vidlaks
2 Replies
REARJ(1)							   Arj Software 							  REARJ(1)

NAME
rearj - Converts other archive formats to .arj files SYNOPSIS
rearj [options] <!listfile(s)|filespec(s)|wildname(s)> DESCRIPTION
The rearj command can repackage other archive formats to arj. OPTIONS
-+ Ignore REARJ_SW variable. -a[suffix] Convert archives within archives ("*" for all formats). -bcommand Execute command before extracting files. -ccommand Execute command on extracted files before counting them. -d Delete original archives. -e No error switch. -f Convert diskette archives. -g Skip creation of output archive. -i[name] Check integrity of rearj program. -j Skip if output archive size is larger than the original. -k Skip archive timestamping. -l[name] Write append log file (default name is rearj.log). -m[date] Select archives before date in YYMMDDHHMMSS format. -n[date] Select archives on or after date in YYMMDDHHMMSS format. -o Allow overwrite of existing target archive. -p Ignore long filenames under Windows 95. -q Query for each archive to convert. -r Recurse through subdirectories. -s Skip verify of file count and total size. -tsuffix Create suffix type archives. -u[bak] Allow update of archive with backup (default is BAK). -v Execute configured command on extracted files. -wdir Assign work directory. -x[!]file Exclude by filename, wildname, or listfile. -y[text] Delete output archive and write text to log (testing mode). -z Simulate operation. ENVIRONMENT
REARJ_SW If set, its value will be used as command line options. EXIT STATUS
0 Success. 1 File not found. 2 File is not a configured archive type. 3 Target archive already exists. 4 Not enough disk space. 5 User skipped or user did not select update option. 6 UNPACK command error. 7 PACK command error. 8 Target cannot support directories. 9 Wrong file count. 10 Wrong total size. 11 Internal archive REARJ error. 12 Rename archive error. 13 Invoked -v command error (found a virus?). 14 Output archive is larger. EXAMPLE
rearj * -r -d Convert all archives to ARJ format, searching all subdirectories, deleting original archives. SEE ALSO
arj(1). AUTHOR
This manual page was written by Ola Lundqvist <opal@debian.org> in pod format, then converted by Guillem Jover <guillem@debian.org> to nroff format. 3.10 2003-03-10 REARJ(1)
All times are GMT -4. The time now is 09:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy