How to backup ZFS filesystems to files on USB drive?
Dear Solaris 10 Experts,
I need to carry out a manual backup of all zpool/zfs filesystems on a Solaris 10 x86 server in order to port it onto VM Ware hardware but don't know how
to do it. Past exercises have been smooth using ufsdump & ufsrestore for small standalone servers. Below are the zfs filesystems that need to be backed up:
I am very to ZFS and having been Googling but could not find a simple straigt forward commands to backup ZFS filesystems into files onto external USB
drive to be transfer to VM Ware server for hardware migration purposes.
Your advice / referral would be very much appreciated.
Many thanks,
George
No need to backup libc_hwcap2.so.1 which isn't a zfs file system anyway.
You need to create a snapshot before sending datasets.
Instead of sending each file system separately, send recursively from the top dataset (and create a recursive snapshot to ensure consistency).
Instead of sending to a local file, send the stream to another machine where you run "zfs receive". This will guarantee the backup wasn't corrupted during the transport.
If you want to compress your data, use ZFS own compression capabilities instead of relying of an external gzip command.
If you are short on network bandwidth, you might compress the datastream before sending it but you'll need to uncompress it on the other side before receiving it.
Use incremental send/receive for subsequent backups.
Thanks for your general advice but I would very much appreciate for more specific commands. Below are the things that I have tried but still a long way to getting a proper backup onto USB (UFS filesystem) currently, while in single user mode:
Which returns the prompt immediately with only a tiny file generated. Alternatively solution is to use the following command to create snapshot on to the USB drive with zfs receive:
However, do I need to create a zpool filesystem on USB drive first? How to do that and also the drive is currently in UFS format? Don't tell me that I need to slice up the USB or re-create it in zfs filesystem.
ZFS backup is much more complex than ufsdump/ufsrestore in the past. I simply want a physical backup file of everything under rpool that can be transfered to another generic Solaris 10 VM, to be restored onto.
Much appreciate your detail comments & patience.
George
Moderator's Comments:
Please use CODE tags when posting sample code, input, and output rather than assume than an administrator will edit your posts to add missing tags.
Last edited by Don Cragun; 02-12-2014 at 04:41 AM..
Reason: Add CODE tags.
I have noticed that when I copy files to flash disk and in UI I see message copy completed in notification area on task bar, usually copy is not completed. So, if I eject the media I loose data.
It is very serious problem because may cause loss of valuable and even critical data.
Moreover, when... (2 Replies)
Hi Guys
I have one Global Zone and 2 non-global zones.
root@solar109
# zoneadm list -icv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
20 solar109b running ... (1 Reply)
Hi,
I want to take backup of files older than 20 days from a directory onto a tape drive on remote machine on Solaris.
The files are of format abc-20100301000000.gz on my local machine.
I know the below commands for searching files older than x days and command for backup procedure.
solar1 #... (7 Replies)
how would a make a complete backup of all files spanning all file systems on my SCO box to tape?
i read somewhere:
find . -print | cpio -ocv > /dev/rStp0
from / ... will this do it??
(yes /dev/rStp0 is my tape drive) (11 Replies)
I have a Solaris 10 container that is running on ZFS filesystems being presented from the Global Zone.
I have a filesystem presented to the Local zone and my user wants me to remove it.
It there any way I can remove this while the zone is running?
I tried unmounting it from the local zone... (0 Replies)
Hi ,
We are using Veritas Net Backup , I want to create a new policy for backing up the (Solaris Operating System & the file systems) only the OS. not Full backup because we have an other policy for Oracle Apps and it takes full backup for all Partitions.
I need the OS backup to be in... (2 Replies)
Hi Folks,
I'm a serious UNIX newbie... I'm using a bash shell on Mac OS X.
Basically I took up unix in order to use a specific image processing software package... I've learned enough to write a script to batch process all of my images, but I have so many that I would like to use an... (1 Reply)