Announcement

Collapse
No announcement yet.

Backup to network smb share with Kup

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Backup to network smb share with Kup

    Hi, thank you in advance. Kup does not seem to want to do this. Dolphin can see the share, and I can mount it with smb4k, Kup will navigate to the destination, but will not run a backup. If I change the destination to a local smb share, it works fine. Is there any solution to this? Trying to complete the move from Windows, and this would be a big help. Kubuntu 21.1.

    #2
    See https://www.mail-archive.com/kde-bug...msg652161.html
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      UPDATE: Kup DOES work, if you modify fstab to mount your network share on boot. It also seems to be important that the mount point be outside your /home directory.

      This is not as difficult as it sounds, I'm a noob, If I can do it, you can. If anyone would like to know how I did it, respond and I'll post more.

      Comment


        #4
        Originally posted by Noobee View Post
        This is not as difficult as it sounds, I'm a noob, If I can do it, you can. If anyone would like to know how I did it, respond and I'll post more.
        Glad you sorted it out.

        Don't wait for others to ask for how you accomplished this. Explaining how you did is how this forum continues to be a valued resource for others, including guests who frequent KFN a lot.

        And Welcome to KFN!
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Thank you. OK, here goes. Any text in red you should change to suit your conditions.

          My unit has an NVME as a system drive, and two 2 TB hard drives, along with a 4 TB USB3 external HDD (with smb 1 share) attached to my router. All drives other than the system drive are formatted to NTFS. The 2 internal drives are mounted at /media/USER/drive_name.

          1) Install CIFS Utilities. There are apt commands to do this, mine came pre-installed.

          2) Create another mount point in /media with terminal: sudo mkdir /media/user/nas.

          3) If your samba share requires authentication, create a credential file with these lines:
          user=USER
          password=PASSWORD
          domain=DOMAIN_NAME or IP ADDRESS
          Save it as .smbcredentials in your /home/user directory. This is an open file, so if you need higher security, search for how to change permissions with CHMOD.

          3) Open /etc/fstab in a text editor that supports admin rights. I use Kate, because it automatically elevates your rights as necessary. Add the following line as the last line in fstab: //IP address/share_name /media/user/nas cifs uid=0,credentials=/home/USER/.smbcredentials,iocharset=utf8,vers=1.0,noperm 0 0
          vers= is the samba version, change if necessary.
          DO NOT CHANGE ANYTHING ELSE IN FSTAB!!
          Save fstab. As soon as I did, it attempted to mount the drive, but failed with an error. Mounting in terminal (sudo mount -a) worked, as did a restart.

          Now that your network samba share is mounted, when you set a backup in Kup you can navigate to /media/user/nas to set your destination, and Kup will work!

          Comment


            #6
            OOPS, sorry, another update. It seems Kup will work fine with the method I described, except on some system files. This seems to be an rsync error. I'm now using Luckybackup, because it has a wealth of options that can be configured using GUI, and much more flexible scheduling.

            Kubuntu still rocks!

            Comment

            Working...
            X