Hi everyone,
how can I migrate each users' home from PoolA to a separate dataset in PoolB, please?
I have 3 home folders in the "old" PoolA of my (Free)NAS; I'd like to migrate each of these homes to a dataset in the new PoolB on the same (Free)NAS. However, I am a bit confused on how-to.
I googled a bit and checked some threads of the forum, and as far as I understood there are two "safe" ways:
1. use rsync (e.g. "rsync -rvpEt /mnt/PoolA/HomeX /mnt/PoolB/DatasetHomeX", where HomeX and DatasetHomeX are members of "homes" set);
2. use zfs (e.g. "zfs send -vp PoolA@Snapshot | zfs receive -dv PoolB/DatasetHomeX", I suppose).
While the rsync method seems more straightforward to me, I had to reset all permissions of homes and I got some errors by symlinks. Hence, I believe that the migration was 1 to 1; probably, I have to use -a parameter.
Instead, zfs method seems more tricky to me, as it is based on snapshots of PoolA which contains the homes as folders and not as datasets. Hence, once the PoolA snapshot has been replicated on PoolB, I do not know how to migrate the single homes to each dataset... maybe rsync, then it would be better to use it from the beginning, is it not?
Doeas anyone know how could I manage to migrate these homes to the new datasets, please?
Thanks in advance ;)
how can I migrate each users' home from PoolA to a separate dataset in PoolB, please?
I have 3 home folders in the "old" PoolA of my (Free)NAS; I'd like to migrate each of these homes to a dataset in the new PoolB on the same (Free)NAS. However, I am a bit confused on how-to.
I googled a bit and checked some threads of the forum, and as far as I understood there are two "safe" ways:
1. use rsync (e.g. "rsync -rvpEt /mnt/PoolA/HomeX /mnt/PoolB/DatasetHomeX", where HomeX and DatasetHomeX are members of "homes" set);
2. use zfs (e.g. "zfs send -vp PoolA@Snapshot | zfs receive -dv PoolB/DatasetHomeX", I suppose).
While the rsync method seems more straightforward to me, I had to reset all permissions of homes and I got some errors by symlinks. Hence, I believe that the migration was 1 to 1; probably, I have to use -a parameter.
Instead, zfs method seems more tricky to me, as it is based on snapshots of PoolA which contains the homes as folders and not as datasets. Hence, once the PoolA snapshot has been replicated on PoolB, I do not know how to migrate the single homes to each dataset... maybe rsync, then it would be better to use it from the beginning, is it not?
Doeas anyone know how could I manage to migrate these homes to the new datasets, please?
Thanks in advance ;)