SOLVED Backup pool....

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
Hey
I want to back up the pool.
All the files inside the jail and all the settings (ip, mac address, etc) and permissions (of all files and folders within the jail)
That is to back up my entire pool along with any permissions I gave to files and folders
I want to do this because I'm replacing all the drives and rebuilding the Raid

Is there a good way to do this without losing anything? I very much hope there is ....

Thanks Itay
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
You can make as snapshot, then use zfs send | zfs receive to send everything to another set of disks. I did this recently when I did a rebuild of my pool.
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
You can make as snapshot, then use zfs send | zfs receive to send everything to another set of disks. I did this recently when I did a rebuild of my pool.
How do I use "zfs send | zfs receive" and can I use it to temporarily transfer my pool to an external drive? Then bring her back after I build up my Raid back?
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
???
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
Hey, by the suggestion that "Chris Moore" told me up I started researching the ZFS sending and receiving. And because I have a lot of dataset I wanted to know if there is a possibility to consolidate all the sending (I decided to back up everything from Snap to gz files) and the whole reception to two commands for everyone together that is a lot to do for everyone. I would like to know if there will be anything that will make the process easier?
Thanks Itay
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
zfs snap -r snapshots the dataset and all it's children then you send the same way, zfs send -r. Your question is confusing so I don't understand what you want.
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
zfs snap -r snapshots the dataset and all it's children then you send the same way, zfs send -r. Your question is confusing so I don't understand what you want.
I follow this "guide" https://blog.fosketts.net/2016/08/18/migrating-data-zfs-send-receive/
In this part of him:
"Wait For It…

You can also redirect ZFS Send to a file and tell ZFS Receive to read from a file. This is handy when you need to rebuild a pool as well as for backup and replication.

In this example, we will send gang/scooby to a file and then restore that file later.

  1. Try to quiet gang/scooby
  2. Make a snapshot: zfs snap gang/scooby@ghost
  3. Send that snapshot to a file: zfs send gang/scooby@migrate > gzip /tmp/ghost.gz
  4. Do what you need to gang/scooby
  5. Restore the data to gang/scooby: gzcat /tmp/ghost.gz | zfs recv -F gang/scooby
  6. Promote gang/scooby’s new snapshot to become the dataset’s data: zfs rollback gang/scooby@ghost"

1. I wanted to know if I could "transfer" all the Snap I created to the gz files in one command?
2. Can I "move" them back to Pool / dataset in one command?

I hope I was more clear.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
yeah just snapshot the parent directory with the -r flag then send with the -r flag. Same goes for the receive command.
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
yeah just snapshot the parent directory with the -r flag then send with the -r flag. Same goes for the receive command.
When I try to send I get the error invalid option 'r'
 

Itay1778

Patron
Joined
Jan 29, 2018
Messages
269
yeah just snapshot the parent directory with the -r flag then send with the -r flag. Same goes for the receive command.
Hey, it worked !!!! And the problem was with the r I had to use a capital letter rather than a small one
I really thank you !!
 
Top