Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Sync root filesystem
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Sync root filesystem
5th Aug, 2014, 12:09 AM
Post: #3
rlogiacco Offline
Registered
Posts: 22
Joined: Jul 2014
Reputation: 0
RE: Sync root filesystem
(4th Aug, 2014 08:08 PM)CurlyMo Wrote:  Why not create a BTRFS mirror with the SD card and your USB stick?

Can you expand on this? If btrfs mirror implies copying over the snapshots I don't think it is desiderable: a lot more write operations toward the SD, much more space used and a very little benefit considering the SD is going to be used only "on the go". If something breaks and I need to revert to a previous snapshot I'll do it on the HD and force a re-sync to ensure I have a stable OS on the HD and on the SD.
If that doesn't imply moving the snapshots then I will definitely be interested.

UPDATE: I've read a bit about mirroring and it looks as a soft raid... While I do understand it's cleanness and advantages it doesn't seem to fit my needs: too many read/writes to the SD card for my tastes Smile

(4th Aug, 2014 08:08 PM)CurlyMo Wrote:  In regard to your last question. You are not using BTRFS in any way in that approach.

I agree, I'm not using any benefit from btrfs that I know, but I don't know btrfs so I don't know what can I do with it. With my lack of knowledge I went for the route I already know with a slight change to what I understood about btrfs layout, but I might be totally wrong.... And I wish to avoid corrupting my OS :-D

For what I have understood I cannot create a snapshot on one drive and copy it over the other as that wouldn't work: snapshots are incremental and based on filesystem state. A raid configuration is not optimal as it will use the two storages at the same time, while I want to preserve the SD... what options do I have?

UPDATE: I believe I could avoid the cumbersome mount /mnt/sd-rootfs/@/root and at least use btrfs feature to automatically mount the root partition in it's default state, then issue the rsync command and unmount it: this should at least remove the complexity of manually handling the correct data tree.
For security and stability reasons I can even create a snapshot before each rsync operation to be able to revert my changes: I understand snapshots are really cheap.
Do you believe this would work?
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Sync root filesystem - rlogiacco - 4th Aug, 2014, 07:01 PM
RE: Sync root filesystem - CurlyMo - 4th Aug, 2014, 08:08 PM
RE: Sync root filesystem - rlogiacco - 5th Aug, 2014 12:09 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 30th May, 2025, 01:19 AM Powered By MyBB, © 2002-2025 MyBB Group.