On Sun, Mar 02, 2014 at 19:20:30 -0500, Nathan Stratton Treadway wrote: > On Sun, Mar 02, 2014 at 21:57:59 +0100, Charles Stroom wrote: > > but then not working in the next scheduled amdump. Until I realised > > that all my tests were done one after the other, but the amdump was done > > after the PC was rebooted (this is my personal PC, which is shutdown > > every night). So I repeated my manual tar tests, and indeed, they > > worked even without the "no-check-device", but failed if I did a reboot > > in between. > > If you compare the Device Id from the "stat" for the files being > backed up (the decimal version) with the the "dev" field of the snapshot > files, you should find that without "no-check-device", you get full-sized > level 1 dumps whenever the Device Id changes...
I should have mentioned the "tar-snapshot-edit" script here, too: http://www.gnu.org/software/tar/utils/tar-snapshot-edit.html Since your device ids are continually changing (rather than changing once due to some particular event like an OS upgrade) the actual "editing" function of the script probably won't be useful to you, but you can use the script to get a summary of the device numbers found in a particular snapshot file rather than having to parse through the file yourself and try to pick out the "dev" field value. (Since Amanda always runs with the --one-file-system option, the summary should always show one device number with all or almost all of the entries; any other device numbers that show up would represent mount points for other filesystems, and would have occurrence counts of "1". Anyway, in your case you should find that when the level 1 dumps are full sized, the "main" device number will be have changed between the level 0 and level 1 snapshot files.) Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway - [email protected] - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239
