From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Undelete files
Date: Sun, 30 Dec 2018 04:11:20 +0000 (UTC) [thread overview]
Message-ID: <pan$b27cb$1e0679f9$7f3c174e$d11713c1@cox.net> (raw)
In-Reply-To: CAMrg+aRiTuesnBYx=UxQBXLSDXXwFOAKuFtGcwB6ZebQgycCXQ@mail.gmail.com
Adrian Bastholm posted on Sat, 29 Dec 2018 23:22:46 +0100 as excerpted:
> Hello all,
> Is it possible to undelete files on BTRFS ? I just deleted a bunch of
> folders and would like to restore them if possible.
>
> I found this script
> https://gist.github.com/Changaco/45f8d171027ea2655d74 but it's not
> finding stuff ..
That's an undelete-automation wrapper around btrfs restore...
> ./btrfs-undelete /dev/sde1 ./foto /home/storage/BTRFS_RESTORE/ Searching
> roots...
> Trying root 389562368... (1/70)
> ...
> Trying root 37339136... (69/70)
> Trying root 30408704... (70/70)
> Didn't find './foto'
That script is the closest thing to a direct undelete command that btrfs
has. However, there's still some chance...
** IMPORTANT ** If you still have the filesystem mounted read-write,
remount it read-only **IMMEDIATELY**, because every write reduces your
chance at recovering any of the deleted files.
(More in another reply, but I want to get this sent with the above ASAP.)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2018-12-30 4:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-29 22:22 Undelete files Adrian Bastholm
2018-12-30 4:11 ` Duncan [this message]
2018-12-30 5:44 ` Duncan
[not found] <20181229225140.08d397fb@ws>
2018-12-30 8:58 ` Jesse Emeth
2019-01-02 2:48 ` Duncan
-- strict thread matches above, loose matches on Subject: below --
2018-08-04 16:47 undelete files Laurent Lauden
2018-12-17 11:38 ` Massimo B.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='pan$b27cb$1e0679f9$7f3c174e$d11713c1@cox.net' \
--to=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).