Greetings,
When backing up a jail to an off-site location that does not support ZFS transfers, what is the best course of action for handling symbolic links? For instance, I use rclone to backup pertinent files to Backblaze B2 Cloud Storage. B2 does not support symbolic links, and rclone will not copy symbolic links for this reason. This breaks links such as /dev/null, /dev/zero, /dev/stdin, /dev/random, /etc/unbound, etc... A fill list can be seen below.
I will note that I am using IOCage to manage jails.
-L will only make rclone copy the data on the other side of the symlink as well which is undesirable as it could cause recursive loops or duplicate files.
This being said, whats the best way to backup the raw files of a jail in a way where it can easily be restored? Is there any method to restore the jail, then re create the symbolic links? This is my first time facing this issue.
When backing up a jail to an off-site location that does not support ZFS transfers, what is the best course of action for handling symbolic links? For instance, I use rclone to backup pertinent files to Backblaze B2 Cloud Storage. B2 does not support symbolic links, and rclone will not copy symbolic links for this reason. This breaks links such as /dev/null, /dev/zero, /dev/stdin, /dev/random, /etc/unbound, etc... A fill list can be seen below.
I will note that I am using IOCage to manage jails.
Code:
2017/05/06 10:19:29 NOTICE: tags/mcsjail: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/mcsjail_opt: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/home: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/sys: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: releases/11.0-RELEASE/root/sys: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/log: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/random: Can't transfer non file/directory
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/urandom: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/null: Can't transfer non file/directory
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/zero: Can't transfer non file/directory
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/stdin: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/stdout: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/stderr: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/zfs: Can't transfer non file/directory
2017/05/06 10:19:29 ERROR : jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/root/.history: Failed to copy: failed to open source object: open /iocage/jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/root/.history: permission denied
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/proc/curproc: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/pts/0: Can't transfer non file/directory
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/pts/3: Can't transfer non file/directory
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/dev/pts/1: Can't transfer non file/directory
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/etc/aliases: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/etc/rmt: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/etc/termcap: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/etc/unbound: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:29 NOTICE: jails/a9536aae-e104-40d3-a6e4-f87376d547bb/root/sbin/nologin: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:37 NOTICE: releases/11.0-RELEASE/root/etc/aliases: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:37 NOTICE: releases/11.0-RELEASE/root/etc/rmt: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:37 NOTICE: releases/11.0-RELEASE/root/etc/termcap: Can't follow symlink without -L/--copy-links
2017/05/06 10:19:37 NOTICE: releases/11.0-RELEASE/root/etc/unbound: Can't follow symlink without -L/--copy-links
-L will only make rclone copy the data on the other side of the symlink as well which is undesirable as it could cause recursive loops or duplicate files.
This being said, whats the best way to backup the raw files of a jail in a way where it can easily be restored? Is there any method to restore the jail, then re create the symbolic links? This is my first time facing this issue.