Snapshot to Other volume

Status
Not open for further replies.

Keetawat

Dabbler
Joined
Jan 4, 2017
Messages
11
Dear All,

I was using FreeNAS-9.10.1 (d989edd) and I would like to setup snapshot backup but for my desired I expected to snapshot to other volume that I have created that

Vol.1 (Data)
Vol.2 (Backup)

Please anyone who could suggest me to do this setup.

Thank you in advance.
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Snapshots are related to the dataset. If you create a snapshot on 'vol1', that's where the snapshot will exist.

You can then send the snapshot to the other pool 'vol2' using the zfs send and zfs recv commands. This is something you will need to script as there is no internal functionality for this kind of function.

Example:

Let's assume today is Friday, we'll call our snapshot that. Let's also assume your pool is called vol1 and your dataset is data. First, we take a snapshot:

zfs snapshot vol1/data@friday

Then we send the snapshot to our second pool named vol2

zfs send vol1/data@friday | zfs recv vol2/data

Once completed, we can destroy the snapshot on vol1 (don't worry, this won't erase any data, only destroys the snapshot)

zfs destroy vol1/data@friday
 
Last edited by a moderator:

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525

Keetawat

Dabbler
Joined
Jan 4, 2017
Messages
11
I have to create periodic snapshot and then setup replication task?
Thank you for all suggestions.
 

Keetawat

Dabbler
Joined
Jan 4, 2017
Messages
11
I have got an error message after I added replication.
Failed: Permission denied (publickey,password).
Thank you very much.
 

snaptec

Guru
Joined
Nov 30, 2015
Messages
502
Do you have ssh enabled and configured?
Please have a look at the manual.
 
Status
Not open for further replies.
Top