Sponsored Content
Full Discussion: Tar archives monthly
Top Forums Shell Programming and Scripting Tar archives monthly Post 302949582 by RudiC on Monday 13th of July 2015 01:15:05 PM
Old 07-13-2015
That depends on the file/directory structure that you have. Are there one or many directories? Are there one or many matching files in each directory? Should one or all matching files be tarred together, within or across directories?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

tar archives

I have a tar archive which I believe may be corrupted, produced on an HP-UX 10.x box and written to a 4mm DDS-3 tape. I understand that gnu tar has a -W (--verify) option which will attempt to verify the archive after it has been created. Am I right in saying that this option cannot be used to... (4 Replies)
Discussion started by: sam_pointer
4 Replies

2. UNIX for Dummies Questions & Answers

segmenting tar archives

assuming i need to create a tar archive which would turn out to be bigger than 2gb, how could i segment the archive into say, 1 gb parts? (3 Replies)
Discussion started by: crudealien
3 Replies

3. UNIX for Dummies Questions & Answers

flash archives

HI, are you supposed to run flarcreate in multi user mode? or should you do it in single user? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

4. Shell Programming and Scripting

monthly calculation

pls can anyone help me with this script, the script is below, i need the script to get the previous month result every new month , the problem is that the loop has to be automated to always calculate for previous month . a=`date "+%Y"` #this year to be used b=$(date "+%Y%m" --date='49 days... (6 Replies)
Discussion started by: neyo
6 Replies

5. OS X (Apple)

Decompressing Tar Archives (Finally!)

If you've come across this problem with unzipping/decompressing zips, you might find this helpful: I was having a little trouble with unzipping (decompressing) tarred archives under OS 10.5 until today. My first attempt was to just simply double-click on the zip file (i.e., example.tar.gz) and... (2 Replies)
Discussion started by: unimachead
2 Replies

6. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

7. Post Here to Contact Site Administrators and Moderators

monthly membership??

Hi, Do we have monthly membership (VIP) in our forum? if not, do we have any plans for it? Regards, (1 Reply)
Discussion started by: clx
1 Replies

8. Shell Programming and Scripting

Create unique tar archives from a list of directories

I'm looking to archive a client directory from a CIFS share There are multiple directories that will be stored in a text file and I'm looking to create an individual tar archive of each folder in the directory. I've tried a number of commands to no avail. Here's what I would like. ... (2 Replies)
Discussion started by: Steelysteel
2 Replies

9. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

10. UNIX for Advanced & Expert Users

Multi-Volume tar archives. [solved]

Hi, The only off-line storage medium I have is DVD. I am trying to back up around 10G of data and if I can achieve a practical solution I will use it more generally. I am currently considering something along the lines of: tar --create --multi-volume --tape-length=nnnn <pathspec> |... (0 Replies)
Discussion started by: MikeGM
0 Replies
hdup(1) 						      General Commands Manual							   hdup(1)

NAME
hdup - harddisk duplicator/harddisk backupper - backup to harddisk SYNOPSIS
hdup [ OPTION ] SCHEME HOST [ @USER@REMOTEHOST ] (1st format) hdup [ OPTION ] restore HOST DATE DIRECTORY [ @USER@REMOTEHOST ] (2nd format) DESCRIPTION
Hdup is used to backup a filesystem. Features include: o incremental backups: monthly, weekly and daily dumps, o encryption of the archive (via mcrypt or GPG), o compression of the archive (bzip/gzip/lzop/none), o possibility to transfer the archive to a remote host, o possibility to restore the archive from a remote host, o ability to split up archives, o no obscure archive format (it is a normal compressed tar file), and o simple to use. The behaviour of hdup is controlled by its configuration file (see hdup.conf(5)). Internally hdup uses GNU tar to actually create the back- ups. First format When using the 1st format hdup performs a backup. Remember: hdup pushes a backup from the localhost to the remote host. The sort of backup is specified by SCHEME: monthly Make a full (null) dump of the filesystem. weekly Make an incremental dump of the filesystem relative to the latest monthly dump. If hdup cannot find a monthly dump it will complain, unless always backup is on. Then a monthly dump will be performed. daily Make an incremental dump of the filesystem relative to the latest weekly dump. If hdup cannot find a weekly dump it will complain, unless always backup is on. Then a weekly dump will be performed. HOST is the host of which hdup should perform the backup. This should match a '[HOST]' statement in the configuration file. The directories of that host (specified with 'dir = dir1, dir2', ...) will be backed up to the directory specified with 'archive dir = dir'. If HOST is not found no backup will be made. @USER@REMOTEHOST is the host to which the archive should be transfered. This must include the user name. E.g @miekg@elektron.atoom.net. It is illegal to specify the colon ':'. hdup must be present on the remote host. The location of this remote hdup is specified using remote hdup. Any program capable of transferring files can used for this purpose. Currently tested is ssh. Other programs like rsync (not tested) may also work. Any program with the following characteristics will do: o must be usable as a filter (read from stdin, write to stdout), o must support user@remotehost syntax. Second format When using the 2nd format a previous backed up filesystem is restored. Remember: hdup pushes a restore from the remote to the local host. This is opposite from the backup operation! HOST is the host who's archives should be restored. DATE everything up to this date will be restored. hdup will look for the most recent monthly archive, then the most recent weekly and finally for the daily to pad up to date given. The DATE can either be specified as DD-MM-YYYY (date spec = default), as YYYY-MM-DD (date spec = iso) or as MM-DD-YYYY (date spec = american). This is controlled from the configuration file. A special date is 'static' which instructs hdup to look in the 'static' directory. This is used when 'no history = yes'. This is dangerous to use because hdup will overwrite the old backup file with the new one. When your system crashes during the overwrite you have no backup at all! Only use this when you really don't have room for two monthly backups. Another special date is 'today' which instructs hdup to use the current date. DIRECTORY tells hdup to which directory the archive should be untarred to. Be very careful when running hdup as root and specifying '/' as the directory. Version 1.4 and above refuses to restore to '/'. This can be overridden by specifying 'force = on/yes' in the configura- tion. @USER@REMOTEHOST is the host to which the archive should be restored. This must include the user name. E.g @miekg@elektron.atoom.net. As as version 1.6.6 it is illegal to specify the colon ':'. On the remosthost and in DIRECTORY the archive is restored. hdup must be present on the remote host. Status message When hdup is finished with its current operation it will print an overview message: Hdup version.: 1.6.6 Host.........: elektron Date.........: 2003-02-02 Scheme.......: monthly Archive......: elektron.2003-02-02.monthly.tar.gz Encryption...: no Archive size.: 257k Elapsed......: 0:01:27 Status.......: successfully performed backup Which can be mailed to you via cron. OPTIONS
-c, --config=config Location of the configuration file. The default location of hdup's configuration file is /etc/hdup/hdup.conf. -s, --specific=file Restore a specific file from an archive. file must be the full path to the file, relative paths will not work. -i, --ignore-tar Ignore tar errors when restoring. -I, --ignore-conf Ignore errors in the configuration file. -P, --patched_tar Tar is patched so that it can handle --no-recursion, --listed-incremental and --files-from together. This options enables two things in hdup; 1) directory info is written to 'filelist' and 2) --no-recursion is given to tar. This solves the bug whereby hdup wouldn't include directory information in the archives. -d, --dryrun Do a dryrun - don't do anything with the filesystem -q, --quiet Suppress the output of the subprocesses (like 'tar' and 'ssh'). -q -q, --quiet --quiet Suppress the logging output from hdup. -q -q -q, --quiet --quiet --quiet No logging at all. Even no overview message. -V Be more verbose. -V -V Be even more verbose. This will show which files are backed up by hdup IF you also supply the -D option. -h, --help A help message. -v, --version Show the version of hdup. -D, --debug Show a lot of information which can aid debugging. The -V and -q options do not effect each other. A '-qqq -VV' option list will mean that hdup will show what is run, but nothing else (no overview message and no warning nor errors). ENCRYPTION
hdup can encrypt the archives, mcrypt is used for the actual encryption. As of version 1.6.25 GPG can also be used to encrypt the archive. Note that currently remotely restoring a GPG encrypted archives is not working. mcrypt With mcrypt --list you get a list of the algorithms mcrypt supports: ... serpent (32): cbc cfb ctr ecb ncfb ofb nofb wake (32): stream loki97 (32): cbc cfb ctr ecb ncfb ofb nofb rijndael-128 (32): cbc cfb ctr ecb ncfb ofb nofb rijndael-192 (32): cbc cfb ctr ecb ncfb ofb nofb ... If you want to use loki97 you specify algorithm = loki97 in hdup.conf. The same goes for all the other algorithms. GPG To use GPG the following is needed. Set algorithm = gpg and key = user ID of key. In my case I've created a GPG key with user ID of 'miekg' so I use: algorithm = gpg key = miekg The key is supplied to gpg with the -r argument. See the manpage of gpg for more details. When restoring a GPG encrypted archive you will be prompted to unlock your private key. AUTHOR
Written by Miek Gieben. Wouter van Gils helped a lot with testing pre-release versions. User feedback is appreciated. REPORTING BUGS
Report bugs to <hdup-user@miek.nl>. BUGS
The %a expansion is not always the same in the prerun and postrun scripts (when using encryption). LIMITATIONS
Under Linux kernel version 2.2 the archive size cannot exceed two (2) Gigabyte. If you need larger archives sizes you should upgrade your kernel. You can however solve this by using chunk size. Just define your maximum allowed size, something like chunk size = 1800M and you're set. If you encrypt archives and want to restore them, you are forced to use one encryption scheme for all the backups. hdup does not store the key and algorithm with the archive, thus it is impossible to restore archives that use different keys and algorithms. COPYRIGHT
Copyright (C) 2001-2005 Miek Gieben. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
hdup.conf(5) for information about hdup's configuration file. 18 Mar 2003 hdup(1)
All times are GMT -4. The time now is 10:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy