Backup to external drive

zierbeek

Explorer
Joined
Apr 4, 2021
Messages
54
Hi all, to finalise my 3-2-1 backup, I want to create a backup to an external harddrive. The server is running Truenas as OS.

I would want to do this only for my images and my vm (the hard drive is only 1tb).

What should I use? Duplicate doesn't have the possibility to clone to an external drive.
I checked the resources but It all seemed pretty old and not that relevant anymore.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I checked the resources but It all seemed pretty old and not that relevant anymore.
I think this one still seems relevant:
 

zierbeek

Explorer
Joined
Apr 4, 2021
Messages
54
I think this one still seems relevant:
Thanks but would make use of replication, would that be fine too?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
ZFS replication via snapshots is incremental, checksums everything, and is simply the best method.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Yes, sure. A replication of a dataset contains exactly the same data as the original dataset at the point of time when the last replicated snapshot was taken.
 

zierbeek

Explorer
Joined
Apr 4, 2021
Messages
54
Yes, sure. A replication of a dataset contains exactly the same data as the original dataset at the point of time when the last replicated snapshot was taken.
And as such it has the same size?

A best practice to leave it attached or just regularly make a backup of it. not much changes since it are photos and my vm
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You could set it with no schedule and to not run automatically, which leaves you clicking the Run Now button when you have attached the disk.

I would suggest not using automatic/scheduled if the drive might be disconnected some of the time.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Same size in total. Successive snapshots only need the differences.

I.e. snapshot main dataset every hour and keep for one week. That means you can restore any file with a granularity of one hour up to one week into the past.
Then replicate i.e. the midnight snapshot once per day to external disk, keep for four weeks. So additionally you can get at past data for four weeks, but only with a granularity of one state every day.

The size requirements depend on the frequency of changes. If nothing ever changes, the replica takes up as much space as the original and all the snapshots are 0 bytes or just a couple of k in size.
 

zierbeek

Explorer
Joined
Apr 4, 2021
Messages
54
You could set it with no schedule and to not run automatically, which leaves you clicking the Run Now button when you have attached the disk.

I would suggest not using automatic/scheduled if the drive might be disconnected some of the time.
But that would keep the disk spinning all the time?
 
Top