Questions tagged [snapshot]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

How can *efficiently* be determined whether a ZFS dataset has been changed since the last snapshot as a simple yes/no-question?

Say I have a pool named tank and a dataset inside of it named data. There is also at least one snapshot of data named last_snapshot: tank tank/data tank/data@last_snapshot The "slow" way of figuring ...
0
votes
2answers
41 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 ...
4
votes
3answers
4k 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 (...
0
votes
1answer
29 views

Can I restore my Linux Mint installation from external Timeshift snapshot after switching SSD?

I am using Linux Mint 19.1 "Tessa" on my laptop which has 120GB SSD. I want to change to a SSD with more storage. I know that with the Timeshift backup utility you can make a snapshot of the system ...
1
vote
2answers
72 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
vote
1answer
690 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 ...
11
votes
5answers
30k views

Creating a snapshot of a linux system

I want to do the following - Save the current state of my linux OS(centOS6.5). Do some changes (more specifically inject a fault and test some service to check how it behaves when that particular type ...
1
vote
1answer
3k views

Snapshot size in lvm

I am trying to understand how to select a proper size for snapshot. As I know simple snapshot uses space which is needed for covering difference between two logical volumes. So, what size of snapshot ...
11
votes
4answers
12k views

`cp -al` snapshot whose hard links get directed to a new file when edited

I am trying to take snapshots of a massive folder regularly. I have read here: http://www.mikerubel.org/computers/rsync_snapshots/#Incremental that cp -al takes a snapshot of a folder by simply ...
0
votes
0answers
36 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
156 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/...
3
votes
1answer
78 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
127 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 ...
2
votes
1answer
288 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
53 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
137 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?
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
120 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 ...
3
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 ...
2
votes
1answer
560 views

Configure Snapper/snapshots on Fedora 23

I am getting an error while trying to configure snapper on F23. My root partition is btrfs, and I have installed the snapper package. The error is occurring when I initially try to create the default ...
1
vote
0answers
26 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 ...
3
votes
2answers
835 views

LVM Snapshot without copy-on-write

I've been experimenting with LVM and how I can use it for managing data on my NFS server. With everything that I've read about snapshots, I am still unsure about how they perform in real life. Why ...
3
votes
1answer
245 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, ...
4
votes
3answers
7k 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 ...
1
vote
1answer
43 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 ...
3
votes
0answers
716 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/{...
0
votes
1answer
104 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 ...
4
votes
3answers
3k views

Deep freeze like software for Fedora

For one of my labs, I need to maintain consistent file systems. So, I do not want any changes written to the file system after the system is shutdown. Currently, I am maintaining an operating system ...
1
vote
1answer
395 views

Mounting an RAID0 EBS array on EC2

I had a RAID 0 on two EBS volumes running fine on EC2 until the instance was stopped, a snapshot of the EBS volumes created and then restarted again. Now when I go to mount the RAID array I can't seem ...
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?
-1
votes
1answer
337 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
348 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
2k 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
209 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 ...
2
votes
1answer
255 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
162 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
617 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 ...
22
votes
3answers
5k views

Practical limit on the number of btrfs snapshots?

I am considering using btrfs on my data drive so that I can use snapper, or something like snapper, to take time based snapshots. I believe this will let me browse old versions of my data. This would ...
4
votes
1answer
86 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 ...
-1
votes
1answer
30 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 ...
9
votes
2answers
333 views

Rolling back btrfs subvolume with child subvolumes

Is there a canonical way of rolling back to a subvolume snapshot that has child subvolumes. So for example, this is my btrfs volume layout: ID 257 gen 59802 top level 5 path __active ID 258 gen 59784 ...
0
votes
1answer
196 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
358 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 $...
13
votes
1answer
5k views

GNU/Linux: overlay block device / stackable block device

GNU/Linux has union mount that overlays dirs. So you can mount a writeable dir on top of a read-only dir. When the writeable dir is unmounted the read-only dir is untouched. I am looking for the same ...
2
votes
3answers
3k 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 ...
4
votes
2answers
866 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
1answer
697 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
391 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/...
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
434 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 ...