SlideShare a Scribd company logo
1 of 6
Download to read offline
Using Life Preserver
to Backup a PC-BSD 9.0 System to FreeNAS™ 8.0.1
This article demonstrates how to use the built-in Life Preserver
program to backup a PC-BSD 9.0 desktop system to a FreeNAS™ 8.0.1
NAS system. Users can refer to the Guides at http://wiki.pcbsd.org/
index.php/PC-BSD_9_Handbook and http://doc.freenas.org for
instructions on how to install PC-BSD and FreeNAS™.




What you will learn…                                         What you should know…
• how to create an automated backup solution                 • how to install PC-BSD and FreeNAS™




P
       C-BSD provides a graphical Life Preserver utility     data is protected while being transferred over the network
       to make it easy for a desktop user to back up their   due to the encryption provided by SSH.
       home directory to another computer or storage
appliance using rsync and SSH. Once a full backup has        Configure FreeNAS™
been created, rsync will only send the files that have       In order to prepare the FreeNAS™ system to store the
changed since the last backup to the backup device. The      backups created by Life Preserver, you will need to:
                                                             create a dataset to store the user’s backup, create a user
                                                             account that has permission to access that dataset, and
                                                             enable the SSH and rsync services.




Figure 1. Create a ZFS Volume+                               Figure 2. Creating a Dataset from a ZFS Volume



 10                                                                                                             09/2011
PC-BSD’s New Control Panel




                                                                 Figure 5. Viewing a Dataset’s Permissions

                                                                 stripe named backups. Once the volume is created, it will
                                                                 appear in Storage-> Volumes->View all Volumes, as seen
                                                                 in Figure 2.
                                                                   Click the icon Create ZFS Dataset to see the screen
                                                                 shown in Figure 3. In this example, a dataset named dru
Figure 3. Creating a ZFS Dataset
                                                                 was created with a disk quota of 200GB. If your network
                                                                 contains multiple PC-BSD desktops or if several users
Create a Dataset                                                 share the PC-BSD system, create a dataset for each user.
In ZFS terminology, a dataset is a portion of a ZFS              You can make as many datasets as you wish, assuming
volume. Datasets allow you to create a storage area for          that free disk space still exists on the ZFS volume.
an individual user; datasets also allow you to configure           If you choose to use quotas, be sure to give the dataset
compression and a storage quota on a per dataset basis.          sufficient space to store a full backup and the amount of
Users will only see the data on their own dataset and are        incremental backups that you will schedule (e.g. a week’s
restricted to the disk space that you configure for the          or a month’s worth of daily backups).
dataset.
   Before you can create a dataset, you must first create a      Create a User
ZFS volume. In the FreeNAS™ 8.0.1 web administration             Once you have created the dataset, create a user account
interface, go to Storage->Volumes->Add Volume. As                to associate with each dataset. To create a user account,
seen in Figure 1, the available (unformatted) disks will be      go to Account->Users->Add User. In the example shown
listed.                                                          in Figure 4, a user account has been created for dru.
   In this example, the FreeNAS™ system has four 1TB
drives. If I select to create a ZFS stripe using all four        IMPORTANT
drives, the resulting volume will have the maximum               Change the Home Directory to the full pathname of the
storage capacity (~3.6TB) but will not have any                  dataset for this user; in this example it is /mnt/backups/dru.
redundancy (if one drive fails, the entire volume fails). If I     If you are configuring backups for several users, create
select to create a ZFS RAIDZ1, the resulting volume will         a user account for each user, being sure to give each user
provide redundancy (can survive the failure of one disk),        their own dataset as their home directory.
but will have reduced storage capacity (~2.8 TB) due to
the parity information. I have chosen to create a ZFS




Figure 4. Creating a User Account                                Figure 6. Enable the Rsync and SSH Services



www.bsdmag.org                                                                                                             11
Figure 9. Testing the Connection to the FreeNAS™ System

Figure 7. Input the IP Address and Username
                                                                  Configure Life Preserver
                                                                  In version 9.0 of PC-BSD, Life Preserver appears as
Check Dataset Permissions                                         an icon in the system tray. It can also be launched from
You can verify that the dataset’s permissions are correct by      Control Panel->Life Preserver.
going to Storage->Volumes->View All Volumes and clicking             The first time you run Life Preserver, the Life Preserver
the Change Permissions icon (third from the left). In the         Wizard will launch, indicating that you need to know the
example shown in Figure 5, the user dru has permission            IP address and username/password to connect to the
to the dataset; this was automatically configured when the        backup device. Click the Get Started button, then Next to
dataset path was selected as the user’s home directory.           see the screen shown in Figure 7. Input the IP address of
Depending upon your needs, you may wish to remove the             the FreeNAS™ system and the name of the user account
read permissions for group and other; note that this will not     that you created and associated with a dataset.
affect the superuser’s ability to read the files in the backup.      Click Next and select how often you would like the
Do not change the type of ACL (keep it at Unix).                  backup to occur, as seen in Figure 8. The default is to
                                                                  not create an automatic backup, meaning that you will
Configure SSH and Rsync                                           perform the backup manually as needed. You can choose
To enable the rsync and SSH services on FreeNAS™, go              to instead automatically backup your home directory once
to Services->Control Services. Click the red OFF button           a day or once a week.
next to Rsync. After a second or so, it will change to a blue        After making your selection, click Next then Finish. The
ON , indicating that the service has been enabled. Repeat         Wizard will display a message indicating that it will test the
for the SSH service.                                              connection to the FreeNAS™ system. Click Finish again
                                                                  and input the word yes and then the user’s password
                                                                  when prompted, as seen in Figure 9.
                                                                     Once the connection is successful, the preserver (the
                                                                  configuration for the backup) will appear in the preservers
                                                                  list, as seen in Figure 10, with the following information:




Figure 8. Select the Backup Schedule                              Figure 10. Daily Preserver with a Successful Backup



 12                                                                                                                         09/2011
Figure 11. Editing a Preserver’s Settings and Include List


Backup Server
Will indicate the user account and IP address of the
backup server.

Last Backup
Wil indicate whether or not the last backup was successful.
If you chose to automate backups, the first backup will
happen immediately. Otherwise, a backup will not occur
until you press the Start button. How long the first backup
takes depends upon the size of your home directory and
the speed of your network.

Schedule
Will indicate disabled, daily, or weekly.

Status
Running indicates that the backup is occurring now,
otherwise will show as not running.
  If you right-click the preserver, you can choose to
edit the settings, restore from a backup, or remove the
configuration.




Figure 12. List of Backups



www.bsdmag.org
Using a Graphical File Manager to View
                                                              Backups
                                                              Since Life Preserver uses SSH to transfer the backups
                                                              and restores, users can use SSH utilities such as ssh,
                                                              scp, and sftp to view and copy the files in their dataset.
                                                              If you prefer to use a graphical rather than a command-
                                                              line utility, there are several options available. Depending
                                                              upon which desktop you are logged into, you may or
                                                              may not have a graphical utility that understands SSH. If
                                                              you’re not sure, Krusader2 is available from AppCafe™
                                                              and provides a dual-pane file manager interface that
                                                              understands sftp.
                                                                 To access the FreeNAS™ system using Krusader,
                                                              type sftp:/102.168.2.7 into the address bar of one of the
                                                              panes, replacing the IP address with the value for your
Figure 13. Choosing Which File or Directory to Restore
                                                              FreeNAS™ system. When the login prompt appears,
                                                              input the username and password of your user.
  Figure 11 shows the screen if you select Edit, as well as      Figure 14 shows a listing of the stored backups in the
the screen if you also select Modify Include List.            life-preserver directory of the left pane and the user’s
  By default, Life Preserver makes a backup of the user’s     home directory on their PC-BSD system in the right pane.
home directory and stores the last 7 backups. If you wish     If you expand either a backup or current (a shortcut to
to exclude files from your home directory or include files    the latest backup), you can navigate to usr/home/$USER and
outside of your home directory, use the buttons to Modify     view the contents of your user’s home directory. You can
Exclude List or Modify Include List.                          then highlight the files/directories that you wish to restore,
                                                              right-click on the selection, click Copy, and the selection
Restoring Files                                               will be copied to the home directory on the PC-BSD
If you choose the option Restore From, you will be            system.
presented with a list of the stored backups. In the example
shown in Figure 12, the preserver is scheduled to backup      Summary
daily and a backup exists for August 17 (back-2011-08-        This article demonstrated how easy it is to backup a
17T09_11_08) and August 16 (back-2011-08-16T17_07_15). If     user’s home directory to a FreeNAS™ system using PC-
I highlight the backup for August 17 and click Select         BSD’s built-in Life Preserver utility. It also demonstrated
Backup, I’ll see the screen in Figure 13. In this example,    how to use the graphical Krusader utility to view backups
I’ve chosen to restore my Documents directory.                and perform file and directory restores.
   When doing a restore, give the full path to the file or
directory. The full path will always begin with /usr/home/
$USERNAME/ where you replace $USERNAME with the name of
your user.

                                                              DRU LAVIGNE
                                                              Dru Lavigne is author of BSD Hacks, The Best of FreeBSD Basics,
                                                              and The De�nitive Guide to PC-BSD. As Director of Community
                                                              Development for the PC-BSD Project, she leads the documentation
                                                              team, assists new users, helps to �nd and �x bugs, and reaches out to
                                                              the community to discover their needs. She is the former Managing
                                                              Editor of the Open Source Business Resource, a free monthly
                                                              publication covering open source and the commercialization of
                                                              open source assets. She is founder and current Chair of the BSD
                                                              Certi�cation Group Inc., a non-pro�t organization with a mission to
                                                              create the standard for certifying BSD system administrators, and
Figure 14. Using Krusader to Browse Backups                   serves on the Board of the FreeBSD Foundation.



 14                                                                                                                       09/2011
Lavigne sept11 bsdmag

More Related Content

What's hot

What's hot (20)

Ilf2012
Ilf2012Ilf2012
Ilf2012
 
Asiabsdcon15
Asiabsdcon15Asiabsdcon15
Asiabsdcon15
 
Lavigne bsdmag march12
Lavigne bsdmag march12Lavigne bsdmag march12
Lavigne bsdmag march12
 
Olf2013
Olf2013Olf2013
Olf2013
 
Lavigne bsdmag apr13
Lavigne bsdmag apr13Lavigne bsdmag apr13
Lavigne bsdmag apr13
 
Lavigne bsdmag sept12
Lavigne bsdmag sept12Lavigne bsdmag sept12
Lavigne bsdmag sept12
 
Flourish11
Flourish11Flourish11
Flourish11
 
Lavigne bsdmag may13
Lavigne bsdmag may13Lavigne bsdmag may13
Lavigne bsdmag may13
 
Fsoss2011
Fsoss2011Fsoss2011
Fsoss2011
 
olf10
olf10olf10
olf10
 
Scale 2010: BSD for Linux Users
Scale 2010: BSD for Linux UsersScale 2010: BSD for Linux Users
Scale 2010: BSD for Linux Users
 
Dru lavigne servers-tutorial
Dru lavigne servers-tutorialDru lavigne servers-tutorial
Dru lavigne servers-tutorial
 
Freenas Tutorial EuroBSDCon 2012
Freenas Tutorial EuroBSDCon 2012Freenas Tutorial EuroBSDCon 2012
Freenas Tutorial EuroBSDCon 2012
 
Oclug 2010
Oclug 2010Oclug 2010
Oclug 2010
 
Flourish16
Flourish16Flourish16
Flourish16
 
Nelf2013
Nelf2013Nelf2013
Nelf2013
 
Fsoss12
Fsoss12Fsoss12
Fsoss12
 
Lavigne bsdmag-jan2012
Lavigne bsdmag-jan2012Lavigne bsdmag-jan2012
Lavigne bsdmag-jan2012
 
Fossetcon14
Fossetcon14Fossetcon14
Fossetcon14
 
101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2
 

Similar to Lavigne sept11 bsdmag

Documentation free nas
Documentation free nasDocumentation free nas
Documentation free nasMoaaz Magdy
 
Documentation freenas
Documentation freenas Documentation freenas
Documentation freenas Moaaz Magdy
 
Citrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesCitrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesNuno Alves
 
Lavigne aug11 bsdmag
Lavigne aug11 bsdmagLavigne aug11 bsdmag
Lavigne aug11 bsdmagDru Lavigne
 
Open-E DSS V7 Asynchronous Data Replication within a System
Open-E DSS V7 Asynchronous Data Replication within a SystemOpen-E DSS V7 Asynchronous Data Replication within a System
Open-E DSS V7 Asynchronous Data Replication within a Systemopen-e
 
Netresview
NetresviewNetresview
Netresviewpiramal
 
Gluster Storage Platform Installation Guide
Gluster Storage Platform Installation GuideGluster Storage Platform Installation Guide
Gluster Storage Platform Installation GuideGlusterFS
 
Plesk 8.2 for Windows Backup and Restore Utilities ...
Plesk 8.2 for Windows Backup and Restore Utilities ...Plesk 8.2 for Windows Backup and Restore Utilities ...
Plesk 8.2 for Windows Backup and Restore Utilities ...webhostingguy
 
Plesk 8.2 for Windows Backup and Restore Utilities ...
Plesk 8.2 for Windows Backup and Restore Utilities ...Plesk 8.2 for Windows Backup and Restore Utilities ...
Plesk 8.2 for Windows Backup and Restore Utilities ...webhostingguy
 
Lavigne bsdmag june11
Lavigne bsdmag june11Lavigne bsdmag june11
Lavigne bsdmag june11Dru Lavigne
 
Installing oracle database 12c as container database with three pluggable dat...
Installing oracle database 12c as container database with three pluggable dat...Installing oracle database 12c as container database with three pluggable dat...
Installing oracle database 12c as container database with three pluggable dat...Marco Vigelini
 
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext Виталий Стародубцев
 
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)Isabella789
 
system state backup restore
system state backup restoresystem state backup restore
system state backup restoressuser1eca7d
 
Content server installation guide
Content server installation guideContent server installation guide
Content server installation guideNaveed Bashir
 
HP Storage Backup (RDX) presentation
HP Storage Backup (RDX) presentation HP Storage Backup (RDX) presentation
HP Storage Backup (RDX) presentation Jaideep Kumar
 

Similar to Lavigne sept11 bsdmag (20)

Documentation free nas
Documentation free nasDocumentation free nas
Documentation free nas
 
Documentation freenas
Documentation freenas Documentation freenas
Documentation freenas
 
Citrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesCitrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning services
 
Lavigne aug11 bsdmag
Lavigne aug11 bsdmagLavigne aug11 bsdmag
Lavigne aug11 bsdmag
 
Open-E DSS V7 Asynchronous Data Replication within a System
Open-E DSS V7 Asynchronous Data Replication within a SystemOpen-E DSS V7 Asynchronous Data Replication within a System
Open-E DSS V7 Asynchronous Data Replication within a System
 
dfg
dfgdfg
dfg
 
Netresview
NetresviewNetresview
Netresview
 
Gluster Storage Platform Installation Guide
Gluster Storage Platform Installation GuideGluster Storage Platform Installation Guide
Gluster Storage Platform Installation Guide
 
Plesk 8.2 for Windows Backup and Restore Utilities ...
Plesk 8.2 for Windows Backup and Restore Utilities ...Plesk 8.2 for Windows Backup and Restore Utilities ...
Plesk 8.2 for Windows Backup and Restore Utilities ...
 
Plesk 8.2 for Windows Backup and Restore Utilities ...
Plesk 8.2 for Windows Backup and Restore Utilities ...Plesk 8.2 for Windows Backup and Restore Utilities ...
Plesk 8.2 for Windows Backup and Restore Utilities ...
 
Lavigne bsdmag june11
Lavigne bsdmag june11Lavigne bsdmag june11
Lavigne bsdmag june11
 
Installing oracle database 12c as container database with three pluggable dat...
Installing oracle database 12c as container database with three pluggable dat...Installing oracle database 12c as container database with three pluggable dat...
Installing oracle database 12c as container database with three pluggable dat...
 
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
 
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
RH-302 Exam-Red Hat Certified Engineer on Redhat Enterprise Linux 4 (Labs)
 
BASSET_README
BASSET_READMEBASSET_README
BASSET_README
 
Lab 1 Essay
Lab 1 EssayLab 1 Essay
Lab 1 Essay
 
system state backup restore
system state backup restoresystem state backup restore
system state backup restore
 
NetApp against ransomware
NetApp against ransomwareNetApp against ransomware
NetApp against ransomware
 
Content server installation guide
Content server installation guideContent server installation guide
Content server installation guide
 
HP Storage Backup (RDX) presentation
HP Storage Backup (RDX) presentation HP Storage Backup (RDX) presentation
HP Storage Backup (RDX) presentation
 

More from Dru Lavigne (20)

Olf2018
Olf2018Olf2018
Olf2018
 
Olf2017
Olf2017Olf2017
Olf2017
 
FreeBSD System Administration Using SysAdm
FreeBSD System Administration Using SysAdmFreeBSD System Administration Using SysAdm
FreeBSD System Administration Using SysAdm
 
Asiabsdcon2017
Asiabsdcon2017Asiabsdcon2017
Asiabsdcon2017
 
Olf2016
Olf2016Olf2016
Olf2016
 
Tlf2016
Tlf2016Tlf2016
Tlf2016
 
Knoxbug2016
Knoxbug2016Knoxbug2016
Knoxbug2016
 
Lfnw2016
Lfnw2016Lfnw2016
Lfnw2016
 
Scale2016
Scale2016Scale2016
Scale2016
 
Fossetcon15
Fossetcon15Fossetcon15
Fossetcon15
 
Lfnw15
Lfnw15Lfnw15
Lfnw15
 
Scale2015
Scale2015Scale2015
Scale2015
 
Olf2014
Olf2014Olf2014
Olf2014
 
Ghc14
Ghc14Ghc14
Ghc14
 
Scale2014
Scale2014Scale2014
Scale2014
 
Dru lavigne oss-sysadmin
Dru lavigne oss-sysadminDru lavigne oss-sysadmin
Dru lavigne oss-sysadmin
 
Dru lavigne oss-desktop_apps
Dru lavigne oss-desktop_appsDru lavigne oss-desktop_apps
Dru lavigne oss-desktop_apps
 
Bsd ss
Bsd ssBsd ss
Bsd ss
 
Nycbsdcon14
Nycbsdcon14Nycbsdcon14
Nycbsdcon14
 
Fosscon2013
Fosscon2013Fosscon2013
Fosscon2013
 

Recently uploaded

Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 

Recently uploaded (20)

Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 

Lavigne sept11 bsdmag

  • 1. Using Life Preserver to Backup a PC-BSD 9.0 System to FreeNAS™ 8.0.1 This article demonstrates how to use the built-in Life Preserver program to backup a PC-BSD 9.0 desktop system to a FreeNAS™ 8.0.1 NAS system. Users can refer to the Guides at http://wiki.pcbsd.org/ index.php/PC-BSD_9_Handbook and http://doc.freenas.org for instructions on how to install PC-BSD and FreeNAS™. What you will learn… What you should know… • how to create an automated backup solution • how to install PC-BSD and FreeNAS™ P C-BSD provides a graphical Life Preserver utility data is protected while being transferred over the network to make it easy for a desktop user to back up their due to the encryption provided by SSH. home directory to another computer or storage appliance using rsync and SSH. Once a full backup has Configure FreeNAS™ been created, rsync will only send the files that have In order to prepare the FreeNAS™ system to store the changed since the last backup to the backup device. The backups created by Life Preserver, you will need to: create a dataset to store the user’s backup, create a user account that has permission to access that dataset, and enable the SSH and rsync services. Figure 1. Create a ZFS Volume+ Figure 2. Creating a Dataset from a ZFS Volume 10 09/2011
  • 2. PC-BSD’s New Control Panel Figure 5. Viewing a Dataset’s Permissions stripe named backups. Once the volume is created, it will appear in Storage-> Volumes->View all Volumes, as seen in Figure 2. Click the icon Create ZFS Dataset to see the screen shown in Figure 3. In this example, a dataset named dru Figure 3. Creating a ZFS Dataset was created with a disk quota of 200GB. If your network contains multiple PC-BSD desktops or if several users Create a Dataset share the PC-BSD system, create a dataset for each user. In ZFS terminology, a dataset is a portion of a ZFS You can make as many datasets as you wish, assuming volume. Datasets allow you to create a storage area for that free disk space still exists on the ZFS volume. an individual user; datasets also allow you to configure If you choose to use quotas, be sure to give the dataset compression and a storage quota on a per dataset basis. sufficient space to store a full backup and the amount of Users will only see the data on their own dataset and are incremental backups that you will schedule (e.g. a week’s restricted to the disk space that you configure for the or a month’s worth of daily backups). dataset. Before you can create a dataset, you must first create a Create a User ZFS volume. In the FreeNAS™ 8.0.1 web administration Once you have created the dataset, create a user account interface, go to Storage->Volumes->Add Volume. As to associate with each dataset. To create a user account, seen in Figure 1, the available (unformatted) disks will be go to Account->Users->Add User. In the example shown listed. in Figure 4, a user account has been created for dru. In this example, the FreeNAS™ system has four 1TB drives. If I select to create a ZFS stripe using all four IMPORTANT drives, the resulting volume will have the maximum Change the Home Directory to the full pathname of the storage capacity (~3.6TB) but will not have any dataset for this user; in this example it is /mnt/backups/dru. redundancy (if one drive fails, the entire volume fails). If I If you are configuring backups for several users, create select to create a ZFS RAIDZ1, the resulting volume will a user account for each user, being sure to give each user provide redundancy (can survive the failure of one disk), their own dataset as their home directory. but will have reduced storage capacity (~2.8 TB) due to the parity information. I have chosen to create a ZFS Figure 4. Creating a User Account Figure 6. Enable the Rsync and SSH Services www.bsdmag.org 11
  • 3. Figure 9. Testing the Connection to the FreeNAS™ System Figure 7. Input the IP Address and Username Configure Life Preserver In version 9.0 of PC-BSD, Life Preserver appears as Check Dataset Permissions an icon in the system tray. It can also be launched from You can verify that the dataset’s permissions are correct by Control Panel->Life Preserver. going to Storage->Volumes->View All Volumes and clicking The first time you run Life Preserver, the Life Preserver the Change Permissions icon (third from the left). In the Wizard will launch, indicating that you need to know the example shown in Figure 5, the user dru has permission IP address and username/password to connect to the to the dataset; this was automatically configured when the backup device. Click the Get Started button, then Next to dataset path was selected as the user’s home directory. see the screen shown in Figure 7. Input the IP address of Depending upon your needs, you may wish to remove the the FreeNAS™ system and the name of the user account read permissions for group and other; note that this will not that you created and associated with a dataset. affect the superuser’s ability to read the files in the backup. Click Next and select how often you would like the Do not change the type of ACL (keep it at Unix). backup to occur, as seen in Figure 8. The default is to not create an automatic backup, meaning that you will Configure SSH and Rsync perform the backup manually as needed. You can choose To enable the rsync and SSH services on FreeNAS™, go to instead automatically backup your home directory once to Services->Control Services. Click the red OFF button a day or once a week. next to Rsync. After a second or so, it will change to a blue After making your selection, click Next then Finish. The ON , indicating that the service has been enabled. Repeat Wizard will display a message indicating that it will test the for the SSH service. connection to the FreeNAS™ system. Click Finish again and input the word yes and then the user’s password when prompted, as seen in Figure 9. Once the connection is successful, the preserver (the configuration for the backup) will appear in the preservers list, as seen in Figure 10, with the following information: Figure 8. Select the Backup Schedule Figure 10. Daily Preserver with a Successful Backup 12 09/2011
  • 4. Figure 11. Editing a Preserver’s Settings and Include List Backup Server Will indicate the user account and IP address of the backup server. Last Backup Wil indicate whether or not the last backup was successful. If you chose to automate backups, the first backup will happen immediately. Otherwise, a backup will not occur until you press the Start button. How long the first backup takes depends upon the size of your home directory and the speed of your network. Schedule Will indicate disabled, daily, or weekly. Status Running indicates that the backup is occurring now, otherwise will show as not running. If you right-click the preserver, you can choose to edit the settings, restore from a backup, or remove the configuration. Figure 12. List of Backups www.bsdmag.org
  • 5. Using a Graphical File Manager to View Backups Since Life Preserver uses SSH to transfer the backups and restores, users can use SSH utilities such as ssh, scp, and sftp to view and copy the files in their dataset. If you prefer to use a graphical rather than a command- line utility, there are several options available. Depending upon which desktop you are logged into, you may or may not have a graphical utility that understands SSH. If you’re not sure, Krusader2 is available from AppCafe™ and provides a dual-pane file manager interface that understands sftp. To access the FreeNAS™ system using Krusader, type sftp:/102.168.2.7 into the address bar of one of the panes, replacing the IP address with the value for your Figure 13. Choosing Which File or Directory to Restore FreeNAS™ system. When the login prompt appears, input the username and password of your user. Figure 11 shows the screen if you select Edit, as well as Figure 14 shows a listing of the stored backups in the the screen if you also select Modify Include List. life-preserver directory of the left pane and the user’s By default, Life Preserver makes a backup of the user’s home directory on their PC-BSD system in the right pane. home directory and stores the last 7 backups. If you wish If you expand either a backup or current (a shortcut to to exclude files from your home directory or include files the latest backup), you can navigate to usr/home/$USER and outside of your home directory, use the buttons to Modify view the contents of your user’s home directory. You can Exclude List or Modify Include List. then highlight the files/directories that you wish to restore, right-click on the selection, click Copy, and the selection Restoring Files will be copied to the home directory on the PC-BSD If you choose the option Restore From, you will be system. presented with a list of the stored backups. In the example shown in Figure 12, the preserver is scheduled to backup Summary daily and a backup exists for August 17 (back-2011-08- This article demonstrated how easy it is to backup a 17T09_11_08) and August 16 (back-2011-08-16T17_07_15). If user’s home directory to a FreeNAS™ system using PC- I highlight the backup for August 17 and click Select BSD’s built-in Life Preserver utility. It also demonstrated Backup, I’ll see the screen in Figure 13. In this example, how to use the graphical Krusader utility to view backups I’ve chosen to restore my Documents directory. and perform file and directory restores. When doing a restore, give the full path to the file or directory. The full path will always begin with /usr/home/ $USERNAME/ where you replace $USERNAME with the name of your user. DRU LAVIGNE Dru Lavigne is author of BSD Hacks, The Best of FreeBSD Basics, and The De�nitive Guide to PC-BSD. As Director of Community Development for the PC-BSD Project, she leads the documentation team, assists new users, helps to �nd and �x bugs, and reaches out to the community to discover their needs. She is the former Managing Editor of the Open Source Business Resource, a free monthly publication covering open source and the commercialization of open source assets. She is founder and current Chair of the BSD Certi�cation Group Inc., a non-pro�t organization with a mission to create the standard for certifying BSD system administrators, and Figure 14. Using Krusader to Browse Backups serves on the Board of the FreeBSD Foundation. 14 09/2011