#How send Snapshot btrfs (timeshift) from PC to hard disk external
197 messages · Page 1 of 1 (latest)
You can doing it with rsync via timeshift
With btrfs
Btrfs it's more better, not problem for restore, with rsync have problem with restore.
If you insiist using btrfs snapshot you can copy your backup data in dd from /run/timeshift/"number of your snapshot" into another device such as an USB stick. Withz rsync it is much more safe when you doing it to an external device
Know the software butter for backup to external hard disk? It's available only Fedora distro.
It is available for all distros. You need to make a new btrfs pool
Where to find? in the store how flatpak or Deb?
btrfs-progs should be preinstalled by any btrfs install and it is all you need tools such as snapper, timeshift etc. are just for convinience. https://btrfs.wiki.kernel.org/index.php/SysadminGuide. https://wiki.archlinux.org/title/btrfs. I can not guide you through everything because I do not know what kind of back up you really want. Rsync is the most confi way sofar if you want to store back up on external device
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
How install butter on ubuntu or Vanilla Os?
I will check it out and let you know.
Ok, thank you!
Hey regarding this https://github.com/zhangyuannie/butter/blob/main/BUILDING.md is available for Fedora and Arch to install it in Vanilla you need to install meson and ninja in ABRoot Shell and then follow the steps to build. (If git isn't present install it too)
Which command use for install meson and ninja in Vanilla or Ubuntu.?
Inside abroot use apt normally
Ok
sudo abroot exec apt install meson ninja then reboot
ok after installed meson and ninja how install butter? always apt?
Inside abroot do it, before that check if you have git
not have git
Oh, then you need to install it too sudo abroot exec apt install git then reboot
ok
now for install butter apt install butter-git
Huh, butter doesn't have apt package you need to build and install it manually
First, clone the repo and cd to it and then do these steps https://github.com/zhangyuannie/butter/blob/main/BUILDING.md#build-and-install inside sudo abroot shell.
now i have the folder butter in /home
Then build it using this
cp: impossibile eseguire stat di '/butter': File o directory non esistente
Oh, where is the file present in home?
ok all apath
maybe try cp /home/butter /tmp/butter in cp
I don't know Spanish, but I guess it says the file doesn't exist so check the location of the cloned directory
yes
directory not exist
I'm doing something wrong
can i copy without commands?
right click copy
Sure, Go to Files -> Copy the folder -> then go to Other locations
VanillaOS -> tmp -> paste it
now I'm in the tmp/butter directory
Nice
this command not work, how launch?
$ meson --prefix=/usr build
$ ninja -C build
ninja -C build install
not see the icon
Then I think Butter doesn't work with Ubuntu. I will ask the developer regarding it, I know him as I translate the project.
ok not available for ubuntu
Asked to him in https://matrix.to/#/!AHVxjBqQveumHiNnmd:matrix.org/$4zfnnXRkmyfQIdsTd2Hn8NgwGKE46fnJ1JMytZ6O_GE?via=matrix.org
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?
let me know if you can get information on how to install it, thanks.
Sure
however the ninja package won't isntall it, says package cannot be found.
It is part of meson
It is a required dependency, so no need to specify it manually IG in Ubuntu.
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
for istall this library with apt install
before i mess up the system maybe i won't go ahead, let me know if butter is installable on ubuntu by installing the dependencies....now ask the "cargo" dependencies.
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.
I got this error when trying to run ^ E: Unable to locate package ninja
Yes
.
and also, I installed git via apx install, is via abroot recommended instead?
I see, thanks
If you want it in the host then yeah, alternatively you can export the one in the container but it won't be accessible inside ABRoot I think.
for what I am trying to do it is fine. I guess I will cross that bridge of it comes to it
btw, must exports be made manually?
I noticed I couldnt use git after installing it inside of the the apt container
No, we removed git from base that's why. You can export the one from container using apx export --bin git
Ensure you are in latest version.
how do I do that?
sudo vso update-check
so I must export any package that isn't in base?
If it tells updates are possible then sudo vso trigger-update --now
im up to date
I could also have gone into vanilla settings app and clicked check for updates right?
No, you can export the ones when you need to run directly in terminal instead of apx run pkg or entering the container.
Yes
oh, so I must export everything I want to use outside of that container. got it
Just the ones you require frequently like vim, git, etc
I would suggest that anything installed in the apt container be exported by default
Because doing apx run vim ... is tiresome
as that is what most users would expect, i guess
That's how it works currently, but we can't parse through the packages you install inside it directly using any native package managers.
im not sure I understand the implication of that
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.
also, is there a difference between running apx export and apx export --bin ?
oh, makes sense. but I am pretty sure I installed git and scss both via apx and I cant just use them
Yes, apx export is for exporting the desktop entry or icon. And apx export --bin export the binary.
For example, let's see you do apx export htop an icon is created in Applications menu whereas in apx export --bin htop a binary is created where you can type htop in terminal to access it.
ok, I see
apx export --bin git and apx export --bin scss
If you face any issues ask in #1023245426385760267
Yes
ok, thanks
I need to write docs so bye 👋
I would suggest then that be done automatically for the apt container, as that would be expected by most users
good luck and thanks!
@elder river news for butter?
Oops, I totally forgot about it. Just now noticed the person has asked about which version of Ubuntu. I just replied now.
the version of ubuntu is 22.04 lts
Oh yea
"No problem , butter v1.0 is for sure. Not sure about 2.0 tho. The only issue is if libadwaita version is met"
Seems like butter 1.0 works on Ubuntu but they aren't sure about 2.0.
ok then I'll try to reinstall it, I think all the dependent libraries need to be installed.
why when launch this command for build:
$ meson --prefix=/usr build
$ ninja -C build
command not found?
how Build and install?
i have launch the command from root but command not found
i have copied the folder butter on /tmp but the icon not see in the application, how build and install, wich command?
Try ls then navigate to the directory using cd
Then build it using meson build and install it using ninja -C build install
navigate in the butter folder? how launche meson.build?
anubu81@vanilla:/tmp/butter$ ./meson.build
bash: ./meson.build: Permission denied
anubu81@vanilla:/tmp/butter$ ninja -C build install
bash: ninja: command not found
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
the command is launched from abroot?
not abroot
now abroot shell, now navigate in the folder tmp/butter
Yes
Nice, now do meson build
command not found
Then try this
install also rustc
Yeah the dependencies too
Pkg-config not found
reboot the system or console?
Because, we need to build meson outside abroot as it needs Systemd, but for installation we need abroot.
System, just type reboot in terminal
Yep meson build then copy the directory to /tmp then sudo abroot shell
Then navigate to the correct dir then sudo ninja -C build install
exit then reboot to see Butter 🙂
Type meson --version to check if it is present
0.63.2
Try rustc --version too
yes 1.61
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
Reason: Duplicated text
Program glib-compile-resources found: NO
with apt install not install
not found the packet glib when launch apt install
now reboot
ah ok
I guess you can try rebooting, if you have failed build we can try installing the other ones
Meson build worked?
cancel the installation of dependences
Oh
Oh, this is getting harder to install. I will try this later this weekend when I get freetime and will let you know
glib compile resource not found
ok
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
Reason: Duplicated text
Ok need to install cmake
the problem now is only "gtk4-update-icon-cache"
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
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
@elder river have solution for the problem above for Building and install butter?
Unfortunately no, I can only test it this weekend as I have classes all week 😦
ok
Will the ability to backup btrfs of vanilla Os be implemented in the system?