Sponsored Content
Top Forums UNIX for Advanced & Expert Users Best way to transfer files to remote FTPS server instead of local FTPS server Post 302999439 by rbatte1 on Tuesday 20th of June 2017 09:39:18 AM
Old 06-20-2017
I will write this assuming that the place they are generated/written is Site A and they have clients in Site B.

Even though they two sites may only be 20 miles apart, you may find that there is a much smaller link between the sites. It is common to have 100Mb network at both sites, but only a 2Mb link between them. For small files being read at Site B that is not a problem. The issue is with larger files. I would suggest having a process to get a copy of files to Site B. You could implement some logic like this:-
  • When a large file is written to Site A, you should save a timestamp in a reference file and begin a copy to Site B. You can copy however you like, be that (s)ftp, rcp/scp, rsync or anything else that works for you.
  • When reading a larger file at site B, read the Site A reference file first and get the timestamp, comparing it with the timestamp of the local file. If the Site B file is up to date, read the local file; if not then read the Site A file.

An alternate may be to remove the Site B file when a new file is written to Site A and atomically copy the file to Site B. That way the Site B client just has to read the Site B file. If that fails (i.e. there is no file) then read the Site A file.



Would either of these work for you?

I hope that it helps,
Robin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP multiple files from remote server to local server

Hi, I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Discussion started by: berlin_germany
2 Replies

2. HP-UX

Transfer file from local unix server to remote server

want to remove the thread thanks (2 Replies)
Discussion started by: indira
2 Replies

3. Shell Programming and Scripting

Transfer file from local unix server to remote server

want to remove this thread. thanks (2 Replies)
Discussion started by: indira
2 Replies

4. UNIX for Dummies Questions & Answers

compare zip files from a local to remote server

Good evening I need your help pease I know there are 2 commands(diff, or cp) to compare files in a directory. but the question arises: 1. can i compare zip files or ive got to unzip them? 2. how can i compare 2 files from a local to a remote server? (is there any special commad or ive got... (4 Replies)
Discussion started by: alexcol
4 Replies

5. UNIX for Dummies Questions & Answers

How to copy files from remote server to local?

Hi experts, I 'm newbie to unix world, now I have task to copy the latest files from remote server to my local. I believe this must be very common request in this community. I want you do it one more time for me please. My requirement is something like this: I receive files in the below... (3 Replies)
Discussion started by: parpaa
3 Replies

6. Solaris

Script to get files from remote server to local server through sftp without prompting for password

Hi, I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script. Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 Replies

7. UNIX for Dummies Questions & Answers

Lftp for a remote server which uses FTPS

Hi All, I am new to SHell scripting, can someone please help me with the below requirement. 1) LFTP a file to a remote server which supports FTPS. My current enviroment is Sun Solaris 5.10 2) I need to incorporate this in a shell which is currently sending files to a server that accepts... (1 Reply)
Discussion started by: subbu
1 Replies

8. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

9. Shell Programming and Scripting

Shell scripting to transfer files from one to another server through ftps

Hi Guyz ,, I'm an ERP functional guy , I really need to automate a script which required a shell script but have a little knowledge in shell scripting. I need my generated files to be zipped first in one directory lets say (xyz) and then it needs to transfer another ftp server in... (3 Replies)
Discussion started by: Shogundion
3 Replies

10. Shell Programming and Scripting

File transfer using FTPS(SSL)

Hi Team, I am currently working on an integration project where in we have planned to receive files from an external source onto our system via FTPS(SSL). I am new to this part and would like to know the points for consideration and the points to learn to get this done. The files we receive from... (1 Reply)
Discussion started by: Rads
1 Replies
VOS_LISTVLDB(1) 					       AFS Command Reference						   VOS_LISTVLDB(1)

NAME
vos_listvldb - Displays a volume's VLDB entry SYNOPSIS
vos listvldb [-name <volume name or ID>] [-server <machine name>] [-partition <partition name>] [-locked] [-quiet] [-nosort] [-cell <cell name>] [-noauth] [-localauth] [-verbose] [-encrypt] [-noresolve] [-help] vos listvl [-na <volume name or ID>] [-s <machine name>] [-p <partition name>] [-lock] [-q] [-nos] [-c <cell name>] [-noa] [-loca] [-v] [-e] [-nor] [-h] DESCRIPTION
The vos listvldb command formats and displays information from the Volume Location Database (VLDB) entry for each volume specified. The output depends on the combination of options supplied on the command line. Combine options as indicated to display the desired type of VLDB entries: o Every entry in the VLDB: provide no options. o Every VLDB entry that mentions a certain file server machine as the site for a volume: specify the machine's name as the -server argument. o Every VLDB entry that mentions a certain partition on any file server machine as the site for a volume: specify the partition name as the -partition argument. o Every VLDB entry that mentions a certain partition on a certain file server machine as the site for a volume: combine the -server and -partition arguments. o A single VLDB entry: specify a volume name or ID number with the -name argument. o The VLDB entry only for the volumes with locked VLDB entries found at a certain site: combine the -locked flag with any of arguments that define sites. OPTIONS
-name <volume name or ID> Specifies either the complete name or volume ID number of a volume of any of the three types. -server <server name> Identifies the file server machine listed as a site in each VLDB entry to display. Provide the machine's IP address or its host name (either fully qualified or using an unambiguous abbreviation). For details, see vos(1). This argument can be combined with the -partition argument, the -locked flag, or both. -partition <partition name> Identifies the partition (on the file server machine specified by the -server argument) listed as a site in each VLDB entry to display. Provide the partition's complete name with preceding slash (for example, "/vicepa") or use one of the three acceptable abbreviated forms. For details, see vos(1). This argument can be combined with the -server argument, the -locked flag, or both. -locked Displays only locked VLDB entries. This flag can be combined with the -server argument, the -partition argument, or both. -quiet Suppresses the lines that summarize the number of volumes listed and their status, which otherwise appear at the beginning and end of the output when the output includes more than one volume. -nosort Suppresses the default sorting of volume entries alphabetically by volume name. -cell <cell name> Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see vos(1). -noauth Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see vos(1). -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The vos command interpreter presents it to the Volume Server and Volume Location Server during mutual authentication. Do not combine this flag with the -cell argument or -noauth flag. For more details, see vos(1). -verbose Produces on the standard output stream a detailed trace of the command's execution. If this argument is omitted, only warnings and error messages appear. -encrypt Encrypts the command so that the operation's results are not transmitted across the network in clear text. This option is available in OpenAFS versions 1.4.11 or later and 1.5.60 or later. -noresolve Shows all servers as IP addresses instead of the DNS name. This is very useful when the server address is registered as 127.0.0.1 or when dealing with multi-homed servers. This option is available in OpenAFS versions 1.4.8 or later and 1.5.35 or later. -help Prints the online help for this command. All other valid options are ignored. OUTPUT
If the output includes more than one VLDB entry, by default the first line reports which file server machine, partition, or both, houses the volumes. The final line of output reports the total number of entries displayed. Including the -quiet flag suppresses these lines. By default, volumes are sorted alphabetically by volume name. Including the -nosort flag skips the sorting step, which can speed up the production of output if there are a large number of entries. The VLDB entry for each volume includes the following information: o The base (read/write) volume name. The read-only and backup versions have the same name with a ".readonly" and ".backup" extension, respectively. o The volume ID numbers allocated to the versions of the volume that actually exist, in fields labeled "RWrite" for the read/write, "ROnly" for the read-only, "Backup" for the backup, and "RClone" for the ReleaseClone. (If a field does not appear, the corresponding version of the volume does not exist.) The appearance of the "RClone" field normally indicates that a release operation did not complete successfully; the "Old release" and "New release" flags often also appear on one or more of the site definition lines described just following. o The number of sites that house a read/write or read-only copy of the volume, following the string "number of sites ->". o A line for each site that houses a read/write or read-only copy of the volume, specifying the file server machine, partition, and type of volume ("RW" for read/write or "RO" for read-only). If a backup version exists, it is understood to share the read/write site. Several flags can appear with a site definition: Not released Indicates that the vos release command has not been issued since the vos addsite command was used to define the read-only site. Old release Indicates that a vos release command did not complete successfully, leaving the previous, obsolete version of the volume at this site. New release Indicates that a vos release command did not complete successfully, but that this site did receive the correct new version of the volume. o If the VLDB entry is locked, the string "Volume is currently LOCKED", as well as (in OpenAFS 1.5.75 and later) one or more of the following strings: Volume is locked for a move operation Indicates that the volume was locked due to a vos move or a vos convertROtoRW command. Volume is locked for a release operation Indicates that the volume was locked due to a vos release command. Volume is locked for a backup operation Indicates that the volume was locked due to a vos backup command. Volume is locked for a delete/misc operation Indicates that the volume was locked due to a vos delentry, vos addsite, vos remsite, vos changeloc, vos syncvldb, vos syncserv, vos rename, or vos lock command. Volume is locked for a dump/restore operation Indicates that the volume was locked due to a vos dump or vos restore command. For further discussion of the "New release" and "Old release" flags, see vos_release(1). EXAMPLES
The following command displays VLDB information for the ABC Corporation volume called "usr", which has two read-only replication sites: % vos listvldb -name usr usr RWrite: 5360870981 ROnly: 536870982 Backup: 536870983 number of sites -> 3 server fs1.abc.com partition /vicepa RO Site server fs3.abc.com partition /vicepa RO Site server fs2.abc.com partition /vicepb RW Site The following example shows entries for two of the volumes that reside on the file server machine "fs4.abc.com". The first VLDB entry is currently locked. There are 508 entries that mention the machine as a volume site. % vos listvldb -server fs4.abc.com VLDB entries for server fs4.abc.com . . . . . . . . user.smith RWrite: 278541326 ROnly: 278541327 Backup: 278542328 number of sites -> 1 server fs4.abc.com partition /vicepg RW Site Volume is currently LOCKED user.terry RWrite 354287190 ROnly 354287191 Backup 354287192 number of sites -> 1 server fs4.abc.com partition /vicepc RW Site . . . . . . . . Total entries: 508 PRIVILEGE REQUIRED
None SEE ALSO
vos(1), vos_examine(1), vos_listvol(1), vos_lock(1), vos_unlock(1), vos_unlockvldb(1) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 VOS_LISTVLDB(1)
All times are GMT -4. The time now is 01:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy