LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 06-29-2007, 06:40 PM   #1
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Debian Squeeze. Various live CD's Win7
Posts: 359

Rep: Reputation: 32
dar backup files are empty!!


Have used dar and kdar on a kubuntu edgy Dell D505 laptop and tested the restore, wrote cron scripts etc. All seemed fine until I looked at some data I rarely use only to find that the files are empty!!

Had formatted some hard drive partitions and installed edgy, then feisty (many problems relating to sda and mounting) went back to edgy. But don't remember doing anything to home directory, which is where the empty files are. The files are listed in the directory but are empty.

I also had a bad experience actually on the linuxquestions forum when icons started disappearing from my Desktop! when I was trying to get feisty problem resolved, hence formatting and reinstalling edgy.

Checked a backup from February this year, also had empty files.

Before I start making nefarious plots relating to my flatmate who is a developer and I know from things he said has hacked into my laptop, can
someone suggest what is going on?

Cheers
 
Old 06-29-2007, 10:32 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
Try posting you script and any messages that come up as you run it
 
Old 06-29-2007, 10:44 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,696

Rep: Reputation: 286Reputation: 286Reputation: 286
I use Dar for my backups, and I haven't had that problem.

I checked my copies of documentation (a couple of years old), then checked current documentation at the Dar website. I can't find any option which allows one to include a filename in a backup, but not the contents of the file. It's possible to record directory names in the tree while excluding the files in the directory; but not possible to record the name of a file and not it's contents.

If the file is empty in the backup, it was empty when the backup was made.

You might try posting your questing to the Dar author.
 
Old 07-02-2007, 08:40 PM   #4
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Debian Squeeze. Various live CD's Win7
Posts: 359

Original Poster
Rep: Reputation: 32
Thanks for replying I don't remember any error messages because things seemed to be going ok I set up a cron job to enable automatic backups. When I think of things the next day I try to remember doing a restore. I should probably automate this as well.
So basically I am unaware of error messages.

As it was only a score of files affected, and most of my stuff is ok, I'll just let it go, but it was annoying as I lost some documentation information.
 
Old 07-02-2007, 08:46 PM   #5
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Debian Squeeze. Various live CD's Win7
Posts: 359

Original Poster
Rep: Reputation: 32
Sorry here is my Backups Script

# Relocate and Create Backups
#
rm /Backups/.Backups/Oldest/*.dar
mv /Backups2/.Previous/*.dar /Backups/.Backups/Oldest/
cd /root/.dar_backups/
mv /root/.dar_backups/Latest/*.dar /Backups2/.Previous/
cd /root/.dar_backups/Latest/
dar -c dell -R/ -z2 -s699M -X "dell*.*.dar" -X "*.iso" -P tmp -P proc -P sysfs -P usbfs -P ramfs -P rootfs -P subfs -P media -P devpts -P tmpfs -P sys -P dev -P Oldest -P Previous -P Latest
 
Old 07-03-2007, 01:30 AM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
You might want to make the script check the rtn (success/fail) codes ( aka $? ) of each of those cmds as they run .
 
Old 07-03-2007, 11:51 PM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
What is your directory structure under / ?
 
Old 07-04-2007, 12:14 AM   #8
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,696

Rep: Reputation: 286Reputation: 286Reputation: 286
Here's my script for one of my partitions (I have one for each partition: some partitions change more often than others):
Quote:
/usr/bin/dar -c mnt/data/`date \+\%Y%m%d`ROOTbackup \
-v -b -p -R / bin dev etc lib media mnt \
opt root sbin var \
-D -y9 -m 1K -X "*~" -X ".*~" -X "*.bak" -X "*.*.dar" \
-X "lost+found" \
-P mnt/data -P dev/pts -P lost+found -P media/cdrom -P media/floppy \
-P media/zip -P data -P mnt/windows -P proc -P tmp -P var/cache \
-P var/lock -P var/log -P var/mail -P var/run -P var/spool -P var/tmp\
-Z "*.gz" -Z "*.tgz" -Z "*.bz2" -Z "*.zip" -Z "*.deb" -Z "*.rpm" \
-Z "*.bin" -Z "*.jpg" -Z "*.jpeg" -Z "*.mpg" -Z "*.mpeg" -Z "*.mp3" \
-Z "*.ogg" -Z "*.wav" -Z "*.gif" -Z "*.png" -Z "*.ZIP" -Z "*.Z" \
-Z "*.xpi"
Read the script with the Dar Tutorial in a console window, and you can work out what I've done here.

I stand by my original opinion: if the file is empty in the backup, it was empty when the backup was made.

Everytime I make a backup, I take the time to list the backup, and I do test restores of a few files to verify the files are complete.

I'm certain my use of the Dar system for backups works, because I managed to trash my SuSE 9.3 installation, and restored from backup (stored on another disk).
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Disk ARchive (Backup and Restore) using dar and kdar(dar Frontend) LXer Syndicated Linux News 0 01-12-2007 05:54 PM
Trying to use DAR/KDAR for backup...problems cbjhawks Suse/Novell 3 09-30-2006 09:03 AM
Backup restore on empty hdd Hondro Slackware 6 07-04-2006 01:47 AM
backup to CD (mondo-rescue, dar or partimage) simon196405 Linux - Software 1 11-27-2004 03:09 AM
Certain FAT32 files become empty shoota Linux - General 2 11-07-2003 07:20 AM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration