-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use sshfs (FUSE) to backup files with rustic. #232
Comments
This should fix rustic-rs#232 The idea: Even on a system that supports extended-attributes, we might encouter some part of the file-system that doesn't. For instance a `mount` with the right option (streams_interface=windows for instace) will not support xattr. AFAIK it also seems to be the case with a simple sshfs on a debian/ubuntu.
This should fix rustic-rs#232 The idea: Even on a system that supports extended-attributes, we might encouter some part of the file-system that doesn't. For instance a `mount` with the right option (streams_interface=windows for instace) will not support xattr. AFAIK it also seems to be the case with a simple sshfs on a debian/ubuntu.
This should fix rustic-rs#232 The idea: Even on a system that supports extended-attributes, we might encounter some part of the file-system that doesn't. For instance a `mount` with the right option (streams_interface=windows for instace) will not support xattr. AFAIK it also seems to be the case with a simple sshfs on a debian/ubuntu.
Hello, I reproduced something similar with a minimal linux setup (ubuntu 22) How I reproducedTo reproduced, I hosted a "linux server" using a dockerfile, and used sshfs on a test directory. # on host:
docker pull linuxserver/openssh-server
docker run --rm -e PUBLIC_KEY="$(cat ~/.ssh/id_rsa.pub)" -it linuxserver/openssh-server bash
# on docker container:
su linuxserver.io
cd /config
mkdir test-dir
echo "foobar" > test-dir/foobar
# on host:
mkdir test-dir
sshfs -p 2222 [email protected]:/config/test-dir test-dir The error I reproduceUsing getfattr -d -m '' -- test-dir/foobar
# getfattr: test-dir/foobar: Operation not supported The error I have is slightly different from your logs @MarlonJMejia:
This difference in our errors make me doubt that my solution fixes your problem. The fix I proposeThe idea is to ignore this error that come directly from a failed syscall, and proceed without any "extended-attributes" for this backup. See pull request: #233 |
Compiled and used the patch created by @nardoor with his help. Was able to finally create a backup of the files, but it does take quite an amount of time (during the initial backup) around 1HR30M~+ and almost the same amount while creating a second snapshot. I've gone ahead and capture the output of the session, the logs contain quite an amount of lines and they are a bit wonky due to the color encoding. Command executed./rustic/target/debug/rustic -r . backup /tmp/.backup_sshfs/mnt/storage/appdata /tmp/.backup_sshfs/var/lib/vz/dump/ --password . --log-level debug Tmux session logshttps://0x0.st/Xfxj.log - Initial backup NotesI do understand that the wikijs directory contains way too many files, specifically it seems to take very long under the node_modules directory and I do understand that I could in fact create an ignore file to ignore the directory, therefore if the fix is to simple ignore I will simply do so. But I am curious as to why others don't seem to have this issue (rsync, borg, kopia) and I will retry with restric as well. |
@MarlonJMejia thanks a lot for testing the patch of@nardoor. I think this can be added soon to rustic main. About you behavior: I actually also miss an explanation why the scanning (and obviously it is just the scanning) is so slow in your case. I'm also curious what your experiences are using other tools, especially restic. You could test the following;
|
Hey aawesome, I tested it again with restic and as per your advice (--no-scan on rustic). I think this issue is mainly with rustic/restic in how they handle their file searching as both have the same issue. I won't post the entire log this time but rustic (this was on an incremental backup) initial date/time
Again, I don't believe it matters much as I should not be having that many files being backup, therefore I'll be closing the issue. |
This should fix rustic-rs#232 The idea: Even on a system that supports extended-attributes, we might encounter some part of the file-system that doesn't. For instance a `mount` with the right option (streams_interface=windows for instace) will not support xattr. AFAIK it also seems to be the case with a simple sshfs on a debian/ubuntu.
This should fix #232 However I'm not so sure as the error message I encountered is slightly different from what reported by the issue creator. In both cases I think this PR is worth looking into when you have time. ## The idea: Even on a system that supports extended-attributes, we might encounter some part of the file-system that doesn't. For instance a `mount` with the right option (streams_interface=windows for instace) will not support xattr. AFAIK it also seems to be the case with a simple sshfs on a debian/ubuntu (as experienced in #232).
Version of rustic
What I am trying to accomplish
I am trying to mount a directory via sshfs to backup from a remote source.
The mount is successful and I am able to view the files for the remote host. I've also tried to do a more bare bones mount with no options. (There is no error on the output or success after an hour)
user is
root
for both local and remote host to execute the commands and mountfiles.The issue
I receive multiple warnings (see below), I initially though this warnings were simply warnings but it seems that backups are not sucessfull if there is a huge amount of files (or there is an actual error with sshfs) in the directory of the remote source.
errors
wc of files in the remote directorys to backup
Command to execute backup
Notes
This same process works fine with Kopia, Duplicacy and Borg.
Backup process seems to work completely fine with a lower of total amount of files.
Please let me know if I can give you guys any descriptive logs.
The text was updated successfully, but these errors were encountered: