Use tar to create an archive containing your file/directory structure; e.g. to create an archive called myarchive containing all of the files and directories starting at /home/mydirectory then:
all files in the archive will have absolute paths like /home/mydirectory/1.txt
or, all files in the archive will have relative paths like ./mydirectory/1.txt
You can also include a specific list of files in the file myfiles.lst (but note that if you specify a directory then the directory will2be included but not the files it contains, this is different from specifying a directory in the first example)
Use ftp to transfer to the archive to the other machine and then untar it:
This is where the difference between absolute and relative paths becomes important as the restore will extract the files/directories to exsct pathnames if the archive was created with absolute pathnames or relative to your current directory if the archive was created with relative pathnames.
Hello everyone,
Have a question which I'm not entirely sure about, but will ask anyway.
We have three servers (A/B/C), 'A' being the local host, 'B' being a SFTP server on the DMZ, and 'C' being the intended remote host. The task is to transfer file/s from server 'A' to server 'C' via server... (0 Replies)
Hi All,
it might not be an sound question,
i have two server like A and B..
i want to transfer file from B to A
..here i have some questions..
1) do we need to create private and public key to connect..and
transferring files...from B to A..?
2) i tried with scp options like... (2 Replies)
FILE_LIST="{a.txt,b.txt,cal*}"
scp -r $..$REMOTE_PATH$FILE_LIST $LOCAL_PATH
This script passes only when all the three files are transfere, wat if only two file are transfered, but still I was to make the return code as pass.
is it possible. (2 Replies)
HI
Can anyone provide me with codes for file transfer server to client or vice versa?
Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming.
Thanks (0 Replies)
Hi,
I have written a small script to transfer a file from one unix server to other using scp command which is working fine. As I know with scp, if any file with the same name is already present on destination server, it would get overwritten without any notification to user. Could anyone help me... (14 Replies)
Hi All,
i am doing ftp
how can i transfer multiple different files
example-
03-21-13 06:33AM 46800 CATT_HOURS.pgp
03-21-13 06:33AM 266392 CATT_TAX.txt
03-21-13 06:33AM 91448 CATT_STATUS.txt
03-21-13 06:33AM 468 ... (3 Replies)
Hi,
I want to grep multiple patterns from multiple files and save to multiple outputs. As of now its outputting all to the same file when I use this command.
Input : 108 files to check for 390 patterns to check for. output I need to 108 files with the searched patterns.
Xargs -I {} grep... (3 Replies)
When using FTP to transfer a file from IBM iSeries family of servers client to a non IBM Iseries family server, files might have characters appear in the wrong format
Eg | in Iseries and while transferring fro Iseries system to Linux , but instead of | it is showing as ?.
Please advise (3 Replies)