. . .
However, the error "tar: cannot open /home/emoaigin/abc.sh" why does it happen?
It's more
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...
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
rdup-tr
RDUP-TR(1) rdup RDUP-TR(1)NAME
rdup-tr - transform rdup output
SYNOPSIS
rdup-tr [OPTION]...
DESCRIPTION
Transform rdup output into something else. Where something else can be a tar, cpio, pax archive or another rdup stream.
The rdup archive must be given on rdup-tr's standard input.
You can select multiple types of output (-O flag), but you must be aware that you may loose some information in formats other than rdup's
own, see the table below.
You may also supply rdup-tr with only a list of pathnames, this can be selected with the -L flag.
The following table shows what happens with the output depending on the input.
0 OK
D delete information is lost
H hardlink information is lost
| |
output | tar,cpio,pax | rdup
input | |
------------- | ------------- | ------
rdup | D | 0
filelist | DH | H
| |
OPTIONS -L Select list input format. Normally rdup-tr accepts rdup output, with this option you can give it a list of path names. Note: with
list input rdup-tr will `stat()` each file.
-O Output format. This can be 'tar', 'cpio', 'pax' or 'rdup'. It defaults to 'rdup'.
-X key Read the encryption key from the file key and encrypt all paths with Blowfish and this key and iv. After the encryption the binary
data is converted into ASCII using an URL safe (Section 4 of RFC 3548) version of base64 encode.
The encryption key must be on the first line and the key size must be 16 and 8 bytes for the iv, so 24 in total.
-Y key Read the decryption key from the file key and decrypt all paths with Blowfish and this key. Before the encryption the paths are con-
verted to binary by using an URL safe version of base64 decode.
-c Force output to the tty. Normally rdup-tr wants to see it's output redirected.
-v Be more verbose.
-V Print rdup-tr's version.
-h A short help.
EXAMPLES
The following is possible
rdup -Pgzip -Pmcrypt,-f,KEY,-c /dev/null /home |
rdup-tr -O tar -X<(echo secret) | gzip >
my-home-zipped-crypted-pathcrypted-tar.gz
That is: all files under /home are gzipped and encrypted on a per file basis (first line). Further more, all pathnames are Blowfish
encrypted (second line) with the key 'secret'. This is put in a tar file, which is then compressed, resulting in the final output (final
line).
Creating a compressed and encrypted tar archive out of a full rdup dump might be done as follows
rdup -Pgzip -Pmcrypt,-f,KEY,-c /dev/null /home |
rdup-tr -O tar > my-home-zipped-and-crypted.tar
Or even pack and unpack it on the fly
rdup -Pgzip -Pmcrypt,-fKEY,-c /dev/null /home | rdup-tr -Otar |
ssh user@remotehost tar xvCf /tmp -
Or encryption with openssl
rdup -Popenssl,enc,-e,-des-cbc,-k,secret /dev/null /home
Or, compressing with gzip, encrypting with openssl and then compressing the entire archive yet again
rdup -Pgzip -Popenssl,enc,-e,-des-cbc,-k,secret /dev/null /home |
gzip > my_compressed_encrypted_rdup_archive.gz
Recreating the original rdup output, which can be fed to rdup-up.
gunzip -c my_compressed_encrypted_rdup_archive.gz |
rdup-tr -Popenssl,enc,-d,-des-cbc,-k,secret -Pgzip,-d >
my_rdup_archive
rdup-up < my_rdup_archive -t /tmp/restore
Notice the reversal of the -P options.
EXIT CODE
rdup-tr return a zero exit code on success, otherwise 1 is returned.
AUTHOR
Written by Miek Gieben.
REPORTING BUGS
Report bugs to <miek@miek.nl>.
SEE ALSO
http:/www.miek.nl/projects/rdup/ is the main site of rdup. Also see rdup(1), rdup-up(1) and rdup-backups(7).
COPYRIGHT
Copyright (C) 2005-2010 Miek Gieben. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Licensed under the GPL version 3. See the file LICENSE in the source distribution of rdup.
1.1.11 27 Nov 2008 RDUP-TR(1)