• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Backing up user profiles/data before deploying image

    Scheduled Pinned Locked Moved
    General
    8
    27
    6.5k
    Loading More Posts
    • 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.
    • george1421G
      george1421 Moderator @RobertD
      last edited by

      @RobertD I’m not seeing it as a big time waster, but I don’t know your environment. The backup of the profile and the reimaging process doesn’t need to be synchronized. The last day of school +1 deploy the usmt application and make the profile backup (or what ever you need for backup) and then have the application deployment script power off the computer.

      I could also recompile the inits with the smbclient included. It would not add much code to the base image. You would then need to use a postinit script to slide in your site smb.ini configuration file into the /etc directory. But that is also possible.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      RobertDR 1 Reply Last reply Reply Quote 0
      • RobertDR
        RobertD @george1421
        last edited by

        @george1421 - I hate to impose binaries into the inits if no one else has a use for them. I’m just trying to figure out a way to do this without adding additional mechanics to our current process.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @RobertD Just a quick idea, maybe use a post-init script that copies the files to a NFS share?

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          RobertDR 1 Reply Last reply Reply Quote 0
          • RobertDR
            RobertD @Sebastian Roth
            last edited by

            @Sebastian-Roth We are actually trying that right now, however we are struggling to mount it with write access. It keeps giving us “Read-only file system” when we try something like touch /imagesinit/userbackup/text.txt.

            george1421G 1 Reply Last reply Reply Quote 0
            • EduardoTSeoaneE
              EduardoTSeoane
              last edited by

              I do it.

              Creating an rw nfs share and rsyncing folders from fog.postinit.

              You can do it to fog or to another file server.

              1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @RobertD
                last edited by george1421

                @RobertD You can install NFS on ms windows. I have a proof of concept on how to turn windows box into a fog storage node (not really recommended, but I wanted to see if I could do it). The point it is shows you how the setup the permissions for the nfs share so that FOS can mount it.

                https://forums.fogproject.org/topic/6941/windows-server-as-fog-storage-node-proof-of-concept-blog

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                1 Reply Last reply Reply Quote 0
                • RobertDR
                  RobertD
                  last edited by

                  Not sure why it isn’t working.

                  1. We created a new directory within our /images folder on the fog server called userbackup.
                  2. We set permissions with chmod 777 on this folder.
                  3. Booting a host with a deploy debug task.
                  4. From the host we tried the following
                  mkdir /userbackup
                  mount -o nolock,proto=tcp,rw "1.2.3.4:/images/userbackup" /userbackup
                  touch /userbackup/test.txt
                  "This is a read-only file system"
                  

                  Are we missing something in our mount statement?

                  george1421G EduardoTSeoaneE 2 Replies Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @RobertD
                    last edited by george1421

                    @RobertD Oh that’s a easy one. That is because /images is read-only at the share level. That is why fog uploads to /images/dev which is read-write at the share level.

                    showmount -e 127.0.0.1 might show this or /etc/exports will.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    1 Reply Last reply Reply Quote 0
                    • RobertDR
                      RobertD
                      last edited by

                      So we should be mounting to a sub directory in images/dev…

                      Export list for 172.31.16.155:
                      /images/dev *
                      /images     *
                      
                      1 Reply Last reply Reply Quote 0
                      • EduardoTSeoaneE
                        EduardoTSeoane @RobertD
                        last edited by EduardoTSeoane

                        @RobertD

                        add it to /etc/exports as an rw share
                        then execute as root

                        echo "/images/userbackup *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=2)" >> /etc/exports
                        exportfs -a
                        systemctl restart rpcbind # or something like i dont remember de name exactly
                        systemctl restart ntfs-server
                        

                        Try it if you can.

                        george1421G 1 Reply Last reply Reply Quote 0
                        • george1421G
                          george1421 Moderator @EduardoTSeoane
                          last edited by

                          @EduardoTSeoane said in Backing up user profiles/data before deploying image:

                          add it to /etc/exports as an rw share

                          You can do that just watch your IDs and pick the next integer.

                          something like

                          /images/userbackup *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=2)
                          

                          Then an

                          exportfs -a
                          showmount -e 127.0.0.1
                          

                          should show the new share.

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by

                            @EduardoTSeoane said in Backing up user profiles/data before deploying image:

                            echo “/images/userbackup *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=2)”

                            Guess you meant:

                            echo "/images/userbackup *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=2)" >> /etc/exports
                            ...
                            

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            EduardoTSeoaneE 1 Reply Last reply Reply Quote 0
                            • RobertDR
                              RobertD
                              last edited by

                              Wow you guys are a great help. We were looking at folder permissions that whole time when it was the share permissions.

                              1 Reply Last reply Reply Quote 0
                              • EduardoTSeoaneE
                                EduardoTSeoane @Sebastian Roth
                                last edited by

                                @Sebastian-Roth
                                yes, i want to say that i correct it in the post

                                1 Reply Last reply Reply Quote 0
                                • 1
                                • 2
                                • 2 / 2
                                • First post
                                  Last post

                                266

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project