Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to synchronize files from linux to windows

How to synchronize files from linux to windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 4 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Axel Spoerl
    17 Nov 2023, 13:40

    @Srinath_S
    Can you explain a bit more in detail, how you wish to do that?
    rsync is designed for such kind of jobs.

    S Offline
    S Offline
    Srinath_S
    wrote on 18 Nov 2023, 04:35 last edited by
    #3

    @Axel-Spoerl I have an application in my linux device which stores data into a folder ,now I want to access the same folder from windows and sync the files in both device.

    C 1 Reply Last reply 18 Nov 2023, 06:56
    0
    • S Srinath_S
      18 Nov 2023, 04:35

      @Axel-Spoerl I have an application in my linux device which stores data into a folder ,now I want to access the same folder from windows and sync the files in both device.

      C Online
      C Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 18 Nov 2023, 06:56 last edited by
      #4

      And what has this to do with Qt? Do you want to programm a software for this task?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      S 1 Reply Last reply 18 Nov 2023, 07:14
      0
      • C Christian Ehrlicher
        18 Nov 2023, 06:56

        And what has this to do with Qt? Do you want to programm a software for this task?

        S Offline
        S Offline
        Srinath_S
        wrote on 18 Nov 2023, 07:14 last edited by
        #5

        @Christian-Ehrlicher Yeah, so that I can view all the data as I view in linux device's QT program.I have a replica of the program from linux ,just need help to view the same and be able to access the files and sync it in windows device QT program.
        Thank you.

        C J 2 Replies Last reply 18 Nov 2023, 07:42
        0
        • S Srinath_S
          18 Nov 2023, 07:14

          @Christian-Ehrlicher Yeah, so that I can view all the data as I view in linux device's QT program.I have a replica of the program from linux ,just need help to view the same and be able to access the files and sync it in windows device QT program.
          Thank you.

          C Online
          C Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 18 Nov 2023, 07:42 last edited by
          #6

          The easiest way is to use WinSCP and connect via ssh to your linux server.
          Everything else - e.g. programming it by yourself is way to complicated for beginners.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          2
          • S Srinath_S
            18 Nov 2023, 07:14

            @Christian-Ehrlicher Yeah, so that I can view all the data as I view in linux device's QT program.I have a replica of the program from linux ,just need help to view the same and be able to access the files and sync it in windows device QT program.
            Thank you.

            J Offline
            J Offline
            JonB
            wrote on 18 Nov 2023, 07:51 last edited by
            #7

            @Srinath_S
            Of if you really want to share the files (as opposed to replicate, with all the headaches that entails) consider using Samba maybe.

            S 1 Reply Last reply 18 Nov 2023, 08:15
            3
            • J JonB
              18 Nov 2023, 07:51

              @Srinath_S
              Of if you really want to share the files (as opposed to replicate, with all the headaches that entails) consider using Samba maybe.

              S Offline
              S Offline
              Srinath_S
              wrote on 18 Nov 2023, 08:15 last edited by
              #8

              @JonB Thank you for the suggestion, I already installed samba and also I am able to access files in a remote way , but I was thinking to create a mini version of my software in windows too, so that it might be user friendly for my project.

              J 1 Reply Last reply 18 Nov 2023, 08:43
              0
              • S Srinath_S
                18 Nov 2023, 08:15

                @JonB Thank you for the suggestion, I already installed samba and also I am able to access files in a remote way , but I was thinking to create a mini version of my software in windows too, so that it might be user friendly for my project.

                J Offline
                J Offline
                JonB
                wrote on 18 Nov 2023, 08:43 last edited by JonB
                #9

                @Srinath_S
                samba versus scp are quite different approaches to your requirement. samba just means the same files can be shared (e.g. after editing content is same accessed from anywhere), and is "simpler" (in that there is nothing to do other than install samba), scp (or other) is about copying/replicating. Only you know whether your use case allows sharing rather than copying.

                A 1 Reply Last reply 19 Nov 2023, 11:33
                4
                • J JonB
                  18 Nov 2023, 08:43

                  @Srinath_S
                  samba versus scp are quite different approaches to your requirement. samba just means the same files can be shared (e.g. after editing content is same accessed from anywhere), and is "simpler" (in that there is nothing to do other than install samba), scp (or other) is about copying/replicating. Only you know whether your use case allows sharing rather than copying.

                  A Offline
                  A Offline
                  Axel Spoerl
                  Moderators
                  wrote on 19 Nov 2023, 11:33 last edited by
                  #10

                  @Srinath_S
                  Maybe it's worth having a look at the architecture of your application.

                  • You have one application, which runs on Linux and Windows.
                  • On windows, you want to see (i.e. read-only) files residing on Linux.

                  Questions:

                  • Do you just want to see a list of files, or do you actually want to access them?
                  • Is the sharing runtime critical, i.e. the app has to run on Linux and Windows at the same time to make sense?
                  • Can the file sharing be separated from the app?

                  IMHO, if file sharing across computers and OSes is a requirement for an app to make sense, there is something wrong in its client/server architecture. Better implement a REST API, but that's complicated on the other hand, as @Christian-Ehrlicher rightfully said. If file sharing is needed anyway between the computers involved, you may want to have a look at mutagen. This is a very powerful tool, which I am a heavy user of.

                  Software Engineer
                  The Qt Company, Oslo

                  S 1 Reply Last reply 20 Nov 2023, 04:45
                  3
                  • A Axel Spoerl
                    19 Nov 2023, 11:33

                    @Srinath_S
                    Maybe it's worth having a look at the architecture of your application.

                    • You have one application, which runs on Linux and Windows.
                    • On windows, you want to see (i.e. read-only) files residing on Linux.

                    Questions:

                    • Do you just want to see a list of files, or do you actually want to access them?
                    • Is the sharing runtime critical, i.e. the app has to run on Linux and Windows at the same time to make sense?
                    • Can the file sharing be separated from the app?

                    IMHO, if file sharing across computers and OSes is a requirement for an app to make sense, there is something wrong in its client/server architecture. Better implement a REST API, but that's complicated on the other hand, as @Christian-Ehrlicher rightfully said. If file sharing is needed anyway between the computers involved, you may want to have a look at mutagen. This is a very powerful tool, which I am a heavy user of.

                    S Offline
                    S Offline
                    Srinath_S
                    wrote on 20 Nov 2023, 04:45 last edited by
                    #11

                    @Axel-Spoerl Thank you for your reply
                    1)From windows I read or view the files.
                    2)I should be able to access the files , means download or view them from ui-widgets in windows.
                    3)No, the linux app need not need to run while windows is running as I access a specific folder not anything while run time of linux.
                    4)Yes , the file sharing is totally out of the app only.But file access shouldnt affect if at all I run both device at the same time(which is a rare case scenario).

                    A 1 Reply Last reply 20 Nov 2023, 12:32
                    0
                    • S Srinath_S
                      20 Nov 2023, 04:45

                      @Axel-Spoerl Thank you for your reply
                      1)From windows I read or view the files.
                      2)I should be able to access the files , means download or view them from ui-widgets in windows.
                      3)No, the linux app need not need to run while windows is running as I access a specific folder not anything while run time of linux.
                      4)Yes , the file sharing is totally out of the app only.But file access shouldnt affect if at all I run both device at the same time(which is a rare case scenario).

                      A Offline
                      A Offline
                      Axel Spoerl
                      Moderators
                      wrote on 20 Nov 2023, 12:32 last edited by
                      #12

                      @Srinath_S

                      out of the app only

                      Just to make sure I get you right: You mean inside the app only. So the shared files should not be visible directly in the Windows machine, e.g. in Explorer or for other apps.
                      That makes the use case more complicated, because you basically want to implement a remote file browser.
                      Dolphin from KDE does that. You can look at the implementation and even copy/paste what is needed.

                      Software Engineer
                      The Qt Company, Oslo

                      S 1 Reply Last reply 20 Nov 2023, 12:35
                      1
                      • A Axel Spoerl
                        20 Nov 2023, 12:32

                        @Srinath_S

                        out of the app only

                        Just to make sure I get you right: You mean inside the app only. So the shared files should not be visible directly in the Windows machine, e.g. in Explorer or for other apps.
                        That makes the use case more complicated, because you basically want to implement a remote file browser.
                        Dolphin from KDE does that. You can look at the implementation and even copy/paste what is needed.

                        S Offline
                        S Offline
                        Srinath_S
                        wrote on 20 Nov 2023, 12:35 last edited by
                        #13

                        @Axel-Spoerl Yes you're correct,I dont need them to be viewed in my Windows files , I want it to be viewed inside the QT app in windows.

                        A 1 Reply Last reply 20 Nov 2023, 14:20
                        0
                        • S Srinath_S
                          20 Nov 2023, 12:35

                          @Axel-Spoerl Yes you're correct,I dont need them to be viewed in my Windows files , I want it to be viewed inside the QT app in windows.

                          A Offline
                          A Offline
                          Axel Spoerl
                          Moderators
                          wrote on 20 Nov 2023, 14:20 last edited by
                          #14

                          @Srinath_S
                          To summarize:
                          This thread says "How to synchronize files from linux to windows".
                          The answer is: With rsync, mutagen, scp, samba or any similar tool.

                          The actual intention is to implement a remote file browser. That's way more complex, Dolphin can be an aspiration.

                          Software Engineer
                          The Qt Company, Oslo

                          1 Reply Last reply
                          1

                          12/14

                          20 Nov 2023, 12:32

                          • Login

                          • Login or register to search.
                          12 out of 14
                          • First post
                            12/14
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved