Server :: Cron Backup Failing / Need To Browse Tape

Feb 9, 2010

we have a server that runs a backup (cron job) at 9:15 every night. When I log on in the morning I have mail message that gives me a long list of all the files that were backed up the night before. For a couple of weeks now, the mail message gives me an empty list. Yet, when I run the same job manually from a #prompt, it runs. I am not able to run this job with cron in the daytime because too many users are in it. I wanted to browse the tape to see if the backup is really failing to copy the files or if they are on the tape and the mail message is bogus.

Since the backkup was done with cpio instead of tar, I'm not sure if I can browse the tape with restore -i anyway.What would be the best way to browse the tape on /dev/rmt/1 without actually restoring anything ?This is an ancient DGUX system, not Linux, and I'm not a unix expert I just inherited this server recently, but a lot of things are very similar to Linux and it looked like this might be a good place to ask.

View 3 Replies


ADVERTISEMENT

Server :: Tape Drive Backup Linux

Oct 8, 2010

i have centos 5.9 running on my server and i have to take backup of my entire data from the different server.This one I want to make it as backup server. I need few informations about the tap drive

1.Which tape drive is good also compatible with Linux (centos ), pls send me the link
2.How to take backup into tape drive , good if you send any doc.
3. Any backup software which is kind of opensource

View 5 Replies View Related

Server :: Directory Backup Cron Script?

Oct 24, 2009

What's a good cron script for backing up and zipping a directory of files, or multiple directories with files, to a backup directory on my server, on a daily basis?I found an easy to use mysql backup script, now I need to backup my site directory, but not all the directories in it. So I need a method in the script to omit certain directories from backing up, ie dirs that contain gigs worth of files.This seems like it should be one of the most common crons to set a server up with but two pages deep in google (and here) I have yet to find anything remotely resembling a solution.

View 9 Replies View Related

Server :: MySQL Backup Cron Job Not Executing Correctly?

Mar 2, 2011

I own a CentOS 5 VPS. I typed crontab -e, and then I added the following line to automatically have my server backup mysql

0 * * * * mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

When I go in and look, it doesn't place any files in /home/dbbackup. When I run

mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

View 3 Replies View Related

Ubuntu :: Backup To Tape Drive (hp Dat 72)?

Jul 5, 2010

I am a Ubuntu 10.04 Desktop user.

I am searching for a backup software to backup to my hp dat72 tape drive. It is only to backup my data from 1 PC.

I have already found bacula but it seems to big for my purpose. I need an easy and automatic software.

Could you recommend a backup software for my needs?

View 8 Replies View Related

Ubuntu :: How Many Times Can Use A Tape For Backup

Oct 5, 2010

How many times should a backup tape be used before being discarded? i cant find an answer for this question does anyone know, I'm thinking 1 but i have almost no knowledge on tape backup so i could be dead wrong.

View 3 Replies View Related

Hardware :: Bacula - Setting Up Tape Drive Backup

Sep 15, 2010

I am setting up a tape drive back up, but I am having "fun" with bacula configuration. Basically the drive is working , I ran the test with the btape program and all was correct. I am basically meddled up with the jargon and the very large bacula documentation. I created some 2 volumes and gave the mounted the tapedrive (labeled) the name of one of them "tapevol2" .... now I can not relabel the tape, I deleted the volume "tapevol2" but still the tape drive is mounted with that name, even though the volume is deleted. If I add ( create more volumes) I can not make the tape to mount with anything different that "tapevol2". I would like to go back to zero and delete all volumes, and mount the tape with one of the newly created volumes, so the jobs back up can run.

View 2 Replies View Related

Software :: Bacula And Overwriting The Data On The Next Backup On The Tape

Feb 22, 2010

Currently I have bacula backing up the contents of my server on a daily basis (Mon-Fri) on to a tape. There are in total 9 backup tapes so far. One for each day of the week (Mon-Thurs) and one for every Friday in the month (so there are 5 friday tapes). The tapes are all from the same pool and once the tapes are full they should then get recycled. As I understand and from what I have seen, the data from my server backups up to the tape and is then marked with the append status. Every time that tape is used, data is then appended onto the tape until the tape is full. At this point it is marked as full but wont be recycled until all the tapes from the pool are marked as full (so until all 9 tapes are full).

My question is, is there a way of overwriting the data on the next backup on the tape, rather than appending or requiring that all tapes in a pool are full before a tape can be recycled. As the mon-thurs tapes currently cant be recycled until all the Friday tapes have been used. The reason why I dont have seperate pools for the Friday backups and the other days of the week or even seperate pools for each day of the week, is that if a tape is accidently not changed or someone puts in the incorrect tape by accident a backup will still occur. Which is better than no backup!

View 2 Replies View Related

General :: Making Multi Tape Backup Wish To Send Email

May 27, 2011

I have s script that standard users use to back up usb drives to lto4 tapes.it asks for a JobNumber and sends an email upon success.I recently expanded it to use Multiple tapes.my specific Q is if the system reaches the end of the tape it happily mentions in the terminal that one needs to put in a second tape.what i would like to do is send an email that --It needs a second tape.( it presently sends an email upon successful compleation - so you see the only way a person knows that they need a second tape is if they

1-- know that the drive they are backing up is < 800GB (lto4)
2-- they do not get a completion emails and the think to walk to the basement and see the request for a second tape.
I wish for an email that would tap them on the shoulder that : " you need to put in a second tape "so -- if i know the exact syntax that shows in the terminal - which is:Prepare volume #2 for `/dev/st0' and hit return:then can i test for that somehow?

View 10 Replies View Related

Software :: Use Wget To Retrieve Some Data From Tape Backup Utility?

Sep 30, 2010

I'm trying to use wget to retrieve some data from our tape backup utility (HP Command View 1/8 G2 Autoloader). The URL requires two parameters for the info I want to retrieve. I have searched for a few hours and have tried numerous combinations to get the data but the parameters aren't being executed. I have escaped the URL as well.

Code:

wget --user=x --password=x --recursive --no-clobber --page-requisites --html-extension --convert-links --no-parent -O ssi.html "10.0.x.x/inventory_status.ssi?mag_0=1&mag_1=1"

returns:

Code:

<HTML><HEAD><TITLE></TITLE></HEAD><BODY>
<SCRIPT LANGUAGE="javascript">
top.location.href='logout.ssi';

[code]....

View 3 Replies View Related

Ubuntu Installation :: Accessing The L-TO-4 SAS External Tape Drive And Backup Data On It?

Feb 28, 2011

I am running Ubuntu 10.04, and i recently purchased an tandberg LTO-4 SAS tape drive. I want to access it and backup data on it. Do I simply just connect plug it into the server,and I should be able to backup/transfer data to the tape drive? Or are there intermediate steps before I can do that. Here are some results from commands that I have typed:

Quote:

ls /dev/tape/
by-id

Quote:

ls -lt /dev/tape/by-id/
total 0
lrwxrwxrwx 1 root root 9 2011-02-25 14:54 scsi-3500110a00145553e -> ../../st0
lrwxrwxrwx 1 root root 10 2011-02-25 14:54 scsi-3500110a00145553e-nst -> ../../nst0

[code]....

View 4 Replies View Related

OpenSUSE Install :: Bind Dns, Postfix, Cron - Failing At Boot Time

Mar 19, 2010

Somehow Bind dns, Postfix, Cron all fail to start automatically at boot time? All of them need to be started manually after the system is up in order to function.

View 1 Replies View Related

General :: DD To Backup Failing HDD?

Feb 1, 2010

HDA1 is going to die, SMART says its well beyond dead, and I can tell the read/write times have gone up drastically.

I know I can use dd to copy it from a live CD.

1.) If I dd it to something.img, is there a way for me to "work" on the backup copy? Basically, I need to backup ASAP, but won't have a replacement drive for a while, so I'll need to be able to put the changes into the backup.

2.) When it comes time to restore, if I dd it to a larger drive, is there a way to take advantage of all the extra space? I assume I can dd it over and the MBR & Partition Table will go with, so I can use something like gparted to grow the partition to the drive size?

Or is there a better way to make a backup?

View 4 Replies View Related

Debian Hardware :: Getting HPE Library And Tape Tools To Recognize Tape Drive

Apr 3, 2016

I have been using an LTO-5 Ultrium-3000 tape drive connected to an ATTO HBA without problem. I can control the tape drive using "mt -f /dev/nst0" and have been able to make successful backups using cpio, tar, and dump/restore. I followed some instructions on the web about how to install the HPE Library and Tape Tools application (version 4.21) which relies on conversion of a rpm to a deb file. The software seems to have been installed correctly and runs. However the hardware scan function does not recognize my tape drive. The following is suggested in the user manual if the tape device is not recognized by the software under Linux:

1. Login as root.
2. Edit the following file:
vi /etc/modules.conf
3. Add the following line as appropriate:
add options scsi_mod max_scsi_luns=128
4. Reboot the computer.

The problem is I don't have an /etc/modules.conf and am not sure exactly which file would be equivalent? If this is even the correct solution.

My tape drive is controllable and functions well using "mt -f /dev/nst0 status" so it seems to be a matter of LT&T software to detect the tape drive.

At the risk of providing too much info here some, possibly relevant, output from lshw

*-pci:3
description: PCI bridge
product: 6 Series/C200 Series Chipset Family PCI Express Root Port 1
vendor: Intel Corporation
physical id: 1c
bus info: pci@0000:00:1c.0
version: b5

[Code] .....

View 1 Replies View Related

Hardware :: Retrival Partial Files From Lto 4 Tape Instead Of Retrieving Complete Tape

Apr 26, 2010

I want to know how to retrival partial files from a lto 4 tape instead of retrieving the complete tape.

View 2 Replies View Related

Ubuntu :: Use The Tar Command With A Tape Drive - Data Is Larger Then 1 Tape

Mar 8, 2010

I am looking at getting a DLT drive for my network; however, I have never used the tar command with a tape drive. What happens if the data is larger then 1 tape? Does the tar application automatically span tapes or do I need to use switches so it spans multipule tapes? Right now my Full backup will take 2 or 3 tapes.

View 3 Replies View Related

Red Hat :: Unable To Insert DAT72 Tape In Tape Drive / Fix It?

Dec 8, 2008

I have dell poweredge 830 server with tape drive and RHEL 4 running on it....the issue i am facing is,i am unable to insert the tape as i had ejected the tape forcefully from it....

i tried to do a listing of the contents backedup on tape and it got struck in middle throwing below error,

/dev/st0:device input/output error. after which i was unable to eject the tape using
mt -f /dev/st0 rewoffl

i removed the tape by holding the eject button and now when i try to insert another tape, it's unable to take the tape in to tape drive...

I've tried doing all except reeboting the server, can any one help me out in this issue, hope the blow information may help in debugging the issue... code....

View 8 Replies View Related

Fedora :: Finding A Backup Failing Laptop To Standalone Drive?

Feb 11, 2010

I am running Live 12 on my CD rom drive of my dying laptop. I have a major Windows registry error on that system and am working to recover my files. I have successfully moved a couple of folders from the laptop to my Seagate Free Agent Drive as a test.What I would like to know is, is there a way to copy my files and folders without literally dragging and dropping each one? We're talking 140 G of folders....sigh.

View 1 Replies View Related

Ubuntu :: Failed Backup Attempt Or Failing Hard Drive

Jan 5, 2010

I made an attempt to backup my system (karmic koala) using this routine. cd / then sudo tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

The process of backup went on for a very long time, which is probably normal. On returning to the computer in the morning, it was in suspend mode and would not power on via the usual method,tapping power button. So then I used the reset button, and after booting up a message appears on the top right that reports "Install problem! The configuration defaults for GNOME Power Manager have not been installed correctly. Please contact your computer administrator."

Is there something wrong with the statement that was used for backing up the system? Also when I attempt to login it does not work now either, it eventually returns to the login user selection. So is there a possibility the backup finished and then there may be a chance the system can be restored from the backup file? I have tried booting up with a live cd and could use some advice on how to navigate with terminal to root of the system and see if the backup file exist even, have been unable to get to the root folder(where the backup would be) with the GUI method via live cd.

View 1 Replies View Related

Ubuntu Servers :: Tape Backup Software For Ubuntu

Mar 21, 2011

I have just installed Ubuntu on a server at work.Now I need a easy to set up (preferable GUI) backup program witch support tape drives, and can send e-mail reports.Is there any in the repertories?

View 4 Replies View Related

General :: DB Backup With Cron From Sh Script?

Jun 8, 2009

Maybe this is a MySQL question, maybe not...

I've written a shell script to back up a database.

But when I run it, it prompts for password even though the script provides it. If I'm doing this manually, it's not a problem, but I want to make a cron job to do it...

Here's the script: Quote: #!/bin/bash
set -xv
#First let's rotate the backup files...
/bin/mv /home/cabazio/someDB-3.tar.gz /home/some/someDB-4.tar.gz
/bin/mv /home/some/someDB-2.tar.gz /home/some/someDB-3.tar.gz

[Code]....

View 2 Replies View Related

Ubuntu :: Simple Cron Job Backup ?

May 4, 2010

i am very sorry if this has been asked before... i'm sure it has.. but i have searched all over the net looking for an answer and i still cant find it...

I have a really simple cron job script like this:

When i run this manually it works fine but when i run it from my ROOT user in Plesk as a cron task is always creates a file that is just 45 bytes. Why doesn't it work... I am running it as a root user.. so surely i must have permission to access the file?

View 7 Replies View Related

General :: Cron Backup Job Fails To Run?

Jan 5, 2011

I'm having a small issue where the backup jobs that I set to run in the crontab of the backup user do not appear to be running. Here's how I set it up (with crontab -e as the backup user):

run amanda every night (check at 2:45 and backup at 3)

[code]...

View 5 Replies View Related

Ubuntu :: Setup A Simple Backup Cron Job

Jun 10, 2010

I'm trying to set up a simple backup script with cron.

In "crontab -e" (and sudo crontab-e - I tried both) I enter "0 22 * * * /home/USERNAME/.backup.sh", with the hope that it will run the script at 10pm each day. The srcipt work fine if I run in a terminal. why it won't work? It's bound to be something obvious....

View 5 Replies View Related

Debian Configuration :: Can't Get Cron-fired Backup Scripts To Run

Oct 15, 2010

Due to a disk crash I've had to rebuild my Debian Lenny system. For some reason I can't get my cron-fired backup scripts to run. They will run manually.

It looks like crond is not running. If I try to start it, here's what I get:

Pancho:/home/lloyd# /etc/init.d/cron start
Starting periodic command scheduler: crond failed!

MORE INFO:

lloyd@Pancho:~$ /etc/init.d/cron start
Starting periodic command scheduler: crond/etc/init.d/cron: line 54: start-stop-daemon: command not found
failed!

[Code].....

Clearly the problem failure to find start-stop-daemon is not the problem and I'm still in the dark.

View 2 Replies View Related

Ubuntu :: Cron - Backup Runs To Have Incremental Number

Apr 3, 2010

I am trying to write as bash script in order to have backup done by cron on the webhosting server. I want all backup runs to have incremental number in front of them. I came up with an idea to store incremental number of a backup in txt file on a server so when next one runs is can check the number in the file. However I am having terrible issues. My script:

[code]....

View 7 Replies View Related

General :: ImageMagick's "import" Command Line Program Failing To Take A Screenshot From CRON Script

Feb 16, 2011

I wrote a simple command line script which is suppose to take my screenshot every 5 minutes.(using ImageMagick's "import" program)

Here is the script (shottr.sh):

This is working fine if I execute by hand i.e:

The script itself is being executed (I hear a voice saying: "Screenshot") but the actual screenshot is not taken.

Be assured that it is NOT permission issue (I placed a simple "touch" invocation and file was created)

May be if it's run from cron...it doesn't have a "window" so it can't take a screenshot from nowhere? If that is the case, then how can I workaround it?

View 1 Replies View Related

Fedora :: Cron Backup Permission Denied On External Drive?

Aug 28, 2010

I have a cron backup scheme in which I rsync, then tar, then copy files on my internal hard drives to an external (USB) drive. When it works, it works. But I often get a "Permission Denied" message for all of these tasks. how the external drive is auto-mounted so I edited the etc/fstab so that the owner of the cron job is also the owner of the external drive (I think. Unfortunately, I'm not at that machine right now (it's at work), I can't give the exact fstab line (I will post it as an update to this thread next time I am at the machine).) BUT, I still get times when the cron backup runs fine and other times I get the Permission Denied. This is a shared machine that is dual-booted, so what I *think* is going on is that when the machine is rebooted to Fedora, but nobody logs in, I get a Permission Denied for the cron backup. It seems like on days when someone has logged in as the main user and left without logging out that the cron backup runs fine.

View 8 Replies View Related

OpenSUSE Install :: Mount - Run Cron To Backup Home Folder?

Jan 4, 2010

I installed a second HD, and formatted it to ext4. I gave it the "/backup" label. I am trying to figure out how to mount it so that I can run cron to backup my home folder onto it once a week. This is what the fstab looks like now

[code]...

View 9 Replies View Related

Ubuntu Servers :: Cron Job Backup - External HD No Longer Mounted

Dec 23, 2010

I'm running a cron job every night to dump a MySQL database to an external hard drive. It works, however when I check on it the following morning the external is no longer mounted and the XFS log file is corrupted. If I run

Code:
xfs_repair -L /dev/sdf1
It works, but then I get these issues:
Code:
XFS: Filesystem sdf1 has duplicate UUID - can't mount
I can reset the UUID, but it's difficult to have to do this every day.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved