Questions tagged [snapshot]
The snapshot tag has no usage guidance.
169
questions
1
vote
1
answer
69
views
Is it possible to use a file as Filesystem?
Here is the origin of my question:
I'm running Linux containers with LXD snap version at Ubuntu 22.04 on a VPS. The root file system of the VPS is Ext4 and there is not additional storage attached. ...
0
votes
0
answers
45
views
Best strategy to backup btrfs root filesystem?
I have a btrfs root partition with an @ root subvolume and an @home subvolume and I do auto-snapshots during updates and timeshift scheduled snapshots, both of which are saved on the same drive. This ...
0
votes
1
answer
24
views
How to remove a logical volume from xen vm after failed snapshot
First of I'm fairly new to xen vm technology so sorry in advance if I use the wrong vocabulary. So what happened is I took a snapshot from my vm, after a while a cronjob tried to create a second ...
0
votes
1
answer
474
views
ZFS send/recv full snapshot
I have been backing up my ZFS pool in Server A to Server B (backup server) via zfs send/recv, and using daily incremental snapshots.
Server B acts as a backup server, holding 2 pools to Server A and ...
0
votes
2
answers
213
views
How can Nextcloud data be backed up and restored independently? (Versioning / Snapshots)
Whenever multiple users are interacting with a Nextcloud installation, there is a possibility of error. Potentially, a family member may delete an old picture or a co-worker might accidentally tick ...
1
vote
2
answers
139
views
How do I make ZFS with ZIL SLOG consistent if the SLOG is lost?
I have a ZFS on a HDD with ZIL SLOG on an SSD.
If that's relevant, I have also a LARC cache on an SSD.
How can I reconfigure it to be sure that a failure of the SSDs won't cause data inconsistency (...
0
votes
0
answers
56
views
How to choose optimal size for LVM snapshot for cloning MongoDB?
Yes, I know that my question will look familiar to many of you, but I would like to double check with before I start working on it.
I have read similar question: Snapshot size in lvm , but still one ...
1
vote
0
answers
202
views
ZFS on Linux: Can ZFS send a snapshot and receive a newer snapshot of the same dataset at the same time?
I have a production server P and a standby server S. Both are running Debian buster and OpenZFS / ZoL 2.1.0. P has only internal disks which provide ZFS storage for the O/S, the VMs and all other data....
1
vote
1
answer
31
views
Can ZFS snapshot names contain newlines? If yes, how to parse the output of zfs list -t snapshot?
The following question relates to ZFS on Linux (ZoL) / OpenZFS, as it is provided e.g. in Debian Buster and Debian Bullseye.
As the title says, I'd like to know whether ZFS snapshot names ...
6
votes
1
answer
1k
views
Error creating snapshot: Operation not supported: internal snapshots of a VM with pflash based firmware are not supported
I'm using Arch Linux, both host and guest. For UEFI boot, I've installed edk2-ovmf and made the guest use the firmware /usr/share/edk2-ovmf/x64/OVMF_CODE.fd. I want to create snapshots of my VM but am ...
0
votes
0
answers
114
views
Timeshift restore from the same disk
Couple of weeks earlier i created a snapshot from Timeshift. This snapshot is full (all directories, whole disk. Using Rsync) snapshot. Thing is, this snapshot and my system is on the same disk which ...
0
votes
0
answers
34
views
Does a file system snapshot include deleted files?
Let's say I create backups by file system snapshot once per day at midnight. Of course, after the snapshot is created, it will be archived to a separate drive.
If you create a lot of temporary files ...
1
vote
1
answer
211
views
How to merge common parts of qemu qcow2 disks
I have a qemu image B.qcow2 that is a snapshot of A.qcow2.
I created a copy of B.qcow2 by using cp B.qcow2 C.qcow2 and then worked on both B.qcow2 and C.qcow2 independently. Thus, B.qcow2 and C.qcow2 ...
0
votes
1
answer
70
views
User cannot create btrfs snapshot of subvolume in Debian 10 the way it is done in Centos 6
I migrated a CentOS 6 install to Debian 10 and btrfs snapshotting is heavily used on these system.
Under CentOS I can easily have two users - user1 and user2, which are part of group - user1user2group....
0
votes
1
answer
28
views
How can AIX jfs2 snapshot size be less than size of the data on the fs?
On every OS I ever create the snapshots of size bigger than the occupied fs space.
For example: if I had a fs called /try of 250GB but the space used is 100GB I will create a snapshot of 100GB or a ...
0
votes
2
answers
19
views
`btrbk`: privilege separation using btrfs-progs-btrbk backend. Why a patchset rather than individual scripts?
btrbk is a script for automating btrfs backups using snapshots and send/receive. It has a "backend" btrfs-progs-btrbk, which is a patchset for btrfs-progs and is used to create individual ...
1
vote
1
answer
128
views
Why do snapshots consume much less space than the data which is changed after they have been taken?
Although I am using ZFS since quite a while, I am still failing to understand some aspects of it from time to time. Currently I am trying to understand how ZFS snapshots take up space on the disk and ...
3
votes
2
answers
290
views
What is the proper way of backing up raid
I have a two disk server where root is on a mirrored LVM volume, while /boot and /boot/efi are RAID1 partitions.
I want to fully backup my server, so that when a disaster happens (both disks fail, or ...
0
votes
1
answer
332
views
How does mounting of a recursive zfs snapshot behave in default mount directory .zfs/snapshot?
I have a zfs pool called "data" on which I also put /var/lib/docker. Due to docker (in my case; for the sake of the question docker is irrelevant) zfs list looks something like this:
data ...
0
votes
1
answer
29
views
.zfs/snapshot/zfs-auto-snap_daily-2021-01-08-0525 is empty
On my ZFS server .zfs/snapshot/zfs-auto-snap_daily-2021-01-08-0525 exists but it contains no files. The same goes for all .zfs/snapshot/zfs-auto-*
How did that happen?
2
votes
0
answers
183
views
Does btrfs sync "suffer" from same issues as btrfs snapshot?
Targeting "roughly okay backups" of a running system that uses BTRFS as filessytem, I seek an answer regarding
Can option
a) btrfs filesystem sync <path>(sync(1)) be used to force an &...
1
vote
1
answer
43
views
BTRFS send after a rollback
btrfs-send has the "-p" parameter to provide the previous snapshot for an incremental backup.
Let's say I have snap1, snap2, snap3 and snap4: then I do a rollback to snap2. If I call btrfs-...
1
vote
1
answer
34
views
BTRFS-send previous snap
If I send a btrfs incremental stream from drive1 (using -p to refer the last snap) and I receive it on drive2, how does btrfs know which snap on drive2 it should link the stream to (since -p is for ...
2
votes
2
answers
1k
views
Is it possible to create BTRFS snapshot for a directory?
When I tried to create a snapshot:
[root@localhost ~]# btrfs subvolume snapshot /home/admin2/ /.snapshots/s2
ERROR: Not a Btrfs subvolume: Invalid argument
How to create BTRFS snapshot for a ...
0
votes
1
answer
186
views
Btrfs: How to restore my OS to its last snapshot?
So I'm very new to btrfs but have used zfs for more than a decade now...
Setup:
I installed Manjaro on a btrfs partition without using subvolumes.
After installation, I created a snapshot of / (...
2
votes
2
answers
814
views
Restore / roll back single files or folders on btrfs
I am planning to utilize btrfs for a NAS system.
Now I am wondering whether it is possible to roll back things to snapshots on a file / folder level. I ask this because typically one only wants to ...
1
vote
0
answers
96
views
Viability of LVM snapshots for creating multiple versions of a filesystem on a backup storage device
I have a largish main storage disk of 400TiB that we plan to backup to a remote JBOD. The backup tools provided with the main storage only allow for dumping a single copy of the filesystem, and then ...
1
vote
2
answers
199
views
Where is my subvolume "fedora" located?
When I do :
$ btrfs subvolume list /
ID 256 gen 3794 top level 5 path fedora
ID 264 gen 2296 top level 256 path root/snapshots/test
I get two subvolumes.
I want to know where the fedora subvolume is ...
1
vote
1
answer
3k
views
Rollback root snapshot in BTRFS
I have only 1 BTRFS partition that contains both / and /home.
I have snapshotted the root filesystem via the command:
btrfs subvolume snapshot / /root/snapshots/test
Now I want to restore this ...
5
votes
0
answers
235
views
Why does ZFS rollback destroy intermediate snapshots?
Having used btrfs before, I was surprised to find out that rolling back a snapshot in ZFS not only changes the “working set” of files, but also requires that any snapshots which are newer than the ...
1
vote
1
answer
181
views
Btrfs: Why create a snapshot of a subvolume inside of that subvolume?
All the examples I have seen on the Internet are creating a snapshot of a subvolume inside of that subvolume, like below. Is there any reason for that? Why don't create a snapshot outside of that ...
-2
votes
1
answer
49
views
snapshot management tool implementation
I want to implement a command-line tool that allows me to take snapshots of the filesystem for linux/unix systems.
I know there are various ways to implement snapshot
Copy-On-Write
Redirect-On-Write
...
1
vote
1
answer
62
views
How to make my current filesystem the first root filesystem in BTRFS
If I understand correctly, btrfs snapshots store just what changed with respect to a base filesystem called the "first root filesystem". My first root filesystem was created in 2017 and ...
0
votes
1
answer
70
views
Tar command saves file in working directory instead of specified directory
I'm trying to make a automatic backup via the tar command:
datum=$(date +%F)
buweek=backup_$datum
snap=snapshot_$datum
mkdir /home/user/BackupArchiv/$buweek
tar -czvg /home/user/BackupArchiv/...
1
vote
1
answer
128
views
How to restore some files from btrfs snapshot (created via timeshift) of encrypted home dir via ecryptfs
I use Linux Mint 20 and Timeshift to create btrfs snapshots from @ and @home.
My home dir is encrypted. Timeshift also includes @home/.ecryptfs/ in the snapshots.
I'd like to take a look at some files ...
0
votes
2
answers
164
views
what is best practice for backup restore on. FreeBSD [closed]
What is the best practice for system backup and restore on freebsd?
Because I'm making many changes to the system I need to use quickest and easiest way to restore entire system to previous ...
1
vote
2
answers
1k
views
How to backup to external btrfs partition with snapshots if my system is on ext4?
As I started to use Timeshift on my Linux Mint I saw that it was possible to backup on btrfs, however, with some requirements: that the linux system had to be installed on btrfs as well (and I think ...
0
votes
1
answer
115
views
rsync --itemize-changes lists some xattr differences, but getfattr shows no difference
On my Arch Linux machine, I want to verify btrfs backups of snapshots using rsync.
The following rsync command is used to check for changes:
sudo rsync -n --itemize-changes --checksum -a --delete --...
1
vote
0
answers
41
views
Is the output of `zfs send` deterministic?
My goal is to generate a single checksum for the entirety of a ZFS snapshot.
If zfs send is deterministic (including across systems, meaning including on the system that receives the snapshot), then ...
1
vote
0
answers
1k
views
What is the default sort order of zfs list, and is there a locale taken into account with zfs list -s creation?
I would like to get a list of snapshots, ordered by creation time, for an arbitrary rpool.
My first problem is that I can't find out which is the default sort order of zfs list -t snapshot. zfs's man ...
0
votes
1
answer
422
views
virsh / qemu external snapshots fail with more than one disk
I am running into this problem and have found no answer in my research. There is a similar post on SuperUser that hasn't had a comment, much less an answer, in close to 10 months. Maybe that is not ...
1
vote
1
answer
82
views
file-system "snapshot on write" options?
I would like some help identifying software, (file systems, fuse modules, etc) which can accomplish retention of (over)written files;
For example, I could author a fuse shim and mount it in-place of ...
4
votes
1
answer
5k
views
Understanding how libvirt snapshots are stored
At first I thought it would be stored in /var/lib/libvirt/images/ but as I created snapshots for the centos7 domain, nothing changed in this directory:
drwx--x--x 2 root root 4096 Feb ...
0
votes
0
answers
143
views
When rolling back a subvolume to a snapshot in btrfs, is simply renaming and keeping the old subvolume bad practice?
I'm new to btrfs. I'm experimenting with snapshots and rollbacks. I read the answers here:
Conceptualizing btrfs - understanding snapshots, and space used
btrfs confused about subvolumes
Online ...
2
votes
1
answer
66
views
Use Timeshift or similar for synching/backing up arbitrary locations?
I have been using a dual boot machine for a couple of years. I've got to the point where I spend 95% of my time logged into Linux rather than the proprietary OS (W10) and so I need to choose a Linux-...
2
votes
0
answers
443
views
Can I perform incremental backups with Syncthing?
I have found a page which describes how to go about doing incremental backups using rysnc. To me incremental backups are good not only because they save space and time but also because you can ...
0
votes
3
answers
64
views
How run Softwares as a snapshot?
I want to run the software as non-persistent, which means if any configuration is changed, they revert.
In the Windows, Software Sandboxie has this amazing feature. When the program is started, it ...
-1
votes
1
answer
51
views
How to do linux snapshots similar to VirtualBox guest snapshot?
I'm still learning how linux works so I'm constantly making mistakes, installing packages in the wrong way and whatnot. A good way of solving this is using VirtualBox and just taking snapshots from ...
2
votes
1
answer
268
views
LVM snapshot: Failed to wipe snapshot exception store, udev doesn't create the partition before lvm tries to wipe it
I am trying to create a snapshot of a logical volume (partition) but I cannot make it work. After days of researching, I found that this post might shed some light on the situation. We are using the ...
3
votes
1
answer
147
views
Snapshottable encrypted folder
I'm trying to create an encrypted data folder which could periodically take snapshots of the current state of it. The snapshot should be an encrypted one, and I should be able to take snapshots ...