01-24-2007
Quote:
Originally Posted by Create
If you are having problems ftp'ing a directory the easiest way to do this would be the following
goto the server with the pkgs you need.. Tar up the folders and SCP them to the other server
tar -cvf Foldername.tar.gz Foldername
tar -cvf Foldername2.tar.gz Foldername
scp Foldername.tar.gz root@serverIP(destination):/location/to/put/file/.
scp Foldername2.tar.gz root@serverIP(destination):/location/to/put/file/.
goto your server where you just put the files and untar them
tar -xvf Foldername.tar.gz
tar -xvf Foldername2.tar.gz
Or just use a NFS mount if the packages are on a disk.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I'm using Shell script which will ftp (download) a file from a host. I need to check whether the file has been transfered completley or not.
Can anyone tell me how to do that?
Thanks
Ben (1 Reply)
Discussion started by: abrd600
1 Replies
2. Shell Programming and Scripting
Please help me out. it is very urgent.
when transfering the files from one server to other server if it is failed how to trace the status.
i am using two commands:
cd $SOURCE_FILE_PATH
ftp -niv $SRVR_NAME >> $LOG_PATH/$LOG_FILE << END_FTP
user $USER_ID $PASSWORD
bin
cd $REMOTE_FILE_PATH
! ... (0 Replies)
Discussion started by: ramana
0 Replies
3. Shell Programming and Scripting
Hi !
I created a similar script as shown below to automate an FTP transfer and encountered errors. Appreciate any advice to resolve this issue.
The script:
#!/usr/bin/ksh
ftp 'IP ADD' << cmd
user 'user' 'pass'
lcd /home/data
get 'FileA' FileB
quit
cmd
Connected to 'IP_ADD'.... (3 Replies)
Discussion started by: cosec
3 Replies
4. Shell Programming and Scripting
Hi All,
I am very new to shell scripting,I have some doubts how we can do a file transfer using ftp
I wanted to transfer files using non_secure ftp and secure ftp(sftp) mode,
for secure ftp i am using following code
verbose="verbose"
ftp="/usr/bin/ftp"
user="ABC"
pass="123"... (1 Reply)
Discussion started by: sudhi
1 Replies
5. Shell Programming and Scripting
Hi Guys,
I wanted to transfer files from FTP machine to Linux Machine.
In this, I need to create a batch file that will connect to the Linux Machine and Transfer the files specified as the parameter to the files.
Ex : transferfiles Product Time Geography
Here transferfiles shld contain... (4 Replies)
Discussion started by: Swapna173
4 Replies
6. Shell Programming and Scripting
I am going to transfer file from UNIX directory to remote windows location and i wrote the script but i am getting the error as 'FTP: not found' or i am getting this error 'The file path is not found'.
Please help me to resolve this problem as early as possible.(urgent).
my script is,
... (6 Replies)
Discussion started by: praka
6 Replies
7. Shell Programming and Scripting
Frdz, i have scenorio like i have to open ftp connection in a for loop and connect to the other server and upload the file again and again till the for loop ends but i am getting problem when i use the following code.
for i in `ls ${SOURCE_DIR}/`
do
FOLDER_NAME=`basename $i`
for j in `ls... (4 Replies)
Discussion started by: KiranKumarKarre
4 Replies
8. UNIX for Dummies Questions & Answers
Hey all,
I'm trying to upload a file to my ftp server through an automated batch program. I will be uploading a file that's name changes according to you IP Address, so I am using the variable %ip% to represent the file's name. The problem occurs when it transfers over to the ftp portion of the... (2 Replies)
Discussion started by: piking
2 Replies
9. Windows & DOS: Issues & Discussions
Hi All,
My PC with Windows XP SP2 has some problem with ftp service.
FTP Server is : Windows Server 2003 Standard R2
The condition is I can log in and also can change ftp server directory,
But I can not listing the file and can not get or put any file.
It will hang and nothing happen until... (4 Replies)
Discussion started by: wilsonSurya
4 Replies
10. UNIX for Beginners Questions & Answers
How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies
LEARN ABOUT DEBIAN
git-tar-tree
GIT-TAR-TREE(1) Git Manual GIT-TAR-TREE(1)
NAME
git-tar-tree - Create a tar archive of the files in the named tree object
SYNOPSIS
git tar-tree [--remote=<repo>] <tree-ish> [ <base> ]
DESCRIPTION
THIS COMMAND IS DEPRECATED. Use git archive with --format=tar option instead (and move the <base> argument to --prefix=base/).
Creates a tar archive containing the tree structure for the named tree. When <base> is specified it is added as a leading path to the files
in the generated tar archive.
git tar-tree behaves differently when given a tree ID versus when given a commit ID or tag ID. In the first case the current time is used
as modification time of each file in the archive. In the latter case the commit time as recorded in the referenced commit object is used
instead. Additionally the commit ID is stored in a global extended pax header. It can be extracted using git get-tar-commit-id.
OPTIONS
<tree-ish>
The tree or commit to produce tar archive for. If it is the object name of a commit object.
<base>
Leading path to the files in the resulting tar archive.
--remote=<repo>
Instead of making a tar archive from local repository, retrieve a tar archive from a remote repository.
CONFIGURATION
tar.umask
This variable can be used to restrict the permission bits of tar archive entries. The default is 0002, which turns off the world write
bit. The special value "user" indicates that the archiving user's umask will be used instead. See umask(2) for details.
EXAMPLES
git tar-tree HEAD junk | (cd /var/tmp/ && tar xf -)
Create a tar archive that contains the contents of the latest commit on the current branch, and extracts it in /var/tmp/junk directory.
git tar-tree v1.4.0 git-1.4.0 | gzip >git-1.4.0.tar.gz
Create a tarball for v1.4.0 release.
git tar-tree v1.4.0^{tree} git-1.4.0 | gzip >git-1.4.0.tar.gz
Create a tarball for v1.4.0 release, but without a global extended pax header.
git tar-tree --remote=example.com:git.git v1.4.0 >git-1.4.0.tar
Get a tarball v1.4.0 from example.com.
git tar-tree HEAD:Documentation/ git-docs > git-1.4.0-docs.tar
Put everything in the current head's Documentation/ directory into git-1.4.0-docs.tar, with the prefix git-docs/.
GIT
Part of the git(1) suite
Git 1.7.10.4 11/24/2012 GIT-TAR-TREE(1)