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
Forum Updated to NodeBB v4.3 + New Features

How to synchronize files from linux to windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 4 Posters 2.1k Views 2 Watching
  • 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.
  • S Srinath_S

    @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.

    Christian EhrlicherC Online
    Christian EhrlicherC Online
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on 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
    0
    • Christian EhrlicherC Christian Ehrlicher

      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 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.

      Christian EhrlicherC JonBJ 2 Replies Last reply
      0
      • S Srinath_S

        @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.

        Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 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

          @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.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on 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
          3
          • JonBJ JonB

            @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 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.

            JonBJ 1 Reply Last reply
            0
            • S Srinath_S

              @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.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on 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.

              Axel SpoerlA 1 Reply Last reply
              4
              • JonBJ JonB

                @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.

                Axel SpoerlA Offline
                Axel SpoerlA Offline
                Axel Spoerl
                Moderators
                wrote on 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
                3
                • Axel SpoerlA Axel Spoerl

                  @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 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).

                  Axel SpoerlA 1 Reply Last reply
                  0
                  • S Srinath_S

                    @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).

                    Axel SpoerlA Offline
                    Axel SpoerlA Offline
                    Axel Spoerl
                    Moderators
                    wrote on 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
                    1
                    • Axel SpoerlA Axel Spoerl

                      @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 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.

                      Axel SpoerlA 1 Reply Last reply
                      0
                      • S Srinath_S

                        @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.

                        Axel SpoerlA Offline
                        Axel SpoerlA Offline
                        Axel Spoerl
                        Moderators
                        wrote on 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

                        • Login

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