This guide, demonstrates how to install and Use Syncthing file synchronization on Rocky Linux 8. The devices could be PCs, server or mobile phones. It allows one to make changes on one device such as file creation, modification and deletion which is replicated automatically on other devices. It allows two devices to be synchronized over the LAN or remotely over the internet. # Gives rwx permissions by default, recursively.Syncthing is a free and open source peer to peer (P2P) file synchronization app. ❯ setfacl -R -m u::rwx,g::rwx,o::rwx /mnt/storage & # Gives read,write,exec permissions for currently existing files and folders, recursively. Set the default ACLs for the group and other.Set the setgid bit, so that files/folder under will be created with the same group as.mnt/hdd*:/mnt/shared /mnt/storage rgerfs allow_other,use_ino,cache.files=partial,dropcacheonclose=true,ignorepponrename=true,func.mkdir=epall,posix_acl=true,x-gvfs-show 0 0 mnt/hdd*:/mnt/shared /mnt/storage rgerfs allow_other,use_ino,cache.files=partial,dropcacheonclose=true,ignorepponrename=true,func.mkdir=epall,posix_acl=true,x-gvfs-show 0 ❯ cat /etc/fstab /mnt/hdd* /mnt/merged rgerfs allow_other,use_ino,cache.files=partial,dropcacheonclose=true,ignorepponrename=true,func.mkdir=epall,posix_acl=true 0 /mnt/shared fuse.sshfs _netdev,user,idmap=user,follow_symlinks,IdentityFile=/home/user/.ssh/id_rsa,allow_other,default_permissions,uid=1000,gid=1001,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,noatime,x-gvfs-show 0 0 UUID=be8b9fd3-7ed2-45ae-881a-25fa06f4de47 /mnt/hdd2 auto nosuid,nodev,nofail,x-gvfs-show 0 /mnt/storage fuse.sshfs _netdev,follow_symlinks,IdentityFile=/home/user/.ssh/id_rsa,allow_other,default_permissions,uid=1000,gid=1000,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect,noatime,auto,x-gvfs-show 0 ❯ cat /etc/fstab /mnt/hdd* /mnt/merged rgerfs allow_other,use_ino,cache.files=partial,dropcacheonclose=true,ignorepponrename=true,func.mkdir=epall,posix_acl=true 0 /mnt/shared fuse.sshfs _netdev,user,idmap=user,follow_symlinks,IdentityFile=/home/user/.ssh/id_rsa,allow_other,default_permissions,uid=1000,gid=1001,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,noatime,x-gvfs-show 0 0 UUID=d605a480-f133-443c-8fe7-5b0a2d1c60c1 /mnt/hdd2 ext4 nosuid,nodev,nofail,x-gvfs-show 0 /mnt/hdd0 fuse.sshfs _netdev,follow_symlinks,IdentityFile=/home/user/.ssh/id_rsa,allow_other,default_permissions,uid=1000,gid=1000,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect,noatime,auto,x-gvfs-show 0 0 This is what I was using, which is working ❯ cat /etc/fstab # mnt/hdd* /mnt/storage rgerfs allow_other,use_ino,cache.files=partial,dropcacheonclose=true,ignorepponrename=true,func.mkdir=epall,x-gvfs-show 0 0 UUID=be8b9fd3-7ed2-45ae-881a-25fa06f4de47 /mnt/hdd2 auto nosuid,nodev,nofail,x-gvfs-show 0 /mnt/hdd0 fuse.sshfs IdentityFile=/home/user/.ssh/id_rsa,uid=1000,gid=1000,allow_other,default_permissions,_netdev,follow_symlinks,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect,noatime 0 0 mnt/hdd* /mnt/storage rgerfs allow_other,use_ino,cache.files=partial,dropcacheonclose=true,ignorepponrename=true,func.mkdir=epall,x-gvfs-show 0 ❯ cat /etc/fstab # UUID=d605a480-f133-443c-8fe7-5b0a2d1c60c1 /mnt/hdd2 ext4 nosuid,nodev,nofail,x-gvfs-show 0 /mnt/hdd0 fuse.sshfs IdentityFile=/home/user/.ssh/id_rsa,uid=1000,gid=1000,allow_other,default_permissions,_netdev,follow_symlinks,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect,noatime,auto 0 0 This is what I’ve tried to do without ❯ cat /etc/fstab # I don’t know if this solution works with mergerfs. I would like to avoid that error too, without having to execute something like chmod -R 777 /mnt/merged often. Which I guess it’s because I didn’t have the proper permissions. The only error I had before was some applications giving input/output error or permission denied. NFS made one computer hang when the other was disconnected which is why I ended up using sshfs. If possible I would like the computers to still work while the other is disconnected. Now I’ve tried merging the drives of B too but I haven’t managed to do it. I’ve been using mergerfs and sshfs and it was working when I shared one drive of B with A, merged them there and shared the merged folder back with B. I want to share the drives of two computers using Manjaro Linux and see them all as one directory in both computers.
0 Comments
Leave a Reply. |