How Do I FTP System Files to Different Server?

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers How Do I FTP System Files to Different Server?
# 29  
Old 07-27-2018
When you had it working previously, is there any chance you installed the real Intel NIC driver and not the pseudo AMD NIC driver?

(Either approach is reported to work but often the AMD driver is faster).
# 30  
Old 07-31-2018
So, I sat down yesterday and went completely through all of the steps I had performed with my latest VM, and after careful scrutiny I found that I had assigned the same IP address to both the Host NIC and the OpenServer VM!! Duh. I decided to start over from scratch one more time, and I now have a working VM that my physical machine is able to connect to via FTP!!


From what I observed this time here are the important steps:
1 - Use "bridged" mode for the virtual network card (but be sure to assign different IPs to the host and the vm!)
2 - Add a Host record to the local DNS server for the OpenServer VM, and I also added the computer in AD Users and Computers - though I'm not sure if this was necessary.
3 - I don't know if this made a difference, but during the SCO setup this time, when it asked for which "security profile" to use, I selected "Low" instead of "Medium" which was the default.



I can only connect FTP in one direction - from physical to VM, but that should be all I need. I don't know why, but when I do try and FTP from VM to physical it says the system type is unknown. From physical to VM the FTP connection recognizes the system as UNIX.



Anyway, now I have copied a few files over, but I want to try and copy some entire directories, and I think I need to use cpio rather than tar? I'm trying to read about both and it's a little confusing to me. What I want to do is make separate archive files containing contents of the directories in my physical machine, then ftp those over to the vm where I can extract them to where they belong.


I understand with cpio I can "pipe" the results to a single file (using a .cpio extension?), but what I don't get is do I use the "find" command or the "ls" command? I think it would save me a lot of time if someone here could offer me the exact syntax to use in order to accomplish this goal. Also I know with cpio there is a way to get the files extracted to their "absolute" path over on the VM, but I can't seem to grasp the syntax for this either. I could really use some help with this last part - and I appreciate it a lot. Thanks.
# 31  
Old 07-31-2018
I don't have a SCO system to hand so these are the SCO options for find and cpio from memory.

I would steer clear of using absolute pathnames because it restricts your options. Using relative pathnames is much more flexible.

To archive a complete directory tree:

Code:
# cd <top of tree to archive>
# find . -depth -print | cpio -ov -O <archive pathname>

FTP the archive over to the other system

Ensure that the top of tree location already exists and, if not, create it manually (otherwise you cannot 'cd' to it).

Code:
# cd <top of tree/location where you want the tree to go>
# cpio -ivudlm -I <archive pathname>

See the man page(s) for what the 'ivudlm' switches do but it will recreate the tree, create any required directories, link files when possible, etc, etc.

Anyway, AFAIR, that's what I would do on a SCO box. Others may suggest a different method. Hope that helps.

Last edited by hicksd8; 07-31-2018 at 01:26 PM..
# 32  
Old 08-01-2018
I am making progress, but it looks like I still need some help to get my legacy unix program to work. I have copied most of the files over from the physical to the VM. I left out the /etc and the /var directories entirely, and I think that one of those contain files that I need to make things work.


In my first attempt I did copy the /var directory over - about the third one I copied, and after that my VM would not work correctly. I could not login and so I had to start over again from scratch, so I'm leery about copying that directory over again.


I suspect that I need numerous files from the /etc directory, but I don't think I'm supposed to copy the /etc/conf because I was told not to do that before. My problem is I don't know how to create the cpio archive, or extract it, without including that directory.


At least some of the things I'm missing are the user accounts and groups that are present in the physical system. For our legacy program, we need to have user accounts that have a certain Login Shell, Home Directory and Login Group. The Login Group I'm supposed to use is "genesis" and that is not one of the available groups when I go to create a new user account. So I know these things live somewhere, probably in the /etc directory, because when I restored my complete system from backup tape last year (to the current physical system) all of the user accounts were there.


If anyone has any ideas to help me copy over the remaining files I need from /etc, or if I do need some files from the /var directory, I would appreciate greatly some advice to finish this up. It seems so close!
# 33  
Old 08-01-2018
the groups are maintained in /etc/groups.
you can copy the user and password information using ap.
Code:
ap -d >/tmp/ap.list

and
Code:
ap -r -f /tmp/ap.list

on the new system after copying /tmp/ap.list to the new system.
you can find the files in /etc that you may need by:
Code:
cd /etc
ls -l |grep -v "@"

to list files in /etc that are not part of the operating system
use
Code:
cd /etc
ls -ltr

to list files by last modified, the files at the end of the list may have been modified since installation.
/var and /usr are links so all you might need is /usr/spool/lp/admins/lp/interfaces to get all the printer files.
Add the printers on the new system and just get the correct device, the model name won't matter.
then restore the interfaces directory from the old system.
check for differences between the contents of /etc/rc2.d on both systems.

------ Post updated at 06:15 PM ------

you can use the same
Code:
ls -l /usr/bin |grep -v "@" 
ls -l /bin |grep -v "@"

to find files in these directories that are not part of the operating system.
These 2 Users Gave Thanks to jgt For This Post:
# 34  
Old 08-02-2018
I know this is a long list, but maybe it will point me in the next direction I need to go. In the /etc/rc2.d directory of the physical (working) machine, here is the list of files:


I01MOUNTFSYS
P00SYSINIT
P03RECOVERY
P04CLEAN
P05RMTMPFILES
P15HWDNLOAD
P16KERNINIT
P20sysetup
P21perf
P70uucp
P75cron
P86scologin
P86sendmail
P86xdlls
P87USRDAEMON
P88USRDEFINE
P90RESERVED
P93scohttp
P95calserver
S00MDAC
S25pm
S35dlpi
S60sync
S80lp
S84rpcinit
S85nis
S85tcp
S86nps
S88digifax
S88edge
S89nfs
S90atlas
S90fasttrack
S90iproute
S90secure
S91manahttp
S99apcssd
S99ssinit
messages
p86sendmail


Five of those are missing from the same directory in the VM:
S86nps, S88digifax, S88edge, S99ssinit and p86sendmail


I know there is a "digifax" board in the physical server but there is no longer any need for that. I have a license for BackupEDGE, but I do not know if I will install it in the VM - still debating if I will need. The remaining 3 files are a mystery to me, but maybe someone has an idea as to what they mean and what my next step(s) should be. Thanks again.
# 35  
Old 08-03-2018
P86sendmail starts the sendmail (email) server. If you chose mmdf for your mail carrier when you installed the VM then it is not necessary.
You will have to view/read the other two to find out what they do.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

FTP-ing files from Windows server to UNIX server

I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output. Is it possible to transfer files from Windows server to unix server through any shell script? If so can you please help me with the details. Thanks in... (8 Replies)
Discussion started by: ssk250
8 Replies

2. Shell Programming and Scripting

FTP multiple files from one server to one server

Hi, I'm new to shell script..I have one requriement like - In one server have more than one files,I want to ftp those files to some otehr server.. Ex : test1.pdf test2.pdf Please suggest me how to do (3 Replies)
Discussion started by: venkaswa
3 Replies

3. Shell Programming and Scripting

Need help creating a script to FTP files to a server and then delete the files that were transfered.

I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies

4. Shell Programming and Scripting

Validating the size of file transferred from ftp server to the local system

Validating the size of file transferred from ftp server to the local system. File type: Text file/Flat file Source System: Windows / Unix Systems Target System is always: Unix Mode of Transfer : ASCII We have generic ftp shell script that transfers the files from different ftp servers. ... (2 Replies)
Discussion started by: jpundalik
2 Replies

5. Shell Programming and Scripting

script for to take files from FTP server to UNIX server and Unzipped that files

script for to take files from FTP server to UNIX server and Unzipped that files (1 Reply)
Discussion started by: sunilamarnadh
1 Replies

6. Filesystems, Disks and Memory

Not able to FTP the files to a FTP server

Hi , We are facing a weird problem in our project. we need to send some xml & audio files to a remote FTP server from a Linux box, we are doing this in Perl script using Net::FTP->. Issue here is.. when FTPed the files using Perl scripts, only empty files ( 0 byte) are getting created on the... (2 Replies)
Discussion started by: kishorepotta
2 Replies

7. UNIX for Dummies Questions & Answers

FTP Files from one server to another

Hi, I want to run a process on server a, pulling files from server b and pushing it to server c. Can i do that without dropping the files on server a? Thanks, Samit (2 Replies)
Discussion started by: samit_9999
2 Replies

8. Shell Programming and Scripting

FTP files to target Mainframe system

Hi Experts... Greetings for the day..! I just want to FTP the files to mainframe system.. my code is not working..and also i need to put the files in a particular directory in a specific naming format... ftp -i -n ${HOST_NAME} << END_FTP user ${USER_NAME} ${PASSWORD} put ${FILE_NAME}... (3 Replies)
Discussion started by: spkandy
3 Replies

9. Solaris

Secure FTP Problem using Sun SSH on Client system F-Secure on Server system

I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details: FTP Client has Sun SSH. FTP Server has F-Secure. I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error scp:... (2 Replies)
Discussion started by: ftpguy
2 Replies

10. 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
Login or Register to Ask a Question