Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Just seletc a Childdataset without its parent #6

Open
Pitastic opened this issue Apr 18, 2022 · 1 comment
Open

Feature: Just seletc a Childdataset without its parent #6

Pitastic opened this issue Apr 18, 2022 · 1 comment

Comments

@Pitastic
Copy link
Contributor

Pitastic commented Apr 18, 2022

Hi there,

I tried to backup one of my datasets for a jail :

MASTERPOOL="storage"
BACKUPPOOL="seagatebackup"
MAINDATASETS=("iocage/jails/sync")

Backup pretend to be successful. Looking at the disk, no new dataset were created (which makes sense from the logs) :

full send of storage/iocage/jails/sync/root@back-script-20220418-213143 estimated size is 1.89G
total estimated size is 1.89G
cannot open 'seagatebackup/iocage/jails/sync': dataset does not exist
cannot receive new filesystem stream: unable to restore to destination
warning: cannot send 'storage/iocage/jails/sync/root@back-script-20220418-213143': signal received

However backing up parent datasets is working fine.

Edit:
Ok...the parameter name "-MAIN-dataset" speaks for itself... so just see it as a feature request then 😉

@Pitastic Pitastic changed the title Childdatasets could not be selected to backup Feature: Just seletc a Childdataset without its parent Apr 19, 2022
@Pitastic
Copy link
Contributor Author

Pitastic commented Jul 30, 2023

Hi there,

one year later I ran in this forgotten issue but in another flavor. The process crashed with this log message when trying to backup just iocage/jails:

cannot open 'seagatebackup/iocage/jails': dataset does not exist
full send of storage/iocage/jails@back-script-20230729-182812 estimated size is 41.6K
total estimated size is 41.6K
cannot open 'seagatebackup/iocage': dataset does not exist
cannot receive new filesystem stream: unable to restore to destination
warning: cannot send 'storage/iocage/jails@back-script-20230729-182812': signal received

Again, this is more or less expected behaviour, but there is no other way to backup the jails without all the releases trash.

This time (I guess due to FreeNAS core updates) it is different. The script tries to build and sync the parent in order to sync the child dataset. However, it just crashes because there is no backup-snapshot from the parent (or no such dataset in the backup) like from the child (just realized this while I am typing this). So the fix should be a lot less complicated than a year ago, wouldn't it?

Once I created an empty dataset seagatebackup/iocage the backup runs without issues.

Like your project, thanks 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant