this post was submitted on 29 Dec 2023
16 points (100.0% liked)

KDE

5074 readers
100 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 1 year ago
MODERATORS
 

I’m looking for a way in Plasma to backup and sync my data from PC to a LAN Samba share on my NAS, using a GUI program.

The many sync apps (Grsync, Unison, Lucky, RealTime, Kup etc.) I’ve tried over many years, don’t let me set a remote/samba target. Most navigate locally only. I would mount the share, but nobody I’ve found knows of a GUI way to permanently mount it.

Everything else I need on Plasma has a GUI solution. Just a sync fails. I’d be grateful to hear of a GUI solution

all 38 comments
sorted by: hot top controversial new old
[–] leopold@lemmy.kde.social 2 points 9 months ago (1 children)
[–] ian 1 points 8 months ago* (last edited 8 months ago) (2 children)

Thanks. I already tried Smb4K. It finds the LAN shares and mounts them. But they are only mounted when Smb4K is running. I need them permanently mounted.

[–] kloud@ioc.exchange 1 points 8 months ago (1 children)

@ian @leopold
I believe you can add a mount in fstab with the nofail flag, so the pc still boots even if the share is not accessible

//192.168.0.5/storage /mnt/data cifs guest,uid=myuser,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm,nofail 0 0

[–] ian 1 points 8 months ago (1 children)

Thanks. I'm sure that is technically possible. However I'm looking for an easy GUI way to do this for non IT specialists. Plasma fails badly here. Unless I'm missing a trick...

[–] kloud@ioc.exchange 1 points 8 months ago (1 children)

@ian
You only do it 1 time, then you can access it via dolphin.
Also, do you really need it mounted? You can always access your share in dolphin directly via network -> smb shares.
Another option is to add smb4k to autostart.
And to conclude, I don't think any de specifically allows you to to that, so that's not a kdes' fault

[–] ian 2 points 8 months ago (3 children)

Typing magic spells is not something I want to explain to my kids. Bad usability is bad usability, even if they have to do it just once. Also it's not always worked for me. Maybe I got just 1 letter wrong? That is the weakness with a hack. Some time ago I did autostart smb4k. But after a while it no longer mounted any shares. Also I suspect running an app just to mount the share seems like an iffy workaround. Does everyone do it? And no I don't really want to mount the share at all. Yes I can already access it via Dolphin easily. But then I'd have to manually copy any new files and navigate to folders every time. More poor usability compared to 1 click in a sync app. I think Plasma is better than this.

[–] kloud@ioc.exchange 1 points 8 months ago (1 children)

@ian
> Also I suspect running an app just to mount the share seems like an iffy workaround.

There is always some process mounting the shares, be it graphical or not, even on windows

> And no I don’t really want to mount the share at all.

Ah, yes, then you can try freefilesync, it supports a bunch of clouds and ftp, smb, etc
There is also rclone

[–] ian 1 points 8 months ago* (last edited 8 months ago) (1 children)

There is always some process mounting the shares, be it graphical or not, even on windows

OK. Thanks. I thought the fstab entry looked a lot less involved, process wise.

Ah, yes, then you can try freefilesync, it supports a bunch of clouds and ftp, smb, etc There is also rclone

Freefile sync Files mode, can't navigate to the LAN and Cloud mode only has SFTP, FTP and Google Drive. I tried anyway and it did not like it. Maybe there is a trick.

Rclone command line tool has a web GUI mode. I'll try that next. Edit: No go. It seems the command line is needed to launch the rclone Web interface.

[–] kloud@ioc.exchange 1 points 8 months ago (1 children)

@ian
For rclone I use this: https://kapitainsky.github.io/RcloneBrowser/

As for freefilesync, I mixed it up with something, sorry. You are right, it doesn't support smb sadly

[–] ian 1 points 8 months ago* (last edited 8 months ago) (1 children)

Yes I tried the RcloneBrowser. But there is no way to create a new Sync in the GUI. Only manage already configured ones. Unless it's well hidden.

[–] kloud@ioc.exchange 1 points 8 months ago (1 children)

@ian
Yes, but doing it in terminal doesn't require any obscure commands, it will guide you through and ask questions for everything

[–] ian 1 points 8 months ago (1 children)

The terminal is obscure in itself. I'm not sure how to start it or what commands to use.

[–] kloud@ioc.exchange 1 points 8 months ago (1 children)

@ian
There is a button in the gui to add a remote which opens a terminal which asks you for stuff

[–] ian 1 points 8 months ago (1 children)

Oh thats what that was. It looked like an error message. So I tried it. Horrible UX, and it did not have samba. I tried a few of the alternatives and it didn't manage to connect.

[–] kloud@ioc.exchange 1 points 8 months ago* (last edited 8 months ago) (1 children)

@ian
Ah, I think it spawns xterm by default, which looks bad. And it has smb, does not have it for you?
(It's option 44 for me)

[–] ian 1 points 8 months ago

Thanks I founf CIFS/smb on 35. It connected. Now trying to find out how to use the remote.

[–] Lem453@lemmy.ca 1 points 8 months ago (1 children)

You're right, there probably should be a GUI way to do this but the GUI is literally going to do exactly what you described as a 'magic spell'. All GUIs in Linux just run commands like the one above in the background. Everything starts out as a command and sometimes people make a GUI that run it. Naturally not every command has a GUI yet.

Framing this as a hack or magic spell is the wrong way to think about it.

[–] ian 1 points 8 months ago (3 children)

For what I use Linux for, Inkscape, Blender, web browser etc. do you think they send text commands from the GUI to another UI, the CLI? Sounds like an inefficient, legacy irrelevance to the user.

Remember this a usability issue, so for non IT users, incoherent text strings or commands are indeed magic spells. Any inappropriate UI is bad usability. They have put a lot of effort into usability on Plasma. So it's quite a shame that they got this so wrong.

[–] kloud@ioc.exchange 1 points 8 months ago (1 children)

@ian
I still don't get how this is a plasma issue. It's more of a "linux mindset" issue.

[–] ian 1 points 8 months ago

I just meant that, as a Plasma user, there is a missing function. And backing up is quite important too.

[–] Lem453@lemmy.ca 1 points 8 months ago (1 children)

Also it seems like this app allows windows shares as the remote location

https://flathub.org/apps/org.gnome.DejaDup

[–] ian 1 points 8 months ago

Thanks. Yes Gnome is better for apps accessing the LAN. And Deja Dup does connect as I'd expect. But it creates special files that can't be accessed on the LAN itself. Only via restore, that cant be used by other PCs or if you change your distro. So yes there is almost a way with Plasma. But if that is totally useless, it's still a fail.

[–] leopold@lemmy.kde.social 1 points 8 months ago* (last edited 8 months ago)

You should be able to access SMB shares in Dolphin by typing smb://[ip address] in the location bar. If needed you can also set default username and password in System Settings->Network->Settings->Windows Shares.

Also, you can make Smb4K start automatically with Plasma by adding it in System Settings -> Workspace -> Startup and Shutdown -> Autostart.

I've never really used SMB, so maybe there are better solutions.

[–] gerdesj@lemmy.ml 2 points 8 months ago (1 children)

Problem: I want to sync data from a Linux PC to a NAS Samba share. You do impose a constraint that a GUI should be available. I'll bear that in mind.

If you can access it via scp (which is very likely, but you don't mention the NAS model) then use rsync or similar - multiple GUIs are available and it sounds like you've found some already

It's a Samba share, mount it and then sync data. GUIs are available for the sync bit. Depending on your distro a GUI may be available for the mounting thing. If you specify a mount in /etc/fstab then it is a permanent mount.

I suggest you break the problem down into two bits and solve those independently. The first one is data access ie via Samba and the second is the sync bit.

[–] ian 1 points 8 months ago* (last edited 8 months ago)

The shares are on a WD-MyCloud 4Tb off the shelf NAS. With setup page via a browser.
I've never found a GUI way to permanently mount a share. I hope someone develops one.
RcloneBrowser doesn't achieve any more than Dolphin and is not designed for normal users. I'll be trying smb4k again. But it has not been reliable in past attempts.
Backup needs to be something straight forward for non IT users. There are real benefits to all, if more people use Linux and increase the market share. More drivers and applications for example. I find it strange that this is missing from Plasma.

[–] Tippon@lemmy.dbzer0.com 1 points 9 months ago (1 children)

Can you install Syncthing on your NAS? I've been using it with my Synology NAS to sync my music from my PC.

I set my PC to be read only for the share, so that nothing else on my network can accidentally overwrite anything.

[–] ian 1 points 8 months ago (1 children)

Thanks but no. It's an off the shelf NAS disk (WD My-Cloud 4TB) with setup access via a web page. Technically it might be possible, requiring an IT hack. But I'm looking for a user-centric way.

[–] Tippon@lemmy.dbzer0.com 1 points 8 months ago

That's a shame, it would have made things easier

[–] possiblylinux127@lemmy.zip 1 points 9 months ago (2 children)

Try Duplicati. I'm not sure if it supports smb but its worth a try.

[–] ian 1 points 8 months ago (1 children)

Duplicati Thanks. I just tried it. It doesn't list Samba under storage type. I tried it anyway and never managed to get it to work. It's really designed for cloud services. It might be possible to make it work if I knew networking trickery. But I can't do it.

[–] possiblylinux127@lemmy.zip 1 points 8 months ago

That's what I suspected but it was worth a shot.

[–] Lem453@lemmy.ca 1 points 8 months ago (1 children)

Search "duplicati corruption". You'll find lots of stories of people finding out their backup repos are all corrupt.

[–] possiblylinux127@lemmy.zip 1 points 8 months ago

I've never had a issue