SOLVED iocage export/import (am I doing it wrong?)

gingerpower

Cadet
Joined
Feb 8, 2020
Messages
8
I am trying to take a backup of my jails, clear the iocage folder and then import it again. This does not work.

Poolname: Puddle (/mnt/Puddle)

This is what i do:

Install syncthing from plugins and name the jail "syncthing"
stops jail: iocage stop syncthing
exports jail: iocage export syncthing
copy all files created: cp /mnt/Puddle/iocage/images/* /mnt/Puddle/backup/
clear iocage: iocage clean -a
create iocage by opening plugins tab, choosing same pool as before.
copy files back to /images: cp /mnt/Puddle/backup/* /mnt/Puddle/iocage/images/
import jail: iocage import syncthing
start jail: iocage start syncthing

Error-code:
syncthing: nat requires nat_interface, using em0
No default gateway found for ipv6.
* Starting syncthing
+ Start FAILED
mount_nullfs: /mnt/Puddle/iocage/releases/12.2-RELEASE: No such file or directory
jail: ioc-syncthing: /sbin/mount -t nullfs -o ro /mnt/Puddle/iocage/releases/12.2-RELEASE/root/bin /mnt/Puddle/iocage/jails/syncthing/root/bin: Failed
 
Joined
Jan 7, 2015
Messages
1,155
You might have to fetch the pertinent releases again?
iocage fetch -r 12.2-RELEASE
 
Top