WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Backup fails  (Read 289 times)

Offline bushyiii

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

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5935
Re: Backup fails
« Reply #1 on: August 18, 2018, 06: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

  • WikiUser
  • *
  • Posts: 33
Re: Backup fails
« Reply #2 on: August 18, 2018, 08: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, 08:28:19 AM by bushyiii »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1680
Re: Backup fails
« Reply #3 on: August 18, 2018, 08: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

  • WikiUser
  • *
  • Posts: 33
Re: Backup fails
« Reply #4 on: August 18, 2018, 09:30:47 AM »
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: 1680
Re: Backup fails
« Reply #5 on: August 18, 2018, 10:12:13 AM »
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: 1680
Re: Backup fails
« Reply #6 on: August 18, 2018, 10:14:21 AM »
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: 265
Re: Backup fails
« Reply #7 on: August 18, 2018, 10:24:52 AM »
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

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

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 2732
Re: Backup fails
« Reply #9 on: August 18, 2018, 07: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