Hello all,
I just recently got a license for Unraid and I was trying to accomplish a small plugin to backup my server to a storage bucket online. To accomplish this I decided to separate the files I wanted to back up into separate tar archives and send them one at a time. This was to prevent creating one large tar file of all my files and taking up a lot of space on my system.
Anyway I have been running into this problem, I create an archive in /mnt/user/tempdir but every file that I append to this archive will not be added. To recreate this issue do this:
cd /mnt/user/
mkdir tempdir
cd tempdir
touch file1 file2
# create the archive
tar -cf archive.tar file1
# list the files
tar -tf archive.tar
file1
# append the file2 to the existing archive
tar -rf archive.tar file2
# list the files again, but still only file1 is part of the archive
tar -tf archive.tar
file1
The correct output would be that the second time you list the files with `tar -tf archive.tar` it should be
file1
file2
But it is not.
But, if I change the directory to /mnt/disk1/ the operation is successful. Such as this:
cd /mnt/disk1/
mkdir tempdir
cd tempdir
touch file1 file2
tar -cf archive.tar file1
tar -tf archive.tar
file1
tar -rf archive.tar file2
tar -tf archive.tar
file1
file2
I see that Unraid uses shfs to mount all the drives to /mnt/user and I have to admit I have never heard of this filesystem before.
Anyway my question is what the heck could be causing tar's append command to fail within the shfs filesystem? Does anyone have any ideas? I'm not even really sure where to start.
Edit: Also, if anyone has any suggestions on how to accomplish my original problem I would like that. What I am trying to do is create a bunch of <2gb archives and upload them to a storage bucket. The problem being where to store an archive before sending it off. I chose /mnt/user because I am pretty sure that is the only location that uses the hard disks