Backup strategies using BTRFS

Hello,
i started to play around with the btrfs filesystem and was wondering how i can use it's features ,e.g. snapshots, to aid a system backup?
What strategies are there? I can make a snapshot and copy it on another device, but is there a even better way? How do you make your backups using btrfs?
Thanks in advance,
Robert

Snapshots within the same disk (manual or snapper) are the easiest way, but they won't protect you against filesystem corruption.
btrfs subvolume find-new feeding rsync is easy and should be safe, but it's a bit inaccurate because it won't notice file deletions and metadata-only changes.
Send/receive are the most efficient way to transfer things to another device, but it's quite new so there may be bugs left in it. Best do a slower rsync pass from time to time to make sure everything was transferred properly (rsync -c to check file contents not just mtimes), followed by a btrfsck of the receiver.
At the moment I'm using btrfs-time-machine, which transfers with rsync and only needs btrfs on receiver side, where it does snapshots.
Last edited by Tobu (2012-11-04 19:19:18)

Similar Messages

  • I'm wondering about bootable backup strategies

    I'm wondering what people use and recommend for backup strategies, and especially the utility of "bootable" backups.
    I have an early-2011 15" MBPro, running fully updated Yosemite.  My computer is apparently one of the "victims" of the recently publicized graphics system problems that has resulted in Apple's recent out-of-warranty repair offer for machines in this category.  Over the past 10 months my machine has been in for repair 4 times, resulting in the replacement of my display, main logic board (x 3!!) and hard drive.  These 4 repairs were the result of incidents that started with the screen graphics going crazy and ending, eventually, in an un-bootable state.  Two of the 4 times I was returned a working machine with a clean new-install of OS 10.  (all "free" I might add, thanks to still being on Apple Care when the whole process started!)  Hopefully, my last repair will "do the trick" as it was AFTER Apple's announced repair offer for these machines.  My Apple Store "genius" opined that this time my main logic board was probably an "improved" item, since the first two replacements didn't solve the problem.
    So twice in the recent past I have had to completely restore my machine from my Time Machine (to Time Capsule) back-up.  Both successful, thankfully!  But this experience has focused my attention very sharply on my backup strategy, and made me wonder how "exposed" one still might be with "just" a Time Machine backup.
    Talking informally with several more knowledgeable and experienced "Mac" people that I know, I discovered that many people don't rely on Time Machine, at least not solely.  I was persuaded that the really most secure situation is to have a second back-up, preferably a bootable "disc image,"  stored on a separate device (and maybe preferably off site).
    So, I've been looking into the options, services, etc..  There are MANY!  I love the ease, automaticity and utility of having a Time Machine back-up.  But I'm wondering, for those (probably few) out there that do something MORE than that: what back-up strategies do you use?  Is is POSSIBLE to have a "bootable" backup on an online/cloud device (maybe not)?  What systems work well and are complementary/supplementary to Time Machine? 
    I know, from my own experience, that HAVING a backup is fairly easy.  But I've also learned that RESTORING a backup (mine's around 400 GB) is NOT "easy", at least very time consuming, and probably fraught with potential problems which won't appear until it's too late to do something else!  So I'm particularly looking at the restoration features of backup software and services.  Frankly, those are often largely ignored in the promotions, which mainly focus on how easy it is to DO the backup but never talk much about doing the restore!!
    Any and all opinions are welcomed.  I am definitely considering some redundancy in my backups after "dodging the bullet" twice in the last 3 months!

    ... how "exposed" one still might be with "just" a Time Machine backup.
    Just one backup isn't enough. Two or more are preferable. Time Machine can back up to as many external devices as you wish. Purchase two or more inexpensive USB hard disk drives and store one of them offsite at all times. Time Machine will back up to each one "in rotation" when they're available. If the backup device it's expecting isn't available, it looks for the next one, etc.
    If you want to augment Time Machine with another backup strategy, consider "clone" software such as Carbon Copy Cloner. It will create bootable copies of your existing installation if you consider that a valuable option.
    "Bootable" is fine but not really necessary. Consider the possibility in which it's impossible to boot your Mac for whatever reason, or if should happen to be lost, stolen, or irreparably damaged. Consider the circumstances applicable to the way you use your Macs that might cause that event. If your disaster recovery plan addresses that contingency, it's a good plan. Recovering 400 GB is going to be time consuming no matter what method you use. An external HDD with a Thunderbolt interface would be fastest, followed by USB3, followed by USB2, followed by a directly connected (Ethernet cable) Time Capsule, followed by a wireless Time Capsule — for which a TM restoration might take an unacceptable amount of time (days).
    Obviously I don't know the circumstances of the repairs you required, but I question the necessity to replace the hard disk. It's possible the same one could have been re-used, saving you the inconvenience of having to perform a restoration.

  • Ow can I use my time capsule as a time machine backup without using it wirelessly and not as a wireless router?

    How can I use my time capsule as a time machine backup without using it wirelessly and not as a wireless router?

    bzb888 wrote:
    I have a wireless transmitter already, would like to use the capsule just as a back up drive, I tried hooking up from the ethernet port on the imac to the one of the ports on the capsule but then my Wifi would not work. do I hook the cable to the port with the circle or the arrows?
    It is better to have the TC as part of the main network in bridge. You do not need to run wireless.
    If you want to use the TC plugged in by ethernet and still use wireless for internet, that is possible but the setup is rather more complicated.. the computer must not get confused about which device to use as a gateway or dns server.
    See info in this thread on setting this up.
    https://discussions.apple.com/thread/4817218?tstart=30
    I need to add.. a USB drive would be cheaper, faster and more reliable. It is really poor use of a TC.

  • I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    I bought an external hard drive for backups to use with Time Machine, but however when I try to connect it with the other windows laptop it doesn't work ? intact it doesn't work on any other device except my MAC ?

    Do not worry about it.
    Time Machine needs that your external drive is formatted in HFS+, or better known as "Mac OS Extended (Journaled)". This filesystem is used by Apple on Macs and Windows cannot read or write drives formatted with this filesystem, being this the reason why all your devices do not read the external drive except your Mac.
    You can only use your external drive to make Time Machine drives. If you store anything different, you may damage the Time Machine structure, so it is better not to use it as a drive to store other data. Instead, get another external drive to do it or create a second partition on the external drive formatted in FAT32 by using Disk Utility > http://pondini.org/OSX/DU3.html FAT32 can be read by Windows PCs

  • Oracle 9i TEMP tablespace backup problem using RMAN!

    Oracle8/8i whole backup is ok for our backup software(using RMAN without RC database), but for Oracle 9i, I get following error messages when backing up temp tablespace.
    1. RMAN-20202: tablespace not found in the recovery catalog
    2. RMAN-06019: could not translate tablespace name "TEMP"
    I check some views of Oracle9i, and know some changes happen for temp tablespace in 9i, but how to deal with this problem. Any idea, please!

    In 9i RMAN does not restore temporary datafiles. Instead, you should create them after your restore. I believe that Oracle is going to make a change to this in the next release of 9i and have RMAN create the temporary files. You can view the temporary datafiles @ v$tempfile.
    I believe RMAN doesn't restore temporary files because they are locally managed and not in the control files. RMAN reads the controlfile of the target database to obtain info about backups, datafiles, etc.
    Hope this helps.

  • What's the best way to backup DFS using DPM 2010?

    We setup DFS on two Windows 2012 R2 and they are hosting files. What’s the best way to backup DFS using DPM 2010?
    1. When doing data backup, do we backup both dfs01 and dfs02? Or just backup one of them?
    2. Beside the data, what do we need to backup?
    Bob Lin, MCSE & CNE Networking, Internet, Routing, VPN Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net How to Install and Configure Windows, VMware, Virtualization and Cisco on http://www.HowToNetworking.com

    Protecting Data in DFS Namespaces
    Backup files and BRM of dfs01 and dfs2 for minimaze traffic.
    If dfs01 and dfs02 have good channel width that use DPM to only protect a single “copy” of the data located on a server-specific local path.
    Data Protection Manager 2010 Protection Best Practices
    Have a nice day !!!

  • Can i roll forward cold backup taken using os command

    i have cold backup of db which is in archivelog mode ( backup taken using os level cp command )
    and arch logs from after backup was taken.
    can i restore db and rollforward using the archive logs?

    Hi mseberg,
    In the first article you point to ( http://www.reachdba.com/showthread.php?532-Oracle-Database-Manual-Backup-and-Recovery]), the author wrote this:
    a) when Online redo logs backup is there.,
    and after that, he wrote this:
    b) when Online redo logs backup is not there.So, I don't understand what is written in that article: it seems to me that it's often mentioned that there should be no redo log backup.
    Please, could you clarify about this idea of redo log backup in the first article you pointed to ?

  • Data Backup Strategies in SAP

    HI ALL,
    What are some of the different ways of backing up SAP Data?

    HI,
    There are many backup strategies for SAP.
    1) If you can shutdown your server at night, you can take an offline database backup with redo logs.
    2) If your server needs to remain on all 24 hrs, you can take an online backup with redo logs.
    3) Once in 15 days or a month, you can take an O.S. level backup.
    Also devise a strategy to keep a copy of backup at a different location and follow it. There should be at least one copy of O.S. Level backup at any other location other than your office premise.
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • "Backup failed" using Time Capsule

    Hello, trying to back up a Macbook using Time Capsule, keep getting the message that backup failed, even when I attach with MB to TB with an Ethernet cable.
    Anyone have any idea where I could begin to start looking for a solution?

    Hi James,
    Have you tried erasing your Time Capsule disk? If it's the initial backup, it could be that you have a corrupt sparsebundle file. Go into AirPort Utility > Manual Setup > Disks and select and erase the internal disk. Then try your backup again using an ethernet cable and see if that works.

  • I am trying to confirm the time at which a particular backup occurred using an external hard drive that I have since misplaced. Although time machine lists the backup times for some backups, it does not list them for all. Can someone help?

    I am trying to confirm the time at which a particular backup occurred using an external hard drive that I have since misplaced. Although time machine lists the backup times for some backups, it does not list them for all, including the one in question. Can someone help?

    Okay, I've sussed it.  I saw a link to another discussion that hadn't turned up in any of my searches before I posted the question above.
    My Tosh HDD was formatted to FAT 32 and therefore would not be backed up by Time Machine.  I removed all data from it - nightmare as I hadn't enough space to put it on the macbook HDD, but, after trawling through numerous photos and deleting rubbish for hours, I finally made enough space and copied all data across.  Then, after clearing the data from the Tosh HDD, I used disk utilitity to reformat it to Mackintosh OS Extended.  Chose the option without kournalling because I'm not baking up onto this disk and so don't need it - according to some other discussions I found.
    When it was done I check on time machine in system prefs and once I selected options, I was able to remove it from the excluded from backups list.  Hey presto.  Now I'm moving my photo library and my music library onto the Tosh HDD and my macbook should start to breath again.  Hurray.

  • Synchronous multimaster replication Backup strategy using RMAN

    Hi all,
    I am using synchronous multimaster replication. my question is backup strategy has to perofirm in all the master site or only in any of 1 mastersite? what all problems will encounter in RMAn backup in my scenario please help me out with your suggestion
    nagaraj.K
    [email protected]

    You ask: "I want to configure backup strategy using RMAN. any one can help me that"
    And the answer is clearly no we can not.
    An RMAN backup strategy depends on your SLA (Service Level Agreement) with your customers that you didn't post. What is your down-time window? What is your skill set?
    You ask: "How to configure for RMAN Incremental backup?"
    Read the docs at http://tahiti.oracle.com for your version (which you didn't mention).
    You ask: "What will be backup space and there size ?"
    We have no idea. Are you going to create an image copy or a backup set? Read the docs and learn the difference. Are you going to turn on compression? Are you going to back up only changed blocks? We don't know.
    You ask: "how to manage growing online archiving files?"
    Again we can't help you without knowing your SLA. How many MG/GB are they? What period of time do you need to retain them to meet your SLA? When you figure this out back up to tape those you don't need to keep on the server.
    You ask: "how to manage growing data and there disk space?"
    This is one we can answer: BUY MORE DISK! That was easy.
    You ask: "How we can give good performance our CPU and memory?"
    Do you really expect that we can with zero knowledge of your environment, your version, your application, etc. distill into a few short paragraphs the collective wisdom of Cary Millsap, Jonathan Lewis, and the rest of the Oak Table Network membership?
    Of course we can not. So what you need to do is buy Cary's book, Jonathan's book, and take their classes.
    You ask: "we need keep all archive log in backup files or we need to remove old archive files?"
    Remove the old ones after being absolutely sure you have a good backup.
    You ask: "where we can take backup tape drive,SAN,disk removable hard disk? which one is better?"
    No one solution is better than the other. They are all adequate.

  • Is it possible to install OL6.2 with UEK using btrfs root file system?

    Can we use btrfs for root file system with Oracle Linux?
    If yes - how to install it? (OL6.2 installer doesn't offer btrfs within the available file systems).

    For what it's worth, I tried the following, which worked:
    host: vm022
    cd /etc/yum.repos.d
    rm public-yum*
    wget http://public-yum.oracle.com/public-yum-ol6.repo
    +Edit public-yum-ol6.repo and enable [ol6_UEK_latest]+
    yum update kernel-uek
    yum install btrfs-progs
    The system was successfully updated to UEK2 - 2.6.39-100
    Boot the system form Fedora 15 Live CD and open a terminal. Enter the following:
    su - root
    yum install btrfs-progs
    lvscan
    btrfs-convert /dev/vg_vm022/lv_root
    (conversion complete)
    mount /dev/vg_vm022/lv_root /mnt
    Edit /mnt/etc/fstab and change the root volume filesystem from ext4 to btrfs
    umount /mnt
    reboot
    Start from the OL6.2 DVD in rescue mode. Select continue to let if find the existing Linux system and drop into the shell
    chroot /mnt/sysimage
    modprobe btrfs
    lsmod | grep btrfs
    cd /boot
    cp initramfs-2.6.39-100.5.1.el6uek.x86_64.img /root
    mkinitrd -f -v /boot/initramfs-2.6.39-100.5.1.el6uek.x86_64.img 2.6.39-100.5.1.el6uek.x86_64
    exit
    unmount /mnt/sysimage
    After another restart (it restarted twice doing some volume/label converison - didn't catch it)
    mount
    /dev/mapper/vg_vm022-lv_root on / type btrfs (rw)
    Edited by: Dude on Mar 29, 2012 6:35 PM

  • Backup procedure using RMAN for 11i Instance

    Hi,
    we have 11.5.10.2 instance
    Node 1 = Application Tier ( 11.5.10.2)
    Node 2 = DB Tier ( 9.2.0.7)
    as of now, we are taking daily cold backup of both instances.
    we want to implement RMAN online backup for DB and take cold backup every week end only.
    so, what are the best procedures for implementing RMAN for 11i Database.
    Please share your experience, if you have anybody implemented?
    which one you prefer in RMAN backup ( backupsets or copy option or backupsets with compressed option) interms of performance.. our db size is 60 GB only.
    we apply apps tier patches very rarely . so we want to take RMAN online backup for DB daily and take cold backup for entire apps and db in the week ends.

    Hi,
    This time, i am going to implement for Oracle 11i Database. thats why, i need you guys advice regarding 11i Database.Well, the same is applicable to 11i/R12 databases. You just need to configure RMAN the same way you configure it on any standalone database.
    If you have implemented any where RMAN, can you share, how you are taking RMAN backup? I can share the scripts we use for backup using RMAN. If you are interested, let me know and I shall send it by email.
    if we want to clone, are you cloning the TEST instance with RMAN backup or using cold backup.We use both, depends on the time frame of the cloning task and whether it is possible to use cold backup for cloning or not.
    Please have a look at the following notes, it should be helpful.
    Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid Clone
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230672.1
    Note: 760772.1 - Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=760772.1
    Note: 362473.1 - Cloning E-Business Suite Using Hot Backup for Minimal Downtime of Source Environment
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362473.1
    Regards,
    Hussein

  • Backup Failure using OEM (Oracle 9i)

    Backup Failure using OEM
    I have oracle 9i (windows 2000 server)
    I tried to make a fullbackup using OEM, it gives me NO error messages
    I got result file with 890 MB (my Db is not huge),
    but when I go back to the JOBs in OEM I found the status of the job FAILED
    I tried to do the same thing using incremental backup level 0, but I got the same result
    any Idea why the job didn't complete successfully
    thanx in advance

    Here is the deal.
    I need to be able to work in the OEM for my class. (Oracle DBA in Training) It is a significant part of my grade to be able to find the required help through forums like these to help me get the backup/recovery process to work through the OEM. My books deal with the OEM in a Win2000 Pro/Server environment, and don't take into consideration the variances in XP Pro. My install works great, other than I am receiving a "Fail" on my OEM Backups under Jobs. It further explains that I do not have the proper permissions to perform the backup job that was created. My instructor is completely hands off when it comes to help. So if anyone has run into this problem and been successful in fixing the problem without using a different utility. Please let me know.
    Thanks in advance,
    Vic

  • Backup Failure using OEM

    Backup Failure using OEM
    I have oracle 9i (windows 2000 server)
    I tried to make a fullbackup using OEM, it gives me NO error messages
    I got result file with 890 MB (my Db is not huge),
    but when I go back to the JOBs in OEM I found the status of the job FAILED
    I tried to do the same thing using incremental backup level 0, but I got the same result
    any Idea why the job didn't complete successfully
    thanx in advance

    Use command line -> rman .

Maybe you are looking for

  • Getting Windows 7 on the Mid 2011 MacBook Air EASILY *TESTED*

    Greetings! As this is my first post, I wanted to make it count. Thus I have decided to compile a simple guide on EASILY getting Windows 7 installed on to your mid-2011 MacBook Air. I have been following the many threads around here regarding the trou

  • Itunes taking up all my memory on my computer

    I bought an external hard drive (drive J) specifically for storage of my itunes and have change my importing location to that drive. However, when I look at the properties of my C and D drive on my computer, the C drive still shows tons of memory lef

  • Macbook Pro to Sanyo projector wireless ?

    Greetings from Alaska. Say I need some advice. We have a Sanyo projector mounted on the ceiling at our church. Currently I have a VGA and a S-video cables running down to meet our laptops. I notice that the S-video is much clearer on the screen (whic

  • LOGICAL DATABASE - DYNAMIC FIELDS - ALWAYS DISPLAYED...

    Is there any way to always display a field from the dynamic selection fields list ? regards, best wishes for 2009

  • Iphone 4 will not connect to wifi

    iphone 4 has not been connecting to wifi, I have restarted and have all updates? Was charged extra for last months overage. No explanantion