#How send Snapshot btrfs (timeshift) from PC to hard disk external

197 messages · Page 1 of 1 (latest)

vast compass
#

Hello, how send snapshot btrfs to external hard disk? is there a software with GUI interface or how with command line? thanks

bleak sluice
vast compass
#

Btrfs it's more better, not problem for restore, with rsync have problem with restore.

bleak sluice
vast compass
bleak sluice
vast compass
bleak sluice
pliant zodiac
#

You cannot send snapshots created by Timeshift because they are not in RO mode, but in RW mode.
You should set it RO to send it.
There are CLI software like btrbk: https://github.com/digint/btrbk
or GUI (untested) Butter: https://github.com/zhangyuannie/butter

GitHub

Tool for creating snapshots and remote backups of btrfs subvolumes - GitHub - digint/btrbk: Tool for creating snapshots and remote backups of btrfs subvolumes

GitHub

Btrfs snapshot management GUI frontend. Contribute to zhangyuannie/butter development by creating an account on GitHub.

vast compass
elder river
vast compass
elder river
vast compass
elder river
#

Inside abroot use apt normally

vast compass
#

Ok

elder river
#

sudo abroot exec apt install meson ninja then reboot

vast compass
elder river
#

Inside abroot do it, before that check if you have git

vast compass
#

not have git

elder river
#

Oh, then you need to install it too sudo abroot exec apt install git then reboot

vast compass
#

ok

vast compass
elder river
#

Huh, butter doesn't have apt package you need to build and install it manually

vast compass
#

now i have the folder butter in /home

elder river
#

cp /butter /tmp/butter

#

then inside sudo abroot shell do cd /tmp/butter

vast compass
#

cp: impossibile eseguire stat di '/butter': File o directory non esistente

elder river
#

Oh, where is the file present in home?

vast compass
#

ok all apath

elder river
#

maybe try cp /home/butter /tmp/butter in cp

elder river
vast compass
#

directory not exist

#

I'm doing something wrong

#

can i copy without commands?

#

right click copy

elder river
#

Sure, Go to Files -> Copy the folder -> then go to Other locations

#

VanillaOS -> tmp -> paste it

vast compass
#

ok

#

ok copied

vast compass
#

now I'm in the tmp/butter directory

elder river
#

Nice

vast compass
#

but when launch the command

#

how launch the program?

elder river
#

exit

#

then reboot

#

After, that you will see the icon

vast compass
#

this command not work, how launch?

$ meson --prefix=/usr build
$ ninja -C build

ninja -C build install

elder river
#

You don't see the icon?

#

In application menu

vast compass
#

not see the icon

elder river
#

Then I think Butter doesn't work with Ubuntu. I will ask the developer regarding it, I know him as I translate the project.

vast compass
#

ok not available for ubuntu

elder river
vast compass
#

when launch this command in the /tmp/butter

$ meson --prefix=/usr build
$ ninja -C build

ninja -C build install

command not finded
first two command launch not in abroot, right?

vast compass
elder river
#

Sure

vast compass
elder river
#

It is part of meson

#

It is a required dependency, so no need to specify it manually IG in Ubuntu.

vast compass
# elder river It is part of meson

meson.build:1:0: ERROR: Unknown compiler(s): [['rustc']]
The following exception(s) were encountered:
Running "rustc --version" gave "[Errno 2] No such file or directory: 'rustc'"

A full log can be found at /tmp/butter/build/meson-logs/meson-log.txt
anubu81@anubu81-Lenovo-Legion-5-15IMH05H:/tmp/butter$ ninja -C build
ninja: Entering directory `build'
ninja: error: loading 'build.ninja': No such file or directory

this error when start command build

elder river
#

I guess you need to install rustc too

#

As the program is written on rust

vast compass
#

for istall this library with apt install

elder river
#

Yes

#

sudo abroot exec apt install rustc then reboot

vast compass
elder river
vast compass
#

ok

#

thanks

vast compass
# elder river That might take a while or a couple of days as the dev isn't a lot active

The Meson build system
Version: 0.61.2
Source dir: /tmp/butter
Build dir: /tmp/butter/build
Build type: native build
Project name: butter
Project version: 1.0
Rust compiler for the host machine: rustc -C linker=cc (rustc 1.61.0)
Rust linker for the host machine: rustc -C linker=cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program cargo found: YES (/usr/bin/cargo)
Program scripts/restorecon found: YES (/tmp/butter/scripts/restorecon)
Program scripts/cargo_build found: YES (/tmp/butter/scripts/cargo_build)
Configuring org.zhangyuannie.butter.policy using configuration
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency systemd found: NO

data/meson.build:24:0: ERROR: Pkg-config binary for machine 1 not found. Giving up.

placid skiff
elder river
placid skiff
placid skiff
elder river
placid skiff
placid skiff
#

I noticed I couldnt use git after installing it inside of the the apt container

elder river
#

Ensure you are in latest version.

placid skiff
elder river
placid skiff
elder river
#

If it tells updates are possible then sudo vso trigger-update --now

placid skiff
#

im up to date

#

I could also have gone into vanilla settings app and clicked check for updates right?

elder river
placid skiff
#

oh, so I must export everything I want to use outside of that container. got it

elder river
placid skiff
#

I would suggest that anything installed in the apt container be exported by default

elder river
#

Because doing apx run vim ... is tiresome

placid skiff
#

as that is what most users would expect, i guess

elder river
placid skiff
#

im not sure I understand the implication of that

elder river
#

i.e if you do apx install htop the icon (desktop entry) is created automatically as we can parse through it, but when inside the container you do apt install htop then you need to do apx export htop to signal apx to export the desktop entry and create an icon.

placid skiff
placid skiff
elder river
elder river
#

If you face any issues ask in #1023245426385760267

placid skiff
#

so what is done automatically is this apx export

#

not apx export -- bin, right?

elder river
#

Yes

placid skiff
elder river
#

I need to write docs so bye 👋

placid skiff
# elder river Yes

I would suggest then that be done automatically for the apt container, as that would be expected by most users

placid skiff
vast compass
#

@elder river news for butter?

elder river
vast compass
elder river
#

Oh yea

elder river
vast compass
vast compass
#

how Build and install?

#

i have launch the command from root but command not found

vast compass
# elder river Oh yea

i have copied the folder butter on /tmp but the icon not see in the application, how build and install, wich command?

elder river
#

Try ls then navigate to the directory using cd

#

Then build it using meson build and install it using ninja -C build install

vast compass
vast compass
elder river
#

Wait a sec you aren't in abroot + ninja isn't installed 🫠

#

It must say root@vanilla # if you are inside

#

Did you do sudo abroot shell

vast compass
#

the command is launched from abroot?

vast compass
#

now abroot shell, now navigate in the folder tmp/butter

elder river
#

Yes

vast compass
#

ok now i'm in the folder butter

#

which command launch?

elder river
#

Nice, now do meson build

vast compass
#

command not found

elder river
#

Oh 🫠, that's because you weren't in abroot shell before

#

Now do apt install meson

elder river
vast compass
#

install also rustc

elder river
#

Yeah the dependencies too

vast compass
#

Pkg-config not found

elder river
#

Do apt install pkg-config

#

Then exit then reboot

vast compass
#

reboot the system or console?

elder river
#

Because, we need to build meson outside abroot as it needs Systemd, but for installation we need abroot.

elder river
vast compass
#

ok

#

after load meson build

elder river
#

Then navigate to the correct dir then sudo ninja -C build install

#

exit then reboot to see Butter 🙂

vast compass
#

when reboot the dependence are cancelled

#

maybe is installated on tmp?

elder river
#

Type meson --version to check if it is present

vast compass
#

0.63.2

elder river
#

Try rustc --version too

vast compass
#

yes 1.61

vast compass
# elder river Try `rustc --version` too

he Meson build system
Version: 0.63.2
Source dir: /tmp/butter
Build dir: /tmp/butter/build
Build type: native build
Project name: butter
Project version: 1.0
Rust compiler for the host machine: rustc -C linker=cc (rustc 1.61.0)
Rust linker for the host machine: rustc -C linker=cc ld.bfd 2.39
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program cargo found: YES (/usr/bin/cargo)
Program scripts/restorecon found: YES (/tmp/butter/scripts/restorecon)
Program scripts/cargo_build found: YES (/tmp/butter/scripts/cargo_build)
Configuring org.zhangyuannie.butter.policy using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency systemd found: YES 251
Configuring butter-schedule-snapshot.service using configuration
Configuring butter-schedule-prune.service using configuration
Configuring org.zhangyuannie.Butter1.service using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.2)
WARNING: Could not detect glib version, assuming 2.54. You may get build errors if your glib is older.
Program glib-compile-resources found: NO

vapid sandalBOT
#
UBVan81#9420 has been warned

Reason: Duplicated text

vast compass
#

Program glib-compile-resources found: NO

#

with apt install not install

#

not found the packet glib when launch apt install

elder river
#

Ok go into abroot shell

#

Now, run apt install clang

vast compass
#

now reboot

elder river
#

Just a sec

#

There are few more packages

vast compass
#

ah ok

elder river
#

I guess you can try rebooting, if you have failed build we can try installing the other ones

vast compass
#

ok

#

when install the dependences install from /home/butter not from tmp

elder river
#

Meson build worked?

vast compass
#

cancel the installation of dependences

elder river
#

Oh

vast compass
#

i reinstall the dependences

#

the problem is glib compile reosurce

elder river
#

Oh, this is getting harder to install. I will try this later this weekend when I get freetime and will let you know

vast compass
#

glib compile resource not found

vast compass
# elder river Oh, this is getting harder to install. I will try this later this weekend when I...

Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program msgfmt found: YES (/usr/bin/msgfmt)
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Configuring config.rs using configuration
Did not find CMake 'cmake'
Found CMake: NO
Build-time dependency gio-2.0 found: NO (tried pkgconfig and cmake)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Program gtk4-update-icon-cache found: NO
Program gtk-update-icon-cache found: YES (/usr/bin/gtk-update-icon-cache)
Program update-desktop-database found: YES (/usr/bin/update-desktop-database)
Build targets in project: 8

Found ninja-1.11.0 at /usr/bin/ninja

vapid sandalBOT
#
UBVan81#9420 has been warned

Reason: Duplicated text

elder river
#

Ok need to install cmake

vast compass
vast compass
# elder river Ok need to install cmake

WARNING: CMake Toolchain: Failed to determine CMake compilers state Build-time dependency gio-2.0 found: NO (tried pkgconfig and cmake) Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas) Program gtk4-update-icon-cache found: NO Program gtk-update-icon-cache found: YES (/usr/bin/gtk-update-icon-cache) Program update-desktop-database found: YES (/usr/bin/update-desktop-database) Build targets in project: 8

#

when launch ninja c build this is the results:

error: package gio-sys v0.16.3 cannot be built because it requires rustc 1.63 or newer, while the currently active rustc version is 1.61.0 Traceback (most recent call last): File "/tmp/butter/scripts/cargo_build", line 40, in <module> ).check_returncode() File "/usr/lib/python3.10/subprocess.py", line 456, in check_returncode raise CalledProcessError(self.returncode, self.args, self.stdout, subprocess.CalledProcessError: Command '['cargo', 'build', '--manifest-path', '../Cargo.toml', '--target-dir', './target', '--package', 'butter', '--release']' returned non-zero exit status 101. [1/5] Generating data/resources/resources_gresource with a custom command xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH [4/5] Generating po/ta/LC_MESSAGES/butter-ta.mo with a custom command FAILED: src/butter src/butterd /tmp/butter/scripts/cargo_build --source-root .. --build-root . --package butter --output src/butter src/butterd

vast compass
#

this other error @elder river :

warning: build failed, waiting for other jobs to finish... Traceback (most recent call last): File "/tmp/butter/scripts/cargo_build", line 40, in <module> ).check_returncode() File "/usr/lib/python3.10/subprocess.py", line 456, in check_returncode raise CalledProcessError(self.returncode, self.args, self.stdout, subprocess.CalledProcessError: Command '['cargo', 'build', '--manifest-path', '../Cargo.toml', '--target-dir', './target', '--package', 'butter', '--release']' returned non-zero exit status 101. [3/6] Generating data/resources/resources_gresource with a custom command Richiesta pre-elaborazione di xml-stripblanks, ma XMLLINT non è impostata e xmllint non si trova nel PATH [4/6] Generating po/ta/LC_MESSAGES/butter-ta.mo with a custom command FAILED: src/butter src/butterd /tmp/butter/scripts/cargo_build --source-root .. --build-root . --package butter --output src/butter src/butterd

vast compass
#

@elder river have solution for the problem above for Building and install butter?

elder river
#

Unfortunately no, I can only test it this weekend as I have classes all week 😦

vast compass
#

ok

vast compass