stewartadam / fwbackups

A feature-rich, user-friendly backup program [bugfixes only]
http://www.diffingo.com/oss/fwbackups/
GNU General Public License v2.0
86 stars 20 forks source link

schrodinger's backup #22

Closed 88artur88 closed 8 months ago

88artur88 commented 10 months ago

System Details

Issue description

backup is incomplete, fwbackup doesn't report an error. Backup files are cut at ~1.6GB.

Bug details

Steps to Reproduce:

  1. configure backup to use bzip2 or gzip
  2. attemt to recover data form that file

Observed results: Unexpected EOF in archive

Expected results:

  1. Complete and recovareble backup
  2. Error reported when backup isn't successfull

If the fwbackups log has any relevant information, include a snippet below:

unfortunately IMPORTANT information about an error during backup process is MISSING from logs. 
stewartadam commented 10 months ago

Thanks for reporting - I'd like to collect a few more details, as if the backup started successfully then this is likely an error condition in the underlying tar/bz2 commands.

  1. Is the issue consistently reproducible if you run a new backup, then attempt to restore?
  2. What is the destination filesystem? Is it possible that disk is full?
  3. Have you tried enabling debug logging in the preferences and running a backup? You should see the command it is executing which you can try running yourself, for example:

    example log output
    Dec 31 12:21:53 :: INFO : Using tar.gz: Must backup all paths at once - Progress notification will be disabled.
    Dec 31 12:21:53 :: DEBUG : Backing up path 1/1: /home/stewartadam/backuptest/data
    Dec 31 12:21:53 :: DEBUG : Running command: nice -n 0 tar cfz '/home/stewartadam/backuptest/destination/Backup-setname-2023-12-31_12-21.tar.gz' '/home/stewartadam/backuptest/data'
    Dec 31 12:21:53 :: DEBUG : Starting subprocess with PID 40156
    Dec 31 12:21:55 :: DEBUG : Subprocess with PID 40156 exited with status 0
    Dec 31 12:21:56 :: INFO : Finished automatic backup operation of set 'backuptest'
    

    In this case running:

    tar cfz '/home/stewartadam/backuptest/destination/Backup-setname-2023-12-31_12-21.tar.gz' '/home/stewartadam/backuptest/data' would let you directly observe the underlying backup command. I'd be curious to see what happens when you hit that ~1.6GB point.

  4. What types of files are include in your backup set? (e.g. mostly documents? whole filesystem?)
stewartadam commented 8 months ago

@88artur88 I've been unable to reproduce this issue, I tried both with a 3GB set of source files as well as trying to run a backup for >1h in case it was related to a timeout - but on my F39 installation it worked as expected.

Feel free to re-open if you can provide any of the information above, but as I can't reproduce this to diagnose the issue I'll close this for now.