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

Fog for Dev - Save each capture in its own folder automatically.

Scheduled Pinned Locked Moved
FOG Problems
4
6
384
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.
  • C
    cyannella
    last edited by Feb 9, 2021, 4:25 PM

    I have FOG running in a Development environment.
    Running scheduled jobs is working. But…

    Is there a way I can schedule a capture job for the same device and have each
    capture of that device go in their own unique sub-directory automatically so that I have an audit trail for that device? I don’t want the capture to overwrite the previous build.

    If Thursdays dev build of the device is garbage, I can image with Tuesdays build that was automatically captured the same week. Snapshots in a way but full drive captures.

    Chris

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Feb 9, 2021, 6:00 PM

      @cyannella No, this is not something FOG does out of the box. While I can see the use case for this it’s kind of rare as most users would not have enough space for a history of the image.

      I am not saying it’s impossible to add this feature to FOG but it’s not on our list (which is long and the dev team quite small). So if you are really keen you can dive into this topic and work on it.

      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

      1 Reply Last reply Reply Quote 0
      • C
        cyannella
        last edited by Feb 9, 2021, 6:31 PM

        @sebastian-roth said in Fog for Dev - Save each capture in its own folder automatically.:

        No, this is not something FOG does out of the box. While I can see the use case for this it’s kind of rare as most users would not have enough space for a history of the image.
        I am not saying it’s impossible to add this feature to FOG but it’s not on our list (which is long and the dev team quite small). So if you are really keen you can dive into this topic and work on it.

        Totally get it. Limited Dev team here as well but we are all over the place.
        How do I launch rsync myself with the parameters after FOG captures the device image?

        Capture done, rsync Tuesdays capture to Tuesdays folder that lives… here.

        A W 2 Replies Last reply Feb 9, 2021, 8:03 PM Reply Quote 0
        • A
          astrugatch @cyannella
          last edited by astrugatch Feb 9, 2021, 2:03 PM Feb 9, 2021, 8:03 PM

          @cyannella

          I don’t know how keen you are on blowing up your dev environment, but if you run Xen or XCP-ng for your environment. XenOrchestra has a huge number of backup options which would probably meet your need. They wouldn’t be FOG images, but they would be VM backups that could be restored, and depending on how you choose to go forward with the backups you can even pull individual files out.

          1 Reply Last reply Reply Quote 0
          • W
            Wayne Workman @cyannella
            last edited by Wayne Workman Feb 11, 2021, 3:52 PM Feb 11, 2021, 4:12 AM

            @cyannella said in Fog for Dev - Save each capture in its own folder automatically.:

            How do I launch rsync myself with the parameters after FOG captures the device image?

            Research about FOG’s post download scripts. This should get you started: https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script

            You could also hook into web calls for when the image capture reports it is complete. Could do a one-liner exec statement in the php, and any number of more-fancy things.

            Maybe the solution is simpler. maybe a clever bash script that runs within cron to do what you want with recent images. There is a DB with all the capture dates in it after all… python could do this too.

            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!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Feb 11, 2021, 6:38 AM

              @wayne-workman said in Fog for Dev - Save each capture in its own folder automatically.:

              Research about FOG’s post download scripts.

              Sorry but those are only run on deploy, not on capture.

              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

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              1 / 1
              • First post
                6/6
                Last post

              238

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project