Rudd-O / zfs-tools

ZFS synchronization and snapshotting tools
79 stars 41 forks source link

zreplicate don't replicate archives entry datasets #26

Open lesomora opened 5 years ago

lesomora commented 5 years ago

Hi, i try used zreplicate with two machines.

i create the snapshot with:

zsnap --keep=7 --prefix SAS- -t %Y-%m-%d-%H%M%S storage/TESTE

origin machine:

NAME USED AVAIL REFER MOUNTPOINT storage/TESTE@SAS-2019-05-24-163013 0B - 236K - storage/TESTE@SAS-2019-05-24-163014 0B - 236K - storage/TESTE@SAS-2019-05-24-163015 0B - 236K - storage/TESTE@SAS-2019-05-24-163017 0B - 236K - storage/TESTE@SAS-2019-05-24-163018 0B - 236K - storage/TESTE@SAS-2019-05-24-163019 0B - 236K - storage/TESTE@SAS-2019-05-24-163021 0B - 236K -

after created all snapshots, i running this in my backup machine:

zreplicate sourcestorage:storage/TESTE storage/TESTE

after running, the snapshosts are replicated. But, the archives i put in 'storage/TESTE' was empty.

in machine backup:

storage/TESTE# zfs list -t snapshot NAME USED AVAIL REFER MOUNTPOINT storage/TESTE@SAS-2019-05-24-163013 0B - 236K - storage/TESTE@SAS-2019-05-24-163014 0B - 236K - storage/TESTE@SAS-2019-05-24-163015 0B - 236K - storage/TESTE@SAS-2019-05-24-163017 0B - 236K - storage/TESTE@SAS-2019-05-24-163018 0B - 236K - storage/TESTE@SAS-2019-05-24-163019 0B - 236K - storage/TESTE@SAS-2019-05-24-163021 0B - 236K

/storage/TESTE# ls -la total 1 drwxr-xr-x 2 root root 2 May 24 16:28 . drwxr-xr-x 3 root root 3 May 24 16:28 ..

Rudd-O commented 5 years ago

Only snapshots are replicated. File systems are not. That is how ZFS works.

On May 24, 2019 9:39:35 PM GMT+02:00, lesomora notifications@github.com wrote:

Hi, i try used zreplicate with two machines.

i create the snapshot with:

zsnap --keep=7 --prefix SAS- -t %Y-%m-%d-%H%M%S storage/TESTE

origin machine:

NAME USED AVAIL REFER MOUNTPOINT storage/TESTE@SAS-2019-05-24-163013 0B - 236K - storage/TESTE@SAS-2019-05-24-163014 0B - 236K - storage/TESTE@SAS-2019-05-24-163015 0B - 236K - storage/TESTE@SAS-2019-05-24-163017 0B - 236K - storage/TESTE@SAS-2019-05-24-163018 0B - 236K - storage/TESTE@SAS-2019-05-24-163019 0B - 236K - storage/TESTE@SAS-2019-05-24-163021 0B - 236K -

after created all snapshots, i running this in my backup machine:

zreplicate sourcestorage:storage/TESTE storage/TESTE

after running, the snapshosts are replicated. But, the archives i put in 'storage/TESTE' was empty.

in machine backup:

storage/TESTE# zfs list -t snapshot NAME USED AVAIL REFER MOUNTPOINT storage/TESTE@SAS-2019-05-24-163013 0B - 236K - storage/TESTE@SAS-2019-05-24-163014 0B - 236K - storage/TESTE@SAS-2019-05-24-163015 0B - 236K - storage/TESTE@SAS-2019-05-24-163017 0B - 236K - storage/TESTE@SAS-2019-05-24-163018 0B - 236K - storage/TESTE@SAS-2019-05-24-163019 0B - 236K - storage/TESTE@SAS-2019-05-24-163021 0B - 236K

/storage/TESTE# ls -la total 1 drwxr-xr-x 2 root root 2 May 24 16:28 . drwxr-xr-x 3 root root 3 May 24 16:28 ..

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/Rudd-O/zfs-tools/issues/26

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.