[sheepdog-users] About vdi restore

Valerio Pachera sirio81 at gmail.com
Mon Jun 3 10:12:50 CEST 2013


Hi, I'm testing snapshot backup

root at test006:/mnt/backup# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id
Copies  Tag
s squeeze      1   10 GB  1.8 GB  0.0 MB 2013-05-30 11:21   a34c67
2         primo
s squeeze      2   10 GB  180 MB  1.6 GB 2013-06-03 09:27   a34c68
2  secondoCaldo
s squeeze      3   10 GB  172 MB  1.7 GB 2013-06-03 09:28   a34c69
2    terzoCaldo
s squeeze      4   10 GB  312 MB  1.6 GB 2013-06-03 09:32   a34c6a
2   quartoCaldo
  squeeze      0   10 GB  0.0 MB  1.9 GB 2013-06-03 09:33   a34c6b
2

collie vdi backup -s 2 squeeze -F 1 > squeeze_s2_s1.img
collie vdi backup -s 4 squeeze -F 1 > squeeze_s4_s1.img

root at test006:/mnt/backup# ls -lh
totale 26M
-rw-r--r-- 1 root root 5,9M giu  3 09:52 squeeze_s1_s2.img
-rw-r--r-- 1 root root  19M giu  3 09:54 squeeze_s4_s1.img

root at test006:/mnt/backup# collie vdi delete -s 4 squeeze
root at test006:/mnt/backup# collie vdi delete -s 3 squeeze
root at test006:/mnt/backup# collie vdi delete -s 2 squeeze

root at test006:/mnt/backup# collie vdi list
s squeeze      1   10 GB  1.8 GB  0.0 MB 2013-05-30 11:21   a34c67
2         primo
  squeeze      0   10 GB   84 MB  1.8 GB 2013-06-03 09:33   a34c6b     2

I'm in doubt about restore syntax:
Usage: collie vdi restore [-s snapshot] [-a address] [-p port] [-h]
<vdiname> <backup>

In this example, I kept the vdi (id 0) and the first snapshot.
1)To restore the 4th snapshot is this the correct syntax?:

collie vdi restore -s 1 squeeze < squeeze_s4_s1.img

2) the images created by vdi backup, are already compressed?
I noticed that the images size is smaller than the amount data I've
been writing between snapshots.

Thank you.



More information about the sheepdog-users mailing list