Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [snapshot]

The tag has no usage guidance.

0
votes
1answer
13 views

Change where Snapper creates snapshots

I have a BTRFS filesystem, running Arch Linux x86_64. On that filesystem, I have the top level subvolume (id=5), then inside that I have @root, @home, @snapshots, @swapfile. I want to be able to ...
0
votes
0answers
26 views

Backup configuration for Ubuntu Server

How can I make a restore point for a Ubuntu Server 18.04? I have a clean install of the Ubuntu Server OS and before installing any Web Server I want to perform a backup and if something goes wrong ...
2
votes
1answer
45 views

ZFS incremental snapshot send/recv without first snapshot

I have the following ZFS dataset: pool/dataset pool/dataset@snap1 pool/dataset@snap2 pool/dataset@snap3 Which has been replicated to a backup pool, using ZFS send/recv backupPool/dataset backupPool/...
2
votes
1answer
51 views

How to copy multiple snapshots at once without duplicating data?

I have a live btrfs filesystem of 3.7TiB that's >90% full including old snapshots and a fresh 4TB backup harddisk. How to copy all existing snapshots to the backup harddisk? I tried # btrfs send ...
0
votes
1answer
66 views

Encrypting data written to an LVM snapshot with a different key

I have the following requirements: I have an LVM volume A, encrypted with key K1 using LUKS. I need to make a copy-on-write snapshot of A such that Writes to A will continue to be encrypted under K1 ...
0
votes
1answer
35 views

How to sync after a 'snapper delete'

I have started a snapper delete command, only to find out five minutes later that it is running in the background and seems to take a longer time. Is there a command can I use to get notified when the ...
1
vote
1answer
70 views

How to find the creation date/time of btrfs snapshots

Is there a general way to find the creation date of btrfs snapshots, or is it necessary to encode the date in the snapshot name, as it is e.g. done by Timeshift?
0
votes
1answer
80 views

How large should an LVM snapshot be?

Preface to my Situation and Motivation I am trying to familiarize myself with Ubuntu Server edition as I set up a home server. I am setting up a small virtual network with a hypervisor for ...
0
votes
0answers
23 views

Upgrade Ubuntu without btrfs snapshot

On every do-release-upgrade Ubuntu does a btrfs snapshot. What sounds like a good idea is quite annoying if you don't have enough disk space. The update requires the same amount of space as currently ...
2
votes
1answer
188 views

Restore single files from a btrfs snapshot without doing a full copy

Background I maintain a series of hourly snapshots on my btrfs filesystem using btrbk. The subvolume and snapshots are stored like this (names shortened to make it easier to follow): /@vol ...
1
vote
1answer
40 views

Difference in openjdk-6, openjdk-7, and openjdk-8 in terms of SLOC count?

I'm calculating SLOC (Source Lines of Code) count of some of the packages for my research purposes. I'm downloading source of packages for different years from Debian snapshots. For most of the ...
0
votes
1answer
94 views

Zfs send snapshot to different server with different layout

So i am eother missing this use case, or its never come up, or it works fine and i havent treid it yet. But i have two servers, and i want one to be the backup server of main server. I moved disks ...
2
votes
2answers
57 views

Source of Debian packages older than 2005

I want to download packages for years 2000, 2001, 2002, 2003 and 2004 but Debian snapshots are maintained from March 2005 only. How can I get the source of packages before 2005?
0
votes
0answers
25 views

Best recovery options from snapshot

I have a situation where I started the deletion of a valid NetApp qtree (don't ask) containing 18TB of user files. The job was stopped, but after the system had about 5 minutes of deleting data. I'...
1
vote
1answer
64 views

How to keep my system clean?

When I work on a project I often need to install a bunch of packages and libraries/tools. Often these packages create logs files and other kind of useless files that I will not need when the project ...
-1
votes
1answer
271 views

How do I avoid booting into BusyBox when reverting from LVM snapshot?

I'm developing on-premise migration flow based on Ubuntu 14.04. The steps are: taking snapshot of / using LVM (/sbin/lvcreate -s -n ...) executing migration scripts on success committing the ...
0
votes
0answers
326 views

CentOS fs (or folder) snapshot without LVM

I do not have an LVM volume in my CentOS7 setup, since RAID1 on XFS with LVM on top = possibly sub-optimal performance (as stated here, have a look at Andres719's comment) However, I want to take a ...
3
votes
1answer
1k views

How to configure AppArmor so that KVM can start guest that has a backing file chain

I'm playing around with using Qemu external snapshots for KVM (because they are so fast!) on Ubuntu 16.04 and have the following setup: All files for the VM are within a single directory (named after ...
0
votes
1answer
178 views

Doesn't the existence of LVM snapshots slows down writing a file system wich doesn't support them natively?

As far as understand snapshots in LVM (please, do correct me if I'm wrong): since they are not persistent and work even with a file system which doesn't itself support snapshots => I suppose it must ...
3
votes
1answer
197 views

Will writing identical data to blocks of a file under ZFS use space in snapshots?

I have a 16M file. I take a snapshot of the ZFS filesystem which contains it. If I overwrite the file with the same data, will ZFS need to store two copies of all of the blocks of the file?
0
votes
1answer
131 views

Snapper has recently started performing duplicate snapshots each hour

For the last two years Snapper has been working flawlessly to perform hourly snapshots (on the hour). A few days ago I noticed two snapshots are being taken every hour. One on the hour (HH:00), and ...
1
vote
1answer
551 views

Are BtrFS snapshots killing my SSD?

As I know, BtrFS snapshots don't actually copy data. I suppose, actual copying executes on every change of snapshoted data. So is it right that BtrFS partition on SSD with enabled Snapshots doubles ...
-1
votes
1answer
29 views

Is it better to wait for Snapper to finish before rebooting?

I run various openSUSE systems with btrfs file systems. On these setups, openSUSE uses Snapper to manage filesystem snapshots. Every time I finish updating the system using Zypper or the YaST ...
1
vote
1answer
2k views

Change btrfs default subvolume in order to delete snapshot

I have used snapper with Fedora 26 to create snapshots of my btrfs system, and I am trying to start fresh (i.e. remove snapper and anything it has done) but I have one snapshot I cannot remove as it ...
0
votes
1answer
174 views

Test-boot hard drive in QEMU, without writing to it

I remember reading a cool command to use QEMU, to test-boot a hard drive, but without writing anything back to it. (Even if the system is EFI-booted, I think it should be able to work for Linux if ...
0
votes
1answer
297 views

Can't create persistent snapshot device with `dmsetup`

I am trying to create a dmsetup snapshot device be able to rollback changes made by fsck. I think I'm calling dmsetup incorrectly. Here's an example: $ truncate -s 4096 real snapshot $...
4
votes
1answer
77 views

Can a user-defined “destroy-after” property be set on a ZFS snapshot?

I know that (almost) arbitrary user-created properties can be added to a ZFS dataset on FreeBSD. But if I take snapshots of a dataset (or pool), can I set a user-defined property on an individual ...
4
votes
2answers
832 views

LVM snapshots vs. filesystem

I have a Linux system (Opensuse leap, but it's not that important) installed on a logical volume (and the ext4 filesystem). I want to upgrade it to a newer version, but to be on the safe side, I want ...
2
votes
3answers
2k views

Unable to zfs send | zfs receive datasets in same zpool

I have two environments Staging (staging) and Development (choang). I am unable to replicate (including snapshots) from dataset zfs/staging.assets to another dataset zfs/choang.assets within the same ...
2
votes
3answers
3k views

Merge changes to upper filesystem to lower filesystem in Linux Overlay (OverlayFS) mount

I would like to be able to merge changes from the upper filesystem of an overlay mount to a lower filesystem. I am interested both online (i.e. merge while the overlay is mounted) and offline (...
2
votes
1answer
596 views

How to change snap user directory?

I use Fedora. I wonder how I can configure snap to store all snapshots not in ~/snap/... but rather in ~/X/snap/... Sorry, I have already tried looking at various documentation of snapd but could ...
0
votes
1answer
332 views

Hide btrfs .snapshots when mounting from other Linux

I am mounting an old btrfs volume in a newer Linux. The mount point is /mnt/linux2. However, btrfs's internal snapshots are shown as directories on the mounted disk, e.g. /mnt/linux2/.snapshots/189/...
0
votes
1answer
607 views

Btrfs automatically bitrot correction with snapshots?

I want to set up a notebook (debian) with 1 SSD and 1 HDD each with Luks and Btrfs on it. Because the SSD and the HDD doesn't have the same speed, i don't want to use Btrfs' Raid-1 on it, but i also ...
3
votes
1answer
1k views

Never ending “Run configure hook of core snap if present”

I am using Debian 9 with KDE Plasma for work and fun, I just wanted to install Krita graphics app. It became an opportunity to tryout new instalation system called "snap". So I installed snapd and ...
0
votes
1answer
379 views

Can we make snapshot to the physical machine? [closed]

All we know we can snapshot(store the current system and disk information) the VM in the VMware workstation easily. But I don't know if we can snapshot to the physical machine (CentOS 7.2). Or use ...
2
votes
2answers
70 views

How might I create a completely discardable build environment?

Suppose I have a fresh install of a common Linux distribution. I download a tarball containing the source code of a web application I'd like to build and host. The project is somewhat modern, so it ...
3
votes
0answers
149 views

Revert to snapshot at boot

Can I take a snapshot of a physical machine and revert to that stage every time the machine boots? This can be done with virtual machines, but I want to do it for a physical machine. Background I ...
0
votes
0answers
23 views

Exclude attached storage from snapshot

I'm trying to setup nightly snapshots of our VMs that exclude our attached storage. I've been looking into lvcreate but can't figure out how to make it pass over certain directories. Is this possible ...
2
votes
0answers
464 views

remount boot partition as readonly

I am working on a snapshot driver for the block devices on RHEL 6 and RHEL7 and there is some problem during snapshot specific to boot on RHEL 7, which i am suspecting due to COW related. When I ...
3
votes
1answer
225 views

How to test if two btrfs snapshots are identical or not?

As far as I know, in order to determine if a snapshot is identical with another one or not, we should check if Received UUID of destination is equal to UUID of source snapshot or not. But this time, ...
3
votes
0answers
652 views

How can I mount a VDI with snapshot?

Working on Linux Mint 18.1, VirtualBox 5.0.40_Ubuntu. I have a VDI file from a VirtualBox VM: ~/VirtualBox\ VMs/Win10x64/Win10x64.vdi I've taken a Snapshot: ~/VirtualBox\ VMs/Win10x64/Snapshots/{...
4
votes
1answer
2k views

KVM - live external snapshots and appropriate disk names

If I wish to take an external snapshot of a running KVM guest, I would run a command like below: # create the directory for the snapshot data mkdir /vms/$DOMAIN/snapshots/$SNAPSHOT_NAME # create the ...
1
vote
0answers
655 views

FreeNAS: Snapshots on replicated datasets disappear

I am running 2 FreeNAS boxes (let's call them A and B). A is the production server which contains multiple datasets on mirrored/striped ZFS volumes for sharing via cifs, nfs, etc. A is configured to ...
2
votes
0answers
483 views

create a device-mapper snapshot of an lvm volume multiple linear device with cow data outside of volume group

I need to make an in-memory snapshot of a running mounted root filesystem. The filesystem itself is on an lvm device, but there is zero free space in the VG and there is no way to expand it. However ...
4
votes
1answer
4k views

ZFS on Linux send/receive resume on poor/bad ssh connection

I am using ZFS on Linux, and trying to setup remote replication. But I have bad ssh connection, and zfs send/receive over ssh restarts again. I know there is a issue on ZoL, but I don't know when it ...
2
votes
2answers
734 views

ZFS on Linux snapshot recursively volume and subvolumes

I am using ZFS on Linux, and have some question regarding snapshots. I have following structure mypool/HOME mounts /home mypool/HOME/root mounts /root mypool/ROOT mounts none mypool/ROOT/rootfs ...
1
vote
1answer
57 views

Software reccomendation: diff based restore points

i'm looking for software that lets me create multiple restore points that allow me to go back to these points and have my system be in the exact same state as when these restore points were taken. I ...
3
votes
1answer
2k views

btrfs revert snapshot of root FS

Before upgrading to Fedora 25 I did a btrfs subvolume snapshot / /f24. I hat to little free space, so the update failed. Now the question is, how to revert the snapshot? I already booted into the ...
1
vote
0answers
437 views

KVM - List snapshots in order of creation

I've only just realized that KVM snapshots default to being listed in alphabetical order, rather than chronological. This can be confusing if you sometimes use the command virsh snapshot-create-as $ID ...
4
votes
3answers
6k views

Linux alternative to file history/shadow copies for internal backup?

I am looking for (good) backup alternatives to the time machine of MacOS/OS X devices or file history on Windows machines. Actually what I am looking for is closer to Windows' solution than to the ...