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

    Syncoid To usb retention policy ZFS?

    IT Discussion
    linux storage sanoid syncoid zfs
    2
    5
    817
    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.
    • K
      killmasta93
      last edited by scottalanmiller

      Hi,
      I was wondering if someone could shed some light on the issue im having, currently trying to backup my vm using ZFS
      currently using syncoid to backup to a usb which i have accomplished by this command

      syncoid -r rpool/data/vm-125-disk-0 usbbak/vm-125-disk
      
      

      the issue is that there is no retention policy something like to keep 4 days or so 4 snapshots. i checked the manpage does not say anything about retention any ideas?

      Thank you

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        syncoid is an under the hood tool of sanoid.

        You need to configure the parent tool for what you want to do.

        What is the contents of /etc/sanoid/sanoid.conf

        1 Reply Last reply Reply Quote 0
        • K
          killmasta93
          last edited by

          Thanks for the reply i did realize something was odd, i did configure the sanoid.conf but was taking the snapshots within the server and not sending to the USB drive
          The idea is to take snapshots every day and keep around 4, what im confused on the daily = not sure if its to take 1 time a day or delete after 1 snapshot? and as for the cronjob i have noticed it does it automatic even if i dont put it in the cronjob?

          Thank you

          
          ######################################
          # This is a sample sanoid.conf file. #
          # It should go in /etc/sanoid.       #
          ######################################
          
          [rpool/data/vm-125-disk-0]
                  use_template = production
          
          
          
          #############################
          # templates below this line #
          #############################
          
          # name your templates template_templatename. you can create your own, and use them in your module definitions above.
          
          
          [template_production]
                  frequently = 0
                  #hourly = 36
                  daily = 1 
                  #monthly = 3
                  #yearly = 0
                  autosnap = yes
                  autoprune = yes
          
          
          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @killmasta93
            last edited by

            @killmasta93 said in Syncoid To usb retention policy ZFS?:

            The idea is to take snapshots every day and keep around 4, what im confused on the daily = not sure if its to take 1 time a day or delete after 1 snapshot?

            Do you want to keep 4 dailys. So daily = 4

            1 Reply Last reply Reply Quote 0
            • K
              killmasta93
              last edited by

              Thanks for the reply, the issue is that sanoid.conf does not send the snapshot to the usb but syncoid does, or does having that template automatic prune the snapshots?

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