Sponsored Content
Full Discussion: Tar to remote machine
Top Forums UNIX for Dummies Questions & Answers Tar to remote machine Post 302279785 by jvpiel on Friday 23rd of January 2009 06:04:00 PM
Old 01-23-2009
$ tar --rsh-command=`which ssh` -zcvf remote_host:filename.tar.gz -- directory_to_tar

Single line solution, not a hack, part of tar. Works even if you don't have enough space to create the archive on the local machine. use -jcvf and filename.tar.bz2 if you want a little better compression. Data is sent securely over the wire, assuming you have SSH setup correctly.

man tar is your friend. Boosh!

Last edited by jvpiel; 01-23-2009 at 07:20 PM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creation and Transfer of TAR file from one machine to another Using UNIX script

Hi, I want to create unix script such that it should run on machine A, it should run TAR commands on machine B and copy that TAR to machine C. Is it possible? Thanks Rahul (2 Replies)
Discussion started by: rahuljadhav
2 Replies

2. UNIX for Advanced & Expert Users

Help regarding theMailing of output from a remote machine

Hi all, I have a script which logs in to the remote server with FTP and with the user id/password and list the files in the path of remote server where thefiles resid.i need to email this output(i.e wether the files are present on not under the path) to my email id. Can u please let me know as... (1 Reply)
Discussion started by: OSD
1 Replies

3. Shell Programming and Scripting

Need a script to tar all file systems on the machine into one filesystem.

Hi I am very poor at scripting.:o I need to develop a script that should tar up all the filesystems on the machine on to a single filesystem called /tarfilesystem. Any suggestions ... Thank You very much (1 Reply)
Discussion started by: urrahman_zia
1 Replies

4. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

5. Infrastructure Monitoring

SNMP from remote machine

Hi, I have sucessfully set up snmp daemon on my AIX box (v 6.1.2.0). I can query snmp from localhost (using command: snmpinfo -v -m dump -c public mib-2) and it works perfectly. But I don't get any reply when query my AIX box from remote machine (AIX, Linux,...) I have tried to set up SNMP v1... (0 Replies)
Discussion started by: pavel.kovar
0 Replies

6. UNIX for Advanced & Expert Users

FTP While transfering files to local machine to remote machine

Hi Am using unix Ksh Am getting the problem while transferring zero size files through the script . When i transfer zero size files from local machine to remote machine manually i can able to do it . My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies

7. UNIX for Dummies Questions & Answers

Remote FTP Backup -Tar archive+ encrypt+ split to a remote ftp

I have a huge directoy(200+ gb) for backup. I want upload the tar file(split files) simultaneous to a remote ftp. (pipeline, stdout, stdin etc.) I don't want write a data to local hdd. I have a ssd hdd. thanks. this code doesn't work.( yes i know the problem is split command!) tar cvzf -... (8 Replies)
Discussion started by: tara123
8 Replies

8. Red Hat

iptables applied in local machine, can't ssh remote machine after chain changed to DROP

I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99 Source Destination was UP, with IP 192.168.1.15. This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies

9. Shell Programming and Scripting

Help with fetching the data from remote machine from my jumpbox(local machine)

Team, Presently i am running a script from my local box(i.e jumpbox) to all the remote machines.Basically fetching basic queries like pwd,mkdir,touch etc and i am able to successfully fetch it from my local machine.But when i want to check certain database related queries like the dbstat... (20 Replies)
Discussion started by: whizkidash
20 Replies
GBP-CREATE-REMOTE-REPO(1)				      git-buildpackage Manual					 GBP-CREATE-REMOTE-REPO(1)

NAME
gbp-create-remote-repo - Create remote repositories SYNOPSIS
gbp-create-remote-repo [ --verbose ] [ --color=[auto|on|off] ] [ --remote-url-pattern=url-pattern ] [ --remote-name=name ] [ --template- dir=directory ] [ --remote-config=config ] [ --[no-]pristine-tar ] [ --debian-branch=branch_name ] [ --upstream-branch=branch_name ] [ --[no-]track ] DESCRIPTION
gbp-create-remote-repo creates a repository at a remote location via ssh and pushes the local repository into it. It then sets up remote branch tracking so you can use gbp-pull to update your repository from there. Before performing any action on the remote location it will print the remote URL and ask for confirmation. Note: By default the remote repositories are created in the collab-maint repository on git.debian.org. OPTIONS
--remote-url-pattern=pattern Where to create the remote repository. The part %(pkg)s will be replaced by the package name. --remote-name=name What name git will use when refering to that repository, e.g. 'origin'. --template-dir=directory Template directory to pass to git init on the remote side. This can be used to customize the remote repository, e.g. to set up hooks. --remote-config=config Name of a config file section in gbp.conf that specifies the above paramters. See [XRef to GBP.MAN.GBP.CONF] manpage for details. --debian-branch=branch_name The branch in the Git repository the Debian package is being developed on, default is master. --upstream-branch=branch_name The branch in the Git repository the upstream sources are put onto. Default is upstream. --pristine-tar Whether to push the pristine tar branch. --verbose -v verbose execution --color=[auto|on|off] Whether to use colored output. --[no-]track Whether to set up branch tracking for the debian, upstream and pristine-tar branches. CONFIGURATION FILES
Several gbp.conf files are parsed to set defaults for the above commandline arguments. See the [XRef to GBP.MAN.GBP.CONF] manpage for details. SEE ALSO
git-buildpackage(1), gbp-pull(1), gbp.conf(5) AUTHOR
Guido Guenther <agx@sigxcpu.org> 01 June 2012 GBP-CREATE-REMOTE-REPO(1)
All times are GMT -4. The time now is 10:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy