[Plugin] Snapshots


Recommended Posts

  • 2 months later...

Hi,

  I've installed this, made a snapshot and alls good but how do i go about restoring? There is an option to "Send" the snapshot, if i wanted to restore this over where i am now would i delete / move the original disk and then "Send" this snapshot to the original directory of the VM or am i missing something here?

Link to comment

Best way to restore (so that you can keep doing the incremental backups) is to send/receive the backup to the destination where you do the original snapshots on that volume, then create a new read/write snapshot to the original data location, this way data is restored and you can then create future snapshots and continue to incrementally send them to the backup destination.

  • Like 1
  • Thanks 1
Link to comment
  • 3 weeks later...

si vous avez une idée 

 

 

["/mnt/disk5"]=> array(1) { ["/mnt/disk5/disk5-back"]=> array(9) { ["uuid"]=> string(36) "65ad9384-3b6a-8c48-be0c-321fce05b2be" ["puuid"]=> string(1) "-" ["ruuid"]=> string(1) "-" ["snap"]=> bool(false) ["vol"]=> string(10) "/mnt/disk5" ["path"]=> string(21) "/mnt/disk5/disk5-back" ["short_vol"]=> string(10) "disk5-back" ["property"]=> array(1) { ["ro"]=> string(5) "false" } ["subvolume"]=> array(1) { ["disk5-back/disk5-back"]=> array(11) { ["uuid"]=> string(36) "17211aa7-ea2e-c643-9976-8c4edb258edc" ["puuid"]=> string(36) "65ad9384-3b6a-8c48-be0c-321fce05b2be" ["ruuid"]=> string(1) "-" ["snap"]=> bool(true) ["odate"]=> string(10) "2022-02-04" ["otime"]=> string(8) "08:17:53" ["vol"]=> string(10) "/mnt/disk5" ["incremental"]=> NULL ["path"]=> string(21) "disk5-back/disk5-back" ["parent"]=> string(21) "/mnt/disk5/disk5-back" ["property"]=> array(1) { ["ro"]=> string(4) "true" } } } } } }

 

Warning: Invalid argument supplied for foreach() in /usr/local/emhttp/plugins/snapshots/include/lib.php on line 499

Link to comment
21 minutes ago, vmlinuz said:

si vous avez une idée 

 

 

["/mnt/disk5"]=> array(1) { ["/mnt/disk5/disk5-back"]=> array(9) { ["uuid"]=> string(36) "65ad9384-3b6a-8c48-be0c-321fce05b2be" ["puuid"]=> string(1) "-" ["ruuid"]=> string(1) "-" ["snap"]=> bool(false) ["vol"]=> string(10) "/mnt/disk5" ["path"]=> string(21) "/mnt/disk5/disk5-back" ["short_vol"]=> string(10) "disk5-back" ["property"]=> array(1) { ["ro"]=> string(5) "false" } ["subvolume"]=> array(1) { ["disk5-back/disk5-back"]=> array(11) { ["uuid"]=> string(36) "17211aa7-ea2e-c643-9976-8c4edb258edc" ["puuid"]=> string(36) "65ad9384-3b6a-8c48-be0c-321fce05b2be" ["ruuid"]=> string(1) "-" ["snap"]=> bool(true) ["odate"]=> string(10) "2022-02-04" ["otime"]=> string(8) "08:17:53" ["vol"]=> string(10) "/mnt/disk5" ["incremental"]=> NULL ["path"]=> string(21) "disk5-back/disk5-back" ["parent"]=> string(21) "/mnt/disk5/disk5-back" ["property"]=> array(1) { ["ro"]=> string(4) "true" } } } } } }

 

Warning: Invalid argument supplied for foreach() in /usr/local/emhttp/plugins/snapshots/include/lib.php on line 499

This is on the debug page nothing to worry about. fixed in next release to not show warning.

Edited by SimonF
Link to comment
2 minutes ago, Babar said:

I make daily backups of various items, including installation USB, app data, dockers.

 

If a docker update goes haywire, can I select and restore individual dockers from a particular backup?

 

At the moment, it seems to be all or nothing.

How are you backing up your dockers? Are you talking about the docker image or the appdata?

 

This plugin is for snapshoting BTRFS subvolumes, do you have docker setup as an image or folder?

Link to comment

voici quelque log

 

Feb 4 13:09:35 Unraid snapshots: Start snapping process / Slot:0
Feb 4 13:09:35 Unraid snapshots: btrfs subvolume snapshot -r '/' '/mnt/disk1/disk1-back/20220204130935' Error ERROR: Not a Btrfs filesystem: Invalid argument
Feb 4 13:09:45 Unraid snapshots: End snapping process /
Feb 4 13:09:45 Unraid snapshots: Manual Run '/' 0
Feb 4 13:11:11 Unraid snapshots: Start snapping process / Slot:0
Feb 4 13:11:11 Unraid snapshots: btrfs subvolume snapshot -r '/' '/mnt/disk1/disk1-back/20220204131111' Error ERROR: Not a Btrfs filesystem: Invalid argument
Feb 4 13:11:21 Unraid snapshots: End snapping process /
Feb 4 13:11:21 Unraid snapshots: Manual Run '/' 01964594776_Capturedcrande2022-02-0413-12-26.thumb.png.237cbb6a81715a2f937671b50f7b901b.png

Link to comment
16 minutes ago, vmlinuz said:

super tout fonctionne reste a voir dans le temp 

depuis le temp que j'attendais ce plugins

merci ;) 

1932641152_Capturedcrande2022-02-0516-37-30.thumb.png.aeb2d99d08ada1ceff9677a23afd2c87.png

FYI on Disk 2 you have used DMY.  YMD is converted to YmdHis but you need to use these time formats for anything other than YMD.

 

format character	Description	Example returned values
Day	---	---
d	Day of the month, 2 digits with leading zeros	01 to 31
D	A textual representation of a day, three letters	Mon through Sun
j	Day of the month without leading zeros	1 to 31
l (lowercase 'L')	A full textual representation of the day of the week	Sunday through Saturday
N	ISO 8601 numeric representation of the day of the week	1 (for Monday) through 7 (for Sunday)
S	English ordinal suffix for the day of the month, 2 characters	st, nd, rd or th. Works well with j
w	Numeric representation of the day of the week	0 (for Sunday) through 6 (for Saturday)
z	The day of the year (starting from 0)	0 through 365
Week	---	---
W	ISO 8601 week number of year, weeks starting on Monday	Example: 42 (the 42nd week in the year)
Month	---	---
F	A full textual representation of a month, such as January or March	January through December
m	Numeric representation of a month, with leading zeros	01 through 12
M	A short textual representation of a month, three letters	Jan through Dec
n	Numeric representation of a month, without leading zeros	1 through 12
t	Number of days in the given month	28 through 31
Year	---	---
L	Whether it's a leap year	1 if it is a leap year, 0 otherwise.
o	ISO 8601 week-numbering year. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead.	Examples: 1999 or 2003
Y	A full numeric representation of a year, 4 digits	Examples: 1999 or 2003
y	A two digit representation of a year	Examples: 99 or 03
Time	---	---
a	Lowercase Ante meridiem and Post meridiem	am or pm
A	Uppercase Ante meridiem and Post meridiem	AM or PM
B	Swatch Internet time	000 through 999
g	12-hour format of an hour without leading zeros	1 through 12
G	24-hour format of an hour without leading zeros	0 through 23
h	12-hour format of an hour with leading zeros	01 through 12
H	24-hour format of an hour with leading zeros	00 through 23
i	Minutes with leading zeros	00 to 59
s	Seconds with leading zeros	00 through 59
u	Microseconds. Note that date() will always generate 000000 since it takes an int parameter, whereas DateTime::format() does support microseconds if DateTime was created with microseconds.	Example: 654321
v	Milliseconds. Same note applies as for u.	Example: 654
Timezone	---	---
e	Timezone identifier	Examples: UTC, GMT, Atlantic/Azores
I (capital i)	Whether or not the date is in daylight saving time	1 if Daylight Saving Time, 0 otherwise.
O	Difference to Greenwich time (GMT) without colon between hours and minutes	Example: +0200
P	Difference to Greenwich time (GMT) with colon between hours and minutes	Example: +02:00
p	The same as P, but returns Z instead of +00:00	Example: +02:00
T	Timezone abbreviation, if known; otherwise the GMT offset.	Examples: EST, MDT, +05
Z	Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.	-43200 through 50400
Full Date/Time	---	---
c	ISO 8601 date	2004-02-12T15:19:21+00:00
r	» RFC 2822 formatted date	Example: Thu, 21 Dec 2000 16:01:07 +0200
U	Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)	See also time()

 

Edited by SimonF
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.