It must be possible because Amanda does this same action without a problem according to this thread:
http://www.linuxquestions.org/questi...backup-587030/
Looking through the amanda source code they actually use the line:
Code:
$gnutar --create $verbose --directory $disk --listed-incremental ${gnulist}/${listdir}_${level}.new --sparse --one-file-system --ignore-failed-read --totals --file - .
But even playing around with that I couldn't get it to work for this application.
Alternative: as suggested in the above thread using rdup may be a better way to go. However, one of the attractions of using tar is the built in compression abilities. But if you check out this link:
http://www.miek.nl/projects/rdup/index.html it has some information on how you can use both of them.
So, either through an actual bug or just lack of documentation the tar option --incremental-backup is unreliable, however the following command uses rdup in conjunction with tar to create the desired effect.
Code:
rdup -N $DestDir/$Timestamp $DestDir/$DupInfo $Source -F "%N\n" | tar --create --files-from - --no-recursion | bzip2 > $DestDir/Backup_$Date.$Iteration.tar.bz2
Summary: "tar --listed-increment" is bad "rdup | tar --no-recursion" is good. I have attached my backup script for reference or w/e.
Update: oh no! I have tested this approach overnight and it doesn't work either, checking the rdup dumps I have found that the inode numbers have all changed. It looks as if over the course of two hours the inode numbers that rdup detects on the windows machine all change and cause a full dump.