WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Backup fails  (Read 4426 times)

Offline bushyiii

  • Newbie
  • *
  • Posts: 33
Backup fails
« on: August 18, 2018, 09:09:52 AM »
The Error Message"See: /tmp/backup_status"
How does one inspect this file, it doesn't open as a text file?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Backup fails
« Reply #1 on: August 18, 2018, 09:15:54 AM »
Hi bushyiii
Yes, it's a text file. It's probably a small file so try:
Code: [Select]
cat /tmp/backup_status

Offline bushyiii

  • Newbie
  • *
  • Posts: 33
Re: Backup fails
« Reply #2 on: August 18, 2018, 11:09:49 AM »
cat did the trick but now I don't understand what I read.  Should I create a different post?

Here's the output of the command:cat /tmp/backup_status
tar: home/tc/.X.d/alsa: No such file or directory
tar: error exit delayed from previous error


Why is the backup trying to act on a file that doesn't exist?
 What's  driving the backup to include this directory: home/tc/.X.d/?
Here's the contents of the directory:
tc@box:~$ ls -a /home/tc/.X.d/
./  ../

Alsa.tcz is included in the file onboot.lst and alsamixergui is displayed and works
« Last Edit: August 18, 2018, 11:28:19 AM by bushyiii »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Backup fails
« Reply #3 on: August 18, 2018, 11:44:02 AM »
Quote
Why is the backup trying to act on a file that doesn't exist?
The backup includes everything listed in  /opt/.filetool.lst .

Quote
What's  driving the backup to include this directory: home/tc/.X.d/?
Everything in the users home directory is listed for backup by default.

I'm getting the same error message in  /tmp/backup_status  but I'm ignoring it since it doesn't mean the backup failed but just that some listed files couldn't get included in the backup.
Download a copy and keep it handy: Core book ;)

Offline bushyiii

  • Newbie
  • *
  • Posts: 33
Re: Backup fails
« Reply #4 on: August 18, 2018, 12:30:47 PM »
I cannot execute a shutdown or reboot  if the backup option is selected.  So what I am now doing is choosing no backup option when exiting the OS.

Is there any solution so I can exit with a backup?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Backup fails
« Reply #5 on: August 18, 2018, 01:12:13 PM »
Edit your  /opt/.filetool.lst  and remove  home/tc/.X.d/alsa  from the list. Then try to perform a backup.
If  home/tc/.X.d/alsa  will exist in the future, it would be backed up anyway because it's in the users home directory.
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Backup fails
« Reply #6 on: August 18, 2018, 01:14:21 PM »
Actually, I wonder why your  .filetool.lst  includes that file.
What gives
Code: [Select]
cat /opt/.filetool.lst
?
Download a copy and keep it handy: Core book ;)

Offline Pats

  • Sr. Member
  • ****
  • Posts: 322
Re: Backup fails
« Reply #7 on: August 18, 2018, 01:24:52 PM »
1) For automatic backup of /home and /opt directories, filetool.lst is an option. A sample .filetool.lst is given:

home   #Note: / is not required before home dire name
opt        #backup /opt dire
etc/X11         #Backup all files and directories under  /etc/X11
etc/X11/xorg.conf      # Backup just the one file.

2) For a dry run option of filetool, use coomand :
Code: [Select]
filetool.sh -d

3) If backup file mydata.tgz is corrupted or become too big and not required for a fresh backup,  it should be removed .

Offline bushyiii

  • Newbie
  • *
  • Posts: 33
Re: Backup fails
« Reply #8 on: August 18, 2018, 01:43:55 PM »
@misalf  Removing alsa from .filetool.lst solved my problem.  Thank you.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Backup fails
« Reply #9 on: August 18, 2018, 10:20:35 PM »
The backup feature can be quite confusing at first.   Know that a great backup applet is available from the control panel
Control panel > Backup/Restore 
iirc....

Initiating a backup is as easy as typing
backup
At the command line, or
filetool.sh -b


Remember you can disable backup from occurring every shutdown once you have only critical files backed up
Edit the backup entry in home/tc/.profile to =0

Also remember to read the core book



Sent from my iPhone using Tapatalk