1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CLI for snapshots

Discussion in 'Proxmox VE: Installation and configuration' started by greg, Aug 13, 2017.

Tags:
  1. greg

    greg New Member

    Joined:
    Apr 6, 2011
    Messages:
    15
    Likes Received:
    0
    Greetings
    I've recently moved from proxmox 3 to 5 and I'm trying to use it fully.
    I'm using zfs and lxc and I'd like to automate the snapshoting: I want to mimic going to the GUI and clicking "Take snapshot".
    I can go directly, that is, do a zfs snapshot and alter the .conf file, but is there a cleaner way to do that in cli ?

    Thanks in advance
     
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    15,279
    Likes Received:
    164
    # pct snapshot <vmid> <snapname>

    see "man pct" for details and options
     
  3. greg

    greg New Member

    Joined:
    Apr 6, 2011
    Messages:
    15
    Likes Received:
    0
    Thanks! I looked in the man page but didn't find it, probably I was not paying enough attention.
     

Share This Page