LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-11-2003, 05:00 PM   #1
yorkb
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware/Debian
Posts: 8

Rep: Reputation: 0
Tar archive issues


I am setting up a backup linux machine to work over samba to backup files from a windows machine.

Script that i am using:
________________________________________________

#!/bin/sh
# full and incr backup script
# created 27 Sep 99
# Based on a script by Daniel O'Callaghan <danny@freebsd.org>

#Change the 5 variables below to fit your computer/backup

COMPUTER=york_backup # name of this computer
DIRECTORIES=/mnt/york/e/photography/fall2003 # directoris to backup
BACKUPDIR=/bkup/york/e/Photographyfall2003 # where to store the backups
TIMEDIR=/bkup/york/e/Photography # where to store time of full backup
TAR=/bin/tar # name and locaction of tar

#You should not have to change anything below here

PATH=/usr/local/bin:/usr/bin:/bin
DOW=`date +%a` # Day of the week e.g. Mon
DOM=`date +%d` # Date of the Month e.g. 27
DM=`date +%d%b` # Date and Month e.g. 27Sep

# On the 1st of the month a permanet full backup is made
# Every Sunday a full backup is made - overwriting last Sundays backup
# The rest of the time an incremental backup is made. Each incremental
# backup overwrites last weeks incremental backup of the same name.
#
# if NEWER = "", then tar backs up all files in the directories
# otherwise it backs up files newer than the NEWER date. NEWER
# gets it date from the file written every Sunday.


if [ $DOM = "01" ]; then # monthly full backup
NEWER=""
tar $NEWER -cv -f $BACKUPDIR/$COMPUTER-$DM.tgz $DIRECTORIES
fi

if [ $DOW = "Sat" ]; then # weekly full backup
NEWER=""
NOW=`date +%d-%b`
echo $NOW > $TIMEDIR/$COMPUTER-full-date #update full backup date
tar $NEWER -cv -f $BACKUPDIR/$COMPUTER-$DOW.tgz $DIRECTORIES

else #make incremental backup - overwrite last weeks
NEWER="--newer `cat $TIMEDIR/$COMPUTER-full-date`" #get date of last full backup
tar $NEWER -cv -f $BACKUPDIR/$COMPUTER-$DOW.tgz $DIRECTORIES
fi
_________________________________________________

Here is the output :
_________________________________________________

[root@york_backup scripts]# ./york.e.photography.backup
tar: Removing leading `/' from member names
mnt/york/e/photography/fall2003/
mnt/york/e/photography/fall2003/2003-7-16_SMNP_p1r3f4_FINAL.psd
tar: /mnt/york/e/photography/fall2003/2003-7-16_SMNP_p1r3f4_FINAL.psd: file changed as we read it
mnt/york/e/photography/fall2003/2003-7-16_SMNP_p1r5f4_FINAL.psd
.....
.....
mnt/york/e/photography/fall2003/2003-7-16_SMNP_pg4r1f5_FINAL.psd
mnt/york/e/photography/fall2003/2003summer_001 FINAL.psd
mnt/york/e/photography/fall2003/2003summer_007 FINAL.psd
mnt/york/e/photography/fall2003/Thumbs.db
tar: Error exit delayed from previous errors
[root@york_backup scripts]#
__________________________________________________

The first file no matter which folder i backup always has '...: file changed as we read it" (its not being access)

Why do i get the "tar: Erro exit delayed from previous errors"
and
What does it mean?

Thanks
 
Old 10-12-2003, 05:14 AM   #2
yorkb
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware/Debian
Posts: 8

Original Poster
Rep: Reputation: 0
" file changed as we read it" is showing up on about a dozen of the files. The files are only shared under a directory that i know the password to. Why would linux be showing that the file is being read that is on a windox box?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
old tar? archive maenho Linux - Software 4 12-14-2006 07:05 PM
Creating a spanning archive with tar Phyrexicaid Linux - Software 4 01-27-2005 08:04 PM
Problem Creating Archive With Tar In Redhat!!! hamidrh Linux - Newbie 4 09-16-2004 12:37 PM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM
this doesn't look like a tar archive .phister Slackware 5 02-01-2004 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration