Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Backing up a FreeNas jails ====== A simple script that backups up each JAIL in turn, sorted alphabetically by its name. An export requires the jail to be shutdown. <code> #!/bin/sh # Backup each JAIL # Will restart the jail if required iocage list -h -s name | cut -f 2,3 | while read jail state; do test $state = "up" && iocage stop $jail iocage export $jail test $state = "up" && iocage start $jail done </code> The images will be in /mnt/[pool]/iocage/images {{tag>freeNAS jail}} ~~LINKBACK~~ blog/backing_up_freenas_jails.txt Last modified: 2021/08/17 15:14by brett