ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Snipe-IT Shell Commands and Backing up

    IT Discussion
    snipe-it backup sql shell cron
    3
    4
    2.4k
    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.
    • DustinB3403D
      DustinB3403
      last edited by

      So looking for a way to backup just the database for Snipe-IT now that I have it installed, and partially populated.

      I see I can create a manual backup under the Backups menu.

      This however is not at all what I want.

      Looking for a way to schedule the backup to run (say weekly) and export the backup to a remote target.

      Has anyone else done this?

      @daily /path/to/php /path/to/your/snipe-it/artisan snipeit:backup
      
      1 Reply Last reply Reply Quote 1
      • JaredBuschJ
        JaredBusch
        last edited by

        Assuming it worked, then you just need an rsync command cron'd to run after.

        Depending on the output you get from that command, you could wrap it all in a script, or just make the rsync run ever hour and it will only actually do anything when there is a file difference.

        1 Reply Last reply Reply Quote 1
        • hobbit666H
          hobbit666
          last edited by

          Backup the VM?

          DustinB3403D 1 Reply Last reply Reply Quote 1
          • DustinB3403D
            DustinB3403 @hobbit666
            last edited by DustinB3403

            @hobbit666 no this is just for the mysql database.

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