On 2017-10-31 15:54, Lentes, Bernd wrote:
----- On Oct 31, 2017, at 6:00 PM, Austin S. Hemmelgarn ahferroin7@xxxxxxxxx wrote:
Assuming you're careful about how you install it (that is, put it in a
custom prefix that isn't in $PATH), you could always build a local
version of Python. Once you've got that, it's pretty trivial to change
the #! line at the beginning of the script to point to the appropriate
location.
For what it's worth, it shouldn't be _too_ hard to get the script
working with Python 2.7. The only big syntax difference that's liable
to be an issue is the except clauses. I'll take a look at this and see
if I can't get it working for both 3.X and 2.7.
Austin,
do i understand correctly what i've read on github, that your script is worthless for SLES because they mount the subvolumes ?
"this of course does not work if you explicitly mount subvolumes, but the only distro I know of that does that is SUSE, and they do their own thing anyway."
It's not quite worthless, it just needs a bit more effort, although
that's not _just_ because of the subvolumes being explicitly mounted.
There's also the fact that SUSE has an odd mix of subvolumes outside of
the subvolume that gets mounted as root, and ones inside, which makes
handling a SUSE root filesystem extremely complicated (though this is
only the case if you installed with snapshot support enabled).
In short, to use this reliably for the root filesystem for OpenSUSE and
SLES, you need to mount the top level of the root filesystem somewhere,
and then run the script on that (and that tree is what you should be
backing up in an ideal situation as well).
I'll look at getting the README updated to be more clear about that and
give more specific directions tomorrow.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html