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

mirror zfs snapshots directories #6

Open
holderg opened this issue Dec 6, 2019 · 1 comment
Open

mirror zfs snapshots directories #6

holderg opened this issue Dec 6, 2019 · 1 comment

Comments

@holderg
Copy link
Contributor

holderg commented Dec 6, 2019

Want /backups to lead to a tree of snapshot directories
/data/{dataset}/.zfs/snapshots => /backups/{dataset}/

@holderg holderg transferred this issue from brainsciencecenter/crm Dec 7, 2019
@holderg
Copy link
Contributor Author

holderg commented Dec 7, 2019

for i in $( mount | grep zfs | grep -v /mnt | awk '{print $3}')
do
echo ln -s $i/.zfs/snapshot /backups${i}
done
Need a way to make sure the links are maintained as datasets change

Assumptions are all zfs datasets are bind mounted into the file system from /mnt/something and .zfs is only 1 level under the bind mounts.

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