I have an opensuse server where a user of mine accidentally deleted an important folder of his using rm-r before i had setup any syncs, backups and snapper to work with home directory. The entire / and all folders use btrfs but i noticed that the snapshots only record settings rather than file. How do i recover that deleted folder? Currently the server is physically off.
How do i set up snapper to work with files sort of like dropbox and microsoft does with file versioning?
I’ve recovered deleted files before but only on windows based filesystems.
the snapshots contain the contents not settings (COW). as a start you can go to yast->snapper to browse and restore file changes from their. you should generally either not keep home on btrfs (or turn off cow).
This is the sort of arrogant behaviour that made me ditch ubuntu. OPENSUSE DOES NOT BY DEFAULT SET UP SNAPPER TO VERSION YOUR FILES. I would not be asking here if it did.
Even the btrfs tutorials on file recovery done work on opensuse because the commands arent there or are different that i cant identify the blocks i need in order to run the right commands that work.
We seem to have left this request hanging, which is IMHO not good . . .
Unfortunately, for Btrfs there doesn’t seem to be very much out there; there is “debugfs” but, it’s only for “ext2/3/4” file systems.
The only Btrfs tools which are installed by default, seem to attempt to repair damaged files systems but, the file system is not “damaged” when someone deletes a file.
I have found this StackExchange article related to general file system “undelete” – whether or not a Btrfs file system will behave properly with these methods is AFAIK unknown: <https://unix.stackexchange.com/questions/80270/unix-linux-undelete-recover-deleted-files>.
I have absolutely no knowledge as to whether “Test Disk” supports Btrfs file systems: <https://itsfoss.com/recover-deleted-files-linux/>.
The simple answer is: the openSUSE Reference Guide: <https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.snapper.html>.<https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/index.html>
Yes, the Redmond world has some “block-level-on-the-disk” tools but, they weren’t the first to have this technology.
- Many years ago, there was a company in Augsburg, southern Germany, who offered a service to recover “deleted” files from disks – hard and floppy . . .
- As far as I can remember, they began with disks written by DEC operating systems (the plural is correct!!) . . .
no need to call me arrogant for misreading a confusing post. After originally focusing on:
“The entire / and all folders use btrfs but i noticed that the snapshots only record settings rather than file. How do i recover that deleted folder?”
Have just reread you, actually say:
snapshots where not setup, but you then say there are snapshots but they contain settings not files? (i dont understand this)
you then you go on to ask how to use snapper like dropbox.
so your asking about 3rd party file recovery? (case 1)
and how to setup snapper for use like dropbox? (case 2) [if you want file reversion, thats easy but i have never used dropbox and you dont say what aspect of dropbox youd like to reproduce]
your second message is even more opaque.
- what btrfs commands/tutorials? (are you just venting here?).
- i assumed snapper is setup by default if the root FS is large enough (unless things have changed).
On Mon, 05 Feb 2018 09:36:01 +0000, System Error Message wrote:
> ndc33;2853463 Wrote:
>> the snapshots contain the contents not settings (COW). as a start you
>> can go to yast->snapper to browse and restore file changes from their.
>> you should generally either not keep home on btrfs (or turn off cow).
> This is the sort of arrogant behaviour that made me ditch ubuntu.
> OPENSUSE DOES NOT BY DEFAULT SET UP SNAPPER TO VERSION YOUR FILES. I
> would not be asking here if it did.
> Even the btrfs tutorials on file recovery done work on opensuse because
> the commands arent there or are different that i cant identify the
> blocks i need in order to run the right commands that work.
Chill out - there’s no need to go on the attack against someone who is
attempting to help you.
Nobody here knows anything about your situation, knowledge/experience, or
setup that you haven’t told us - we’re not mind readers, we’re a
community who tries our best to help people who have issues.
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
Here are a couple links to do what you want
I haven’t read this stuff for several months, IIRC
- Historically, there have been a couple BTRFS undelete utilities, the most recent one should already be installed and available for you.
- Should work great.
- IIRC last time I read the BTRFS MAN pages, there wasn’t a lot written about this feature
I don’t think we’ve discussed this BTRFS feature much if any in thse openSUSE forums before, but it’s an important thing to know about.
You don’t use snapper, and it’s a feature built into BTRFS even if snapshots isn’t enabled.
If you run into issues recovering,
Post again and I or someone else can look more deeply into this.