[BSD] zfs snapshotok listazasa

Ákos Tamási akos.tamasi at gmail.com
2010. Május. 19., Sze, 13:57:47 CEST


2010/5/19 Gabor HALASZ <halasz.g at freemail.hu>:
> Helo!
>
> Szoval a subject-re kellene valami megoldas (freebsd8). A .zfs dirt nem
> latjak a unix toolok, igy a find es hasonlok sajnos nem jatszanak, scriptet
> nem irnek, ha van mas ut.
>
> --
> Gabor HALASZ <halasz.g at freemail.hu>
> _______________________________________________

Ilyesmire gondolsz?

# ls /tank/home/ahrens/.zfs/snapshot
tuesday wednesday thursday

You can list snapshots as follows:
# zfs list -t snapshot

NAME USED AVAIL REFER MOUNTPOINT
pool/home/anne at monday 0 - 780K -
pool/home/bob at monday 0 - 1.01M -
tank/home/ahrens at tuesday 8.50K - 780K -
tank/home/ahrens at wednesday 8.50K - 1.01M -
tank/home/ahrens at thursday 0 - 1.77M -
tank/home/cindys at today 8.50K - 524K -

You can list snapshots that were created for a particular file system
as follows:
# zfs list -r -t snapshot -o name,creation tank/home
NAME CREATION
tank/home/ahrens at tuesday Mon Aug 31 11:03 2009
tank/home/ahrens at wednesday Mon Aug 31 11:03 2009
tank/home/ahrens at thursday Mon Aug 31 11:03 2009
tank/home/cindys at now Mon Aug 31 11:04 2009



További információk a(z) BSD levelezőlistáról