Sponsored Content
Operating Systems HP-UX Tarring files to remote server Post 303013777 by gull04 on Wednesday 28th of February 2018 07:22:50 AM
Old 02-28-2018
Hi,

When I'm doing this I tend just to do the whole thing in a single line - something like.

#> tar cf - | ssh me@server ( cd /destination ; tar xf - )

Obviously you would adjust the create command to exclude the files that you want to exclude as per your example. If the files are very large you may like to pipe through gzip or whatever compression utility, but with the speed of modern networks I seldom see the need now.

Regards

Gull04
These 2 Users Gave Thanks to gull04 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

backup : files being modified while tarring

I would like to back up several directories weekly using a cronjob. I'm not experienced in UNIX, but I would start like this: tar -cvf backup.tar dir1 dir2 dir3 Now if a file is being modified in the process it will result in an error. How can I prevent this from happening and how can I... (5 Replies)
Discussion started by: jamesbond
5 Replies

2. UNIX for Dummies Questions & Answers

tarring and gzipping dump files

Say I want to transfer several dump files from a Solaris machine onto a Win2k machine for storage. It was suggested that I tar and gzip the dump files before doing so. Is it completely necessary to use both of these utilities, or is it sufficient to compress multiple dump files into one gzip... (4 Replies)
Discussion started by: PSC
4 Replies

3. 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

4. UNIX for Dummies Questions & Answers

tarring large no. of files

dears, I have a folder containing huge no. of files, some of them are created on AUG 16, AUG 17 and AUG 18, for example. All I want to do is tarring all the files created on a certain date, say AUG 18, in one tar file, only in one command line. So, how to feed all the files created on a certain... (4 Replies)
Discussion started by: marwan
4 Replies

5. Shell Programming and Scripting

tarring/compressing files in Unix directory

hi guys, i'm totally new with Unix sripting and no idea how to do the scripting at all. My problem is that my boss asked me to do this: 1.) create a script that will tar or gzip the files in particular directory eg: i'm on my home directory and I need to tar/gzip the file in.. assuming... (1 Reply)
Discussion started by: montski
1 Replies

6. Shell Programming and Scripting

Bash Tarring not un Tarring correctly

HI All, Im encountering behaviour that is not correct for my requirements when I untar a file. Im using the below command to tar up files from various folders to the ARCHIVE folder as below... tar -cvf "$ARCHIVE_PATH"/"$dte_tar_filename" "$LOG_PATH" "$PROCESSED_PATH2" "$ERROR_PATH" ... (5 Replies)
Discussion started by: satnamx
5 Replies

7. UNIX for Dummies Questions & Answers

Tarring files up to four days old

Hi I need help in tarring files up to four days old. I have been doing this: find . -mtime -4|xargs tar -cvf mar4.tar However, it seems like it's tarring everything but leaving those that are 4 days old and newer (which I want tarred and everything else not) ---------- Post updated at... (1 Reply)
Discussion started by: MIA651
1 Replies

8. 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

9. 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

10. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies
KUP(1)								    kernel.org								    KUP(1)

NAME
kup - kernel.org upload utility SYNOPSIS
kup [global options] command [-- command...] DESCRIPTION
This utility is used to upload files to kernel.org and other systems using the same upload system (kup-server). Each upload is required to have a PGP signature, and the server will generate multiple compressed formats if the content uploaded is intended to be compressed. Additionally, if the user has content from a git(1) tree already on server, it is possible to reproduce the content server-side and there- fore reducing bandwidth needs. The user still has to generate the content locally and sign it. GLOBAL OPTIONS
-b, --batch Instead of connecting to a remote host, output the protocol content to standard output. The output from an arbitrary number of kup invocation can be concatenated and then sent to the server as a single session. -e, --rsh, --ssh command Override the default command used to connect to the server. The default is set by the environment variable KUP_RSH or if that is not set, ssh -a -x -k -T. -H, --host [user@]host Override the default user and host to which to connect. The default is set by the environment variable KUP_HOST or if that is not set, kup.kernel.org. COMMANDS
A series of commands can be specified on a single command line, separated by a double dash argument (--). In all cases, PGP signatures are detached signature files corresponding to the uncompressed content. If a remote_path ends in .gz then gzip, bzip2 and xz compressed files are generated on the server; otherwise the content is stored uncompressed. put local_file signature_file remote_path Upload the file local_file with signed with signature_file. local_file can be compressed with gzip, bzip2 or xz; this may reduce upload time. The content will be stored compressed or uncompressed depending solely on the extension of remote_path. put --tar remote_tree ref signature_file remote_path Generate a tar archive file from ref ref of git tree remote_tree (using git archive --format=tar) with signature signature_file gen- erated locally, and place it in remote_path. git archive has been found to be relatively stable, and so this command is relatively robust to git version changes. put --diff remote_tree ref1 ref2 signature_file remote_path Generate a patch file between refs ref1 and ref2 of git tree remote_tree (using git diff-tree -p) with signature signature_file gen- erated locally, and place it in remote_path. The output of git diff-tree has been found to vary between git versions, and so successful use of this command may require the same version of git locally as on the server in order to produce a valid signature. mkdir remote_path Create a new directory on the server. mv|move old_path new_path Move the file or directory old_path to new_path. For a file, the .sign files are also moved, and for compressed files, all the com- pression formats are moved together. ln|link old_path new_path Hard link the file or directory old_path to new_path. For a file, the .sign files are also linked, and for compressed files, all the compression formats are linked together. rm|del|delete old_path Delete the file or directory old_path. For a file, the .sign files are also deleted, and for compressed files, all the compression formats are deleted together. ls|dir path... Lists back the contents of one or more directories on the server. PATHNAME HANDLING
Remote (server) pathnames all need to be absolute paths, starting with a slash (/). The sole exception is new_path for the mv and link commands, which if it is not absolute is taken to be relative to the old_path minus the final component. Similarly, if new_path ends in a slash then the final component of old_path will be appended. For the put command, except when --tar or --diff is specified, if the remote_path ends in a slash then the final (filename) component of local_file will be appended to the final pathname. CONFIG FILE
Kup checks the presence of $HOME/.kuprc and can load the host and rsh parameters from the config file. Environment variables KUP_HOST and KUP_RSH will override the values set in this config file. SAMPLE $HOME/.kuprc: host = user@kup.kernel.org rsh = /usr/bin/ssh -a -x -k -T AUTHOR
Written by H. Peter Anvin <hpa@zytor.com>. COPYRIGHT
Copyright (C) 2011 Intel Corporation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, Inc.; either version 2 of the License, or (at your option) any later version; incorporated herein by refer- ence. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
git(1), ssh(1), gzip(1), bzip2(1), xz(1). kernel.org upload utility 2011 KUP(1)
All times are GMT -4. The time now is 06:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy