Can I change the location of BTRFS snapshots. I installed CachyOS, and it automatically setup BTRFS subvols.
This is the layout 👇
ID | gen | parent | top level | path |
---|---|---|---|---|
258 | 1773 | 5 | 5 | @root |
259 | 1601 | 5 | 5 | @srv |
260 | 1789 | 5 | 5 | @cache |
261 | 1785 | 5 | 5 | @tmp |
262 | 1797 | 5 | 5 | @log |
263 | 26 | 377 | 377 | var/lib/portables |
264 | 26 | 377 | 377 | var/lib/machines |
265 | 1791 | 377 | 377 | .snapshots |
266 | 1427 | 378 | 378 | @home/.snapshots |
377 | 1797 | 5 | 5 | @ |
378 | 1797 | 5 | 5 | @home |
According to Arch wiki https://wiki.archlinux.org/title/Snapper#Creating_a_new_configuration
Create a subvolume at /path/to/subvolume/.snapshots where future snapshots for this configuration will be stored. A snapshot's path is /path/to/subvolume/.snapshots/#/snapshot, where # is the snapshot number.
From which I understand that if I created a snap of /home (@home), it will save in /home/.snapshots (@home/.snapshots).
So, CachyOS configured to save snaps to separate subvol.
But, what I want to do is, Instead of just saving it in separate subvol, i want snaps to be saved on different btrfs partition. Maybe @home/.snapshots but on different partition.
Is that possible ?
Can I change the location of BTRFS snapshots. I installed CachyOS, and it automatically setup BTRFS subvols.
This is the layout 👇
ID | gen | parent | top level | path |
---|---|---|---|---|
258 | 1773 | 5 | 5 | @root |
259 | 1601 | 5 | 5 | @srv |
260 | 1789 | 5 | 5 | @cache |
261 | 1785 | 5 | 5 | @tmp |
262 | 1797 | 5 | 5 | @log |
263 | 26 | 377 | 377 | var/lib/portables |
264 | 26 | 377 | 377 | var/lib/machines |
265 | 1791 | 377 | 377 | .snapshots |
266 | 1427 | 378 | 378 | @home/.snapshots |
377 | 1797 | 5 | 5 | @ |
378 | 1797 | 5 | 5 | @home |
According to Arch wiki https://wiki.archlinux.org/title/Snapper#Creating_a_new_configuration
Create a subvolume at /path/to/subvolume/.snapshots where future snapshots for this configuration will be stored. A snapshot's path is /path/to/subvolume/.snapshots/#/snapshot, where # is the snapshot number.
From which I understand that if I created a snap of /home (@home), it will save in /home/.snapshots (@home/.snapshots).
So, CachyOS configured to save snaps to separate subvol.
But, what I want to do is, Instead of just saving it in separate subvol, i want snaps to be saved on different btrfs partition. Maybe @home/.snapshots but on different partition.
Is that possible ?
Can I change the location of BTRFS snapshots. I installed CachyOS, and it automatically setup BTRFS subvols.
This is the layout 👇
ID | gen | parent | top level | path |
---|---|---|---|---|
258 | 1773 | 5 | 5 | @root |
259 | 1601 | 5 | 5 | @srv |
260 | 1789 | 5 | 5 | @cache |
261 | 1785 | 5 | 5 | @tmp |
262 | 1797 | 5 | 5 | @log |
263 | 26 | 377 | 377 | var/lib/portables |
264 | 26 | 377 | 377 | var/lib/machines |
265 | 1791 | 377 | 377 | .snapshots |
266 | 1427 | 378 | 378 | @home/.snapshots |
377 | 1797 | 5 | 5 | @ |
378 | 1797 | 5 | 5 | @home |
According to Arch wiki https://wiki.archlinux.org/title/Snapper#Creating_a_new_configuration
Create a subvolume at /path/to/subvolume/.snapshots where future snapshots for this configuration will be stored. A snapshot's path is /path/to/subvolume/.snapshots/#/snapshot, where # is the snapshot number.
From which I understand that if I created a snap of /home (@home), it will save in /home/.snapshots (@home/.snapshots).
So, CachyOS configured to save snaps to separate subvol.
But, what I want to do is, Instead of just saving it in separate subvol, i want snaps to be saved on different btrfs partition. Maybe @home/.snapshots but on different partition.
Is that possible ?
Can I change the location of BTRFS snapshots. I installed CachyOS, and it automatically setup BTRFS subvols.
This is the layout 👇
ID | gen | parent | top level | path |
---|---|---|---|---|
258 | 1773 | 5 | 5 | @root |
259 | 1601 | 5 | 5 | @srv |
260 | 1789 | 5 | 5 | @cache |
261 | 1785 | 5 | 5 | @tmp |
262 | 1797 | 5 | 5 | @log |
263 | 26 | 377 | 377 | var/lib/portables |
264 | 26 | 377 | 377 | var/lib/machines |
265 | 1791 | 377 | 377 | .snapshots |
266 | 1427 | 378 | 378 | @home/.snapshots |
377 | 1797 | 5 | 5 | @ |
378 | 1797 | 5 | 5 | @home |
According to Arch wiki https://wiki.archlinux.org/title/Snapper#Creating_a_new_configuration
Create a subvolume at /path/to/subvolume/.snapshots where future snapshots for this configuration will be stored. A snapshot's path is /path/to/subvolume/.snapshots/#/snapshot, where # is the snapshot number.
From which I understand that if I created a snap of /home (@home), it will save in /home/.snapshots (@home/.snapshots).
So, CachyOS configured to save snaps to separate subvol.
But, what I want to do is, Instead of just saving it in separate subvol, i want snaps to be saved on different btrfs partition. Maybe @home/.snapshots but on different partition.
Is that possible ?
How to install ProtonVPN in Arch Linux (CachyOS) ?
Should I follow https://wiki.archlinux.org/title/ProtonVPN ?
OR
from flathub https://flathub.org/apps/com.protonvpn.www ?
This flatpak has Unverified tag, but according to this, this flatpak is safe.
Which one should I follow ?
Asking this because I'm because I'm a bit lazy to configure OpenVPN and all that stuff. (pls don't kill me :)
Also do you think using VPN from flatpak is a good idea?
I just installed aur mentioned in the wiki and it worked just fine. Didn't need to install anything else in my case.1.
How to install ProtonVPN in Arch Linux (CachyOS) ?
Should I follow https://wiki.archlinux.org/title/ProtonVPN ?
OR
from flathub https://flathub.org/apps/com.protonvpn.www ?
This flatpak has Unverified tag, but according to this, this flatpak is safe.
Which one should I follow ?
Asking this because I'm because I'm a bit lazy to configure OpenVPN and all that stuff. (pls don't kill me :)
Also do you think using VPN from flatpak is a good idea?
I just installed aur mentioned in the wiki and it worked just fine. Didn't need to install anything else in my case.
How to install ProtonVPN in Arch Linux (CachyOS) ?
Should I follow https://wiki.archlinux.org/title/ProtonVPN ?
OR
from flathub https://flathub.org/apps/com.protonvpn.www ?
This flatpak has Unverified tag, but according to this, this flatpak is safe.
Which one should I follow ?
Asking this because I'm because I'm a bit lazy to configure OpenVPN and all that stuff. (pls don't kill me :)
Also do you think using VPN from flatpak is a good idea?
I want to copy (not move) my Timeshift Snapshots (Rsync) from my existing drive to another drive. Both drives are ext4. As far as I searched I am not able to find any viable results.
If not possible, just why?
https://www.cyberciti.biz/faq/linux-unix-apple-osx-bsd-rsync-copy-hard-links/
sudo rsync -az -H --delete --numeric-ids /path/to/timeshift path/to/destination/
Where,
-a
: Archive mode (i.e. recurse into directories, and preserve symlinks, file permissions, file modification times, file group, file owner, device files & special files)
-z
: Compress file data during the transfer
H
: Preserve hard links (i.e. copy hard links as hard links)
--delete
: Delete extraneous files from the receiving side (ones that aren't on the sending side), but only for the directories that are being synchronized i.e. keep exact replica of your /path/to/timeshift
directory.
--numeric-ids
: Transfer numeric group and user IDs rather than using user and group names and mapping them at both ends.
--progress
: Show progress during transfer.
--log-file="/var/log/my-rsync-script.log"
: Log what rsync command is doing to the /var/log/my-rsync-script.log file.
Thanks to @skullgiver@popplesburger.hilciferous.nl
Original Comment: https://lemmy.world/comment/11611743
I want to copy (not move) my Timeshift Snapshots (Rsync) from my existing drive to another drive. Both drives are ext4. As far as I searched I am not able to find any viable results.
If not possible, just why?
https://www.cyberciti.biz/faq/linux-unix-apple-osx-bsd-rsync-copy-hard-links/
sudo rsync -az -H --delete --numeric-ids /path/to/timeshift path/to/destination/
Where,
-a
: Archive mode (i.e. recurse into directories, and preserve symlinks, file permissions, file modification times, file group, file owner, device files & special files)
-z
: Compress file data during the transfer
H
: Preserve hard links (i.e. copy hard links as hard links)
--delete
: Delete extraneous files from the receiving side (ones that aren't on the sending side), but only for the directories that are being synchronized i.e. keep exact replica of your /path/to/timeshift
directory.
--numeric-ids
: Transfer numeric group and user IDs rather than using user and group names and mapping them at both ends.
--progress
: Show progress during transfer.
--log-file="/var/log/my-rsync-script.log"
: Log what rsync command is doing to the /var/log/my-rsync-script.log file.
Thanks to @skullgiver@popplesburger.hilciferous.nl
Original Comment: https://lemmy.world/comment/11611743
I want to copy (not move) my Timeshift Snapshots (Rsync) from my existing drive to another drive. Both drives are ext4. As far as I searched I am not able to find any viable results.
If not possible, just why?
https://www.cyberciti.biz/faq/linux-unix-apple-osx-bsd-rsync-copy-hard-links/
sudo rsync -az -H --delete --numeric-ids /path/to/timeshift path/to/destination/
Where,
-a
: Archive mode (i.e. recurse into directories, and preserve symlinks, file permissions, file modification times, file group, file owner, device files & special files)
-z
: Compress file data during the transfer
H
: Preserve hard links (i.e. copy hard links as hard links)
--delete
: Delete extraneous files from the receiving side (ones that aren't on the sending side), but only for the directories that are being synchronized i.e. keep exact replica of your /path/to/timeshift
directory.
--numeric-ids
: Transfer numeric group and user IDs rather than using user and group names and mapping them at both ends.
--progress
: Show progress during transfer.
--log-file="/var/log/my-rsync-script.log"
: Log what rsync command is doing to the /var/log/my-rsync-script.log file.
Thanks to @skullgiver@popplesburger.hilciferous.nl
Original Comment: https://lemmy.world/comment/11611743
@gpstarman
@lemmy.today