Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Take a file from the system and put on tape and reset the file to 0 bytes Post 6547 by JackieRyan26 on Thursday 6th of September 2001 01:29:26 PM
Old 09-06-2001
Data Take a file from the system and put on tape and reset the file to 0 bytes

Smilie I did this the other day but one of my support personnel removed my history so i could call it back up to remeber the exact command since i am air-headed at times. I am trying to take a 30 MEG file off the system and drop it to tape then i want to make the file go back to being 0 bytes so the system can start writing a new file. I am running a running HP Unix 11.0 and it is on a L-2000 class system. Please can anyone answer this scenerio the less keystrokes the happier i will be!! Thanks

Last edited by JackieRyan26; 09-06-2001 at 02:31 PM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tape Reset?????

I'm changing from SCO UNIX to Red Hat Linux. In the UNIX box when backing up my data to tape I usually do this: tape reset sleep 5 nohup tar ................... I want to know if there is a way to do "tape reset" in Red Hat Linux. (1 Reply)
Discussion started by: rrivas
1 Replies

2. UNIX for Advanced & Expert Users

Space free on tape /delete a single file on tape

Hi, I' using a sun solaris server, I would like to known if there is the possibility to control how many space is free on a tape and how I can delete a single file on a tape. Thanks DOMENICO (3 Replies)
Discussion started by: Minguccio75
3 Replies

3. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

4. Shell Programming and Scripting

Remove first N bytes and last N bytes from a binary file on AIX.

Hi all, Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this? Your help is greatly appreciated!! Best Regards, Naveen. (1 Reply)
Discussion started by: naveendronavall
1 Replies

5. UNIX for Dummies Questions & Answers

Tarred files not being put on tape

Hi I normally backup to tape using the following command in Solaris 9 on SUN Enterprise 3500 server: tar cvf /dev/rmt/0n data but after a power cut, the server went down without being shutdown since the UPS failed. Now when I issue the tar command I get the root (/) being full looks like it... (6 Replies)
Discussion started by: rahmantanko
6 Replies

6. UNIX for Dummies Questions & Answers

X bytes of 0, Y bytes of random data, Z bytes of 5, T bytes of 1. ??

Hello guys. I really hope someone will help me with this one.. So, I have to write this script who: - creates a file home/student/vmdisk of 10 mb - formats that file to ext3 - mounts that partition to /mnt/partition - creates a file /mnt/partition/data. In this file, there will... (1 Reply)
Discussion started by: razolo13
1 Replies

7. Solaris

How to take backup of ZFS file system on a tape drive?

Hi Guys, I want to take backup of a ZFS file system on tape drive. Can anybody help me with this? Thanks, Pras (0 Replies)
Discussion started by: prashant2507198
0 Replies

8. Shell Programming and Scripting

Get file's first x bytes

is there a better way to do this: head -c 10000k /var/dump.log | head -c 6000k unfortunately, the "-c" option is not available on sun solaris. so i'm looking at "dd". but i dont know how to use it to achieve the same exact goal as the above head command. this needs to work on both solaris... (5 Replies)
Discussion started by: SkySmart
5 Replies
AMDUMP(8)						  System Administration Commands						 AMDUMP(8)

NAME
amdump - back up all disks in an Amanda configuration SYNOPSIS
amdump [--no-taper] [--exact-match] [-o configoption...] config [host [disk...]...] DESCRIPTION
Amdump is the main interface to the Amanda backup process. It loads the specified configuration and attempts to back up every disk specified by the disklist(5). Amdump is normally run by cron. The command optionally takes a set of DLE specifications (see amanda-match(7)) to narrow the DLEs that will be dumped. All disks are dumped if no expressions are given. If a file named hold exists in the configuration directory, amdump will wait until it is removed before starting the backups. This allows scheduled backups to be delayed when circumstances warrant, for example, if the tape device is being used for some other purpose. While waiting, amdump checks for the hold file every minute. In some cases it is desirable to dump all Amanda clients to holding disk without writing anything to storage media. The --no-taper option instructs Amanda to not start the taper, and thus enter degraded mode immediately. See the amanda(8) man page for more details about Amanda. OPTIONS
host [disk]* Specify the host and disk on which the command will work -- see the description of DLE specifications in amanda-match(7). --exact-match The host and disk are parsed as exact values -o configoption See the "CONFIGURATION OVERRIDE" section in amanda(8). EXAMPLE
Here is a typical crontab entry. It runs amdump every weeknight at 1 a.m. as user bin: 0 1 * * 1-5 bin /usr/local/sbin/amdump daily Please see the crontab(5) or crontab(1) manual page for the correct crontab format for your system. MESSAGES
amdump: waiting for hold file to be removed The "hold" file exists and amdump is waiting for it to be removed before starting backups. amdump: amdump or amflush is already running, or you must run amcleanup Amdump detected another amdump or amflush running, or the remains of a previous incomplete amdump or amflush run. This run is terminated. If the problem is caused by the remains of a previous run, you must execute amcleanup(8) and then rerun amdump. EXIT CODE
The exit code of amdump is the ORed value of: 0 = success 1 = error 2 = a dle give strange message 4 = a dle failed 8 = Don't know the status of a dle (RESULT_MISSING in the report) 16 = tape error or no more tape SEE ALSO
amanda(8), amcheck(8), amcleanup(8), amrestore(8), amflush(8), cron(8), amanda-match(7) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHORS
James da Silva <jds@amanda.org> Stefan G. Weichinger <sgw@amanda.org> Amanda 3.3.3 01/10/2013 AMDUMP(8)
All times are GMT -4. The time now is 02:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy