LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-28-2016, 12:19 AM   #1
tmst
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Rep: Reputation: 0
Back up btrfs snapshot to NFS-mounted partition


I have a server running on an ext4 fs. It has a HD with a btrfs-formatted partition, /laptop. /laptop is exported r/w to the local network.

I have a laptop (surprise) which is *all* btrfs and mounts the exported filesystem as /backup. So far, so good.

Since both partitions (/ and /backup) are btrfs, I was hoping it would be possible to easily do backups with btrfs' superb snapshotting capabilities. But when trying to send/receive, I get the following error:

linux:/ btrfs send /home/BACKUP | btrfs receive /backup/home
At subvol /home/BACKUP
ERROR: /backup/home doesn't belong to btrfs mount point
ERROR: failed to dump stream: Broken pipe

So I think maybe I have to first create the subvolume on the server:

linux:/ # btrfs subvolume create /backup/home
ERROR: not a btrfs filesystem: /backup


Being relatively new to both NFS and btrfs, I'm a bit overwhelmed by the intricacies of them working (or not) together. Any hints as to what I'm doing wrong?

Last edited by tmst; 11-28-2016 at 12:24 AM.
 
Old 11-28-2016, 01:37 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You may (still) need to do the receive "at" the server. The scripts pointed to by the wiki use ssh to connect to the server and do the receive.
Once that is all working, you can use incremental send/receive.
 
1 members found this post helpful.
Old 11-29-2016, 01:54 AM   #3
tmst
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
You may (still) need to do the receive "at" the server. The scripts pointed to by the wiki use ssh to connect to the server and do the receive.
Once that is all working, you can use incremental send/receive.
Use ssh to access a mounted filesystem? Isn't that redundant? Maybe you meant to tell me that NFS isn't any use in this context.
 
  


Reply

Tags
btrfs, nfs, snapshot



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to roll back a btrfs snapshot and restore corrupt or missing files LXer Syndicated Linux News 0 08-24-2016 07:41 AM
LXer: Rollback To A Working State With btrfs + apt-btrfs-snapshot On Ubuntu 12.10 LXer Syndicated Linux News 0 11-25-2012 10:42 AM
linux btrfs file system,How to realize the snapshot liuyang1943 Linux - Software 1 07-20-2011 10:40 PM
start xfce4 from nfs mounted partition via pxeboot. lievendp Linux - Server 0 03-20-2009 09:24 AM
nfs mounted partition giving error "no space left" niranjan_mr Linux - Software 4 01-03-2007 05:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration