Snapshot/Backup to another pool

Status
Not open for further replies.

kondisz

Dabbler
Joined
May 7, 2017
Messages
13
Hi,

Please be so kind and help me with creating a periodic backup. Could You explain me how to do a periodic backup with two different ways?

local storages:
/mnt/data - samba shares
/mnt/backup - backups from data

Daily:
Snapshot/Bachup from "data" pool to "backup" pool:
/mnt/data -> /mnt/backup/daily/%date%/"tree of folders and files from data"

Weekly:
Full Backup from "data" pool to "backup" pool:
/mnt/data -> /mnt/backup/weekly/%date%/"tree of folders and files from data"


In "daily" and "weekly" folders should be created folder with date accurate for date of backup and inside of those folders should have be copied rest of folders trees and files.

Daily backup should have copied only changed files (with folder trees) from last day, Weekly backup should have a full copy of all files (with folder trees)

In daily backup - automaticaly should be removed backup which is older than 14 days
In weekly backup - automaticaly should be removed backup which is older than 4 backup/4weeks

Is it possible with a simple script or with freenas gui?

Thank You in advance!
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
You can use the replication to replicate to a different pool on the same FreeNAS. Just use localhost as the "remote" server. As long as your running scrubs on your pools, there is no reason for weekly full backups. Also snapshots only contain changed data even within a file. Its extremely efficient.
/mnt/backup/daily/%date%/"tree of folders and files from data"
This is not how snapshots work. You should look into ZFS snapshots to understand how they work with FreeNAS. They are accessible from /mnt/POOL/.zfs/snapshot-name/ but are not separate files from the live ones.
 
Status
Not open for further replies.
Top