Sponsored Content
Operating Systems HP-UX Tarring files to remote server Post 303014175 by RudiC on Tuesday 6th of March 2018 09:36:46 AM
Old 03-06-2018
Quote:
Originally Posted by anaigini45
. . .
However, the error "tar: cannot open /home/emoaigin/abc.sh" why does it happen?
It's more
Code:
tar: cannot open /home/emoaigin/abc.sh
/home/emoaigin/create.jar
/home/emoaigin/make.gz

because the i variable contains the entire find output including <LF> line terminators. If there are no white space chars in filenames, try to use $i unquoted.

Quote:
And what is this error : "Tar: blocksize = 0; broken pipe?" ?
Might be a consecutive error as the first tar failed and the pipes and thus inputs are empty...
 

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
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 03:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy